mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Wire up config infrastructure for diff kitten
This commit is contained in:
4
kitty/rgb.py
generated
4
kitty/rgb.py
generated
@@ -35,6 +35,10 @@ def color_as_int(x):
|
||||
return x.red << 16 | x.green << 8 | x.blue
|
||||
|
||||
|
||||
def color_as_sharp(x):
|
||||
return '#{:02x}{:02x}{:02x}'.format(*x)
|
||||
|
||||
|
||||
def to_color(raw, validate=False):
|
||||
# See man XParseColor
|
||||
x = raw.strip().lower()
|
||||
|
||||
Reference in New Issue
Block a user