mirror of https://github.com/python/cpython
Fixed the brightness calculation
This commit is contained in:
parent
0dc9c92b10
commit
26f4b5dfe4
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue