##// END OF EJS Templates
fix hex_to_rgb() used to guess light/dark in qtconsole...
MinRK -
Show More
@@ -64,8 +64,8 b' def hex_to_rgb(color):'
64 return False
64 return False
65 try:
65 try:
66 r = int(color[:2],16)
66 r = int(color[:2],16)
67 g = int(color[:2],16)
67 g = int(color[2:4],16)
68 b = int(color[:2],16)
68 b = int(color[4:],16)
69 except ValueError:
69 except ValueError:
70 return False
70 return False
71 else:
71 else:
General Comments 0
You need to be logged in to leave comments. Login now