Commit 0fc6a03a authored by Barry Warsaw's avatar Barry Warsaw

Fixed the brightness calculation

parent 55f1b5a8
......@@ -231,7 +231,7 @@ class StripWidget:
self.__leftarrow.move_to(-100)
# and set the chip's outline
brightness = ColorDB.triplet_to_brightness(rgbtuple)
if brightness <= 0.5:
if brightness <= 128:
outline = 'white'
else:
outline = 'black'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment