Skip to content

Commit

Permalink
Fix #8123
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Dec 16, 2024
1 parent 6161ffe commit d3f93cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kitty/rc/set_colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: Arg
def response_from_kitty(self, boss: Boss, window: Optional[Window], payload_get: PayloadGetType) -> ResponseType:
from kitty.colors import patch_colors
windows = self.windows_for_payload(boss, window, payload_get)
colors: Dict[str, int | None] = payload_get('colors')
tbc = colors.get('transparent_background_colors')
colors: Dict[str, int | None] = payload_get('colors') or {}
if payload_get('reset'):
colors = {k: None if v is None else int(v) for k, v in boss.color_settings_at_startup.items()}
tbc = colors.get('transparent_background_colors')
if tbc:
from kitty.options.utils import transparent_background_colors
parsed_tbc = transparent_background_colors(str(tbc))
Expand Down

0 comments on commit d3f93cb

Please sign in to comment.