Skip to content

Commit

Permalink
remove warnings for nim 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neroist committed Apr 18, 2024
1 parent 67c9cff commit 5421e43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uing.nim
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ proc color*(a: Attribute): tuple[r, g, b, alpha: float] =
attributeColor(a.impl, addr r, addr g, addr b, addr alpha)
result = (r: float r, g: float g, b: float b, alpha: float alpha)

proc newBackgroundColorAttribute*(r, g, b: float; a: float = 1.0): Attribute =
proc newBackgroundColorAttribute*(r, g, b: float; a: float = 1.0): Attribute =
## Creates a new Attribute that changes the background color
## of the text it is applied to.
Expand Down Expand Up @@ -2450,7 +2451,7 @@ proc color*(c: ColorButton): tuple[r, g, b, a: float] =

result = (r: float r, g: float g, b: float b, a: float a)

proc setColor*(c: ColorButton; r, g, b: float; alpha: float = 1.0) =
proc setColor*(c: ColorButton; r, g, b: 0.0..1.0; alpha: 0.0..1.0 = 1.0) =
## Sets the color button color.
##
## :c: ColorButton instance.
Expand Down

0 comments on commit 5421e43

Please sign in to comment.