mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
Allow setting :opt:active_border_color to `none` to not draw a border around the active window
Fixes #805 Fixes #1491
This commit is contained in:
@@ -16,6 +16,12 @@ def to_color(x):
|
||||
return as_color(x, validate=True)
|
||||
|
||||
|
||||
def to_color_or_none(x):
|
||||
if x.lower() == 'none':
|
||||
return
|
||||
return to_color(x)
|
||||
|
||||
|
||||
def positive_int(x):
|
||||
return max(0, int(x))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user