Allow setting all 256 colors in the config file

This commit is contained in:
Kovid Goyal
2018-04-01 12:24:00 +05:30
parent 1c78633d1a
commit 910cebeeb5
5 changed files with 75 additions and 29 deletions

4
kitty/rgb.py generated
View File

@@ -27,6 +27,10 @@ def parse_rgb(spec):
return Color(*map(parse_single_color, colors))
def color_from_int(x):
return Color((x >> 16) & 255, (x >> 8) & 255, x & 255)
def to_color(raw, validate=False):
# See man XParseColor
x = raw.strip().lower()