mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
relay_clientbot: remove dark blue from the random colours list
It's difficult to read on clients configurated to use a dark background. Reported by @MrBenC
This commit is contained in:
parent
963d5e11cc
commit
60788e4ba5
@ -25,8 +25,7 @@ def color_text(s):
|
|||||||
"""
|
"""
|
||||||
Returns a colorized version of the given text based on a simple hash algorithm.
|
Returns a colorized version of the given text based on a simple hash algorithm.
|
||||||
"""
|
"""
|
||||||
colors = ('02', '03', '04', '05', '06', '07', '08', '09', '10', '11',
|
colors = ('03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '15')
|
||||||
'12', '13', '15')
|
|
||||||
hash_output = hash(s.encode())
|
hash_output = hash(s.encode())
|
||||||
num = hash_output % len(colors)
|
num = hash_output % len(colors)
|
||||||
return "\x03%s%s\x03" % (colors[num], s)
|
return "\x03%s%s\x03" % (colors[num], s)
|
||||||
|
Loading…
Reference in New Issue
Block a user