mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
relay_cb: remove dark gray from colours index
It's too hard to read on a dark background.
This commit is contained in:
parent
8acdfc81c1
commit
e0f56a157d
@ -29,7 +29,7 @@ def color_text(s):
|
|||||||
(sum of all characters).
|
(sum of all characters).
|
||||||
"""
|
"""
|
||||||
colors = ('02', '03', '04', '05', '06', '07', '08', '09', '10', '11',
|
colors = ('02', '03', '04', '05', '06', '07', '08', '09', '10', '11',
|
||||||
'12', '13', '14', '15')
|
'12', '13', '15')
|
||||||
digest = hashlib.md5(s.encode()).hexdigest()
|
digest = hashlib.md5(s.encode()).hexdigest()
|
||||||
digest = int(digest, base=16)
|
digest = int(digest, base=16)
|
||||||
num = digest % len(colors)
|
num = digest % len(colors)
|
||||||
|
Loading…
Reference in New Issue
Block a user