From c68f712d19008c9d034a5d79253413cc538bd969 Mon Sep 17 00:00:00 2001 From: mcrmck Date: Mon, 2 Mar 2026 00:10:37 -0500 Subject: [PATCH] Fix CI: sort imports and fix Sphinx cross-references Co-Authored-By: Claude Opus 4.6 --- kitty/options/definition.py | 8 ++++---- kitty/tabs.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kitty/options/definition.py b/kitty/options/definition.py index 6cfed2f66..66ca814d6 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -1501,7 +1501,7 @@ opt('window_title_bar_active_foreground', 'none', option_type='to_color_or_none', ctype='color_or_none_as_int', long_text=''' Foreground color for the active window title bar. Defaults to -:opt:`active_tab_foreground` when set to :code:`none`. +the corresponding tab bar color (:code:`active_tab_foreground`) when set to :code:`none`. ''' ) @@ -1509,7 +1509,7 @@ opt('window_title_bar_active_background', 'none', option_type='to_color_or_none', ctype='color_or_none_as_int', long_text=''' Background color for the active window title bar. Defaults to -:opt:`active_tab_background` when set to :code:`none`. +the corresponding tab bar color (:code:`active_tab_background`) when set to :code:`none`. ''' ) @@ -1517,7 +1517,7 @@ opt('window_title_bar_inactive_foreground', 'none', option_type='to_color_or_none', ctype='color_or_none_as_int', long_text=''' Foreground color for inactive window title bars. Defaults to -:opt:`inactive_tab_foreground` when set to :code:`none`. +the corresponding tab bar color (:code:`inactive_tab_foreground`) when set to :code:`none`. ''' ) @@ -1525,7 +1525,7 @@ opt('window_title_bar_inactive_background', 'none', option_type='to_color_or_none', ctype='color_or_none_as_int', long_text=''' Background color for inactive window title bars. Defaults to -:opt:`inactive_tab_background` when set to :code:`none`. +the corresponding tab bar color (:code:`inactive_tab_background`) when set to :code:`none`. ''' ) diff --git a/kitty/tabs.py b/kitty/tabs.py index 456f38a17..119a9e7a4 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -15,7 +15,6 @@ from gettext import gettext as _ from typing import Any, Concatenate, Deque, NamedTuple, Optional, ParamSpec, TypeVar, cast from .borders import Border, Borders -from .window_title_bar import WindowTitleBarManager from .child import Child from .cli_stub import CLIOptions, SaveAsSessionOptions from .constants import appname @@ -62,6 +61,7 @@ from .typing_compat import EdgeLiteral, SessionTab, SessionType, TypedDict from .utils import cmdline_for_hold, color_as_int, log_error, platform_window_id, resolved_shell, shlex_split, which from .window import CwdRequest, Watchers, Window, WindowCreationSpec, WindowDict, global_watchers from .window_list import WindowList +from .window_title_bar import WindowTitleBarManager P = ParamSpec('P') T = TypeVar('T')