mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Merge branch 'feat-titlebar-opt-err' of https://github.com/page-down/kitty
This commit is contained in:
commit
e49b20bfa7
1 changed files with 5 additions and 1 deletions
|
|
@ -686,7 +686,11 @@ def titlebar_color(x: str) -> int:
|
|||
return 0
|
||||
if x == 'background':
|
||||
return 1
|
||||
return (color_as_int(to_color(x)) << 8) | 2
|
||||
try:
|
||||
return (color_as_int(to_color(x)) << 8) | 2
|
||||
except ValueError:
|
||||
log_error(f'Ignoring invalid title bar color: {x}')
|
||||
return 0
|
||||
|
||||
|
||||
def macos_titlebar_color(x: str) -> int:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue