We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb98ad6 commit fe5df08Copy full SHA for fe5df08
1 file changed
widget.lua
@@ -363,7 +363,11 @@ function Widgets.button_fill:draw()
363
alignDraw(self,self._image)
364
end
365
if self._text then
366
- gc_setColor(r*.5,g*.5,b*.5)
+ if r*.299+g*.587+b*.114<.626 then
367
+ gc_setColor(1-(1-r)*.26,1-(1-g)*.26,1-(1-b)*.26)
368
+ else
369
+ gc_setColor(r*.26,g*.26,b*.26)
370
+ end
371
alignDraw(self,self._text)
372
373
gc_pop()
0 commit comments