Skip to content

Split Border Color Ignored on Initial Startup #8180

Description

@jackplus-xyz

Describe the bug
The split border color in Kitty terminal does not respect the inactive_border_color setting from theme configuration files on initial startup.

Expected Behavior

  • Split borders should use the color specified in inactive_border_color from the appropriate theme file immediately upon startup.

Actual Behavior

  • On startup: Split borders use the default color instead of the configured inactive_border_color
  • After theme switch: Split borders correctly use the configured inactive_border_color

To Reproduce
Steps to reproduce the behavior:

  1. Configure theme files:

    • Edit all theme files (dark-theme.auto.conf, light-theme.auto.conf, no-preference-theme.auto.conf)
    • Set inactive_border_color to #FF0000 in each file
  2. Test sequence:

    • Launch Kitty terminal
    • Create a split
    • Split borders using default color (incorrect)
    • Switch system theme (light/dark)
    • Observe split borders now using inactive_border_color

Screenshots

At startup:
Screenshot 2024-12-30 at 16 46 46

After switching system theme from light -> dark -> light:
Screenshot 2024-12-30 at 16 46 56

Environment details

kitty 0.38.0 (d3f93cb0cb) created by Kovid Goyal
Darwin JachH-MacBook-Air-13.local 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec  6 18:51:28 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8112 arm64
ProductName:  macOS ProductVersion:  15.2 BuildVersion:  24C101
OpenGL: '4.1 Metal - 89.3' Detected version: 4.1
Frozen: True
Fonts:
  medium: IBMPlexMono-Regular: /Users/jj/Library/Fonts/IBMPlexMono-Regular.ttf
          Features: ()
    bold: IBMPlexMono-SemiBold: /Users/jj/Library/Fonts/IBMPlexMono-SemiBold.ttf
          Features: ()
  italic: IBMPlexMono-Italic: /Users/jj/Library/Fonts/IBMPlexMono-Italic.ttf
          Features: ()
      bi: IBMPlexMono-SemiBoldItalic: /Users/jj/Library/Fonts/IBMPlexMono-SemiBoldItalic.ttf
          Features: ()
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/zsh
System color scheme: light. Applied color theme type: light
Loaded config files:
  /Users/jj/.config/kitty/kitty.conf

Config options different from defaults:
active_border_color     None
allow_remote_control    yes
background_blur         32
confirm_os_window_close 0
copy_on_select          clipboard
cursor_trail            1
cursor_trail_decay      (0.05, 0.1)
enabled_layouts         ['splits', 'tall', 'stack', 'fat:bias=50;full_size=1;mirrored=false']
font_family             IBM Plex Mono
font_size               14.0
hide_window_decorations 2
inactive_text_alpha     0.8
input_delay             0
listen_on               unix:/tmp/mykitty
macos_option_as_alt     3
mouse_hide_wait         -1.0
repaint_delay           2
shell                   /usr/local/bin/fish
sync_to_monitor         False
tab_bar_align           center
tab_bar_edge            1
tab_bar_margin_height   TabBarMarginHeight(outer=8.0, inner=0)
tab_bar_style           separator
tab_separator            
tab_title_template      ⏺
wayland_enable_ime      False
window_padding_width    FloatEdges(left=10.0, top=2.0, right=10.0, bottom=2.0)
Changed mouse actions:
 right press ungrabbed →  mouse_select_command_output # right click to select command output
Changed shortcuts:
 cmd+k →  clear_terminal_and_scrollback
 ctrl+cmd+, →  reload_config
 opt+cmd+r →  reset_terminal
 shift+cmd+/ →  open_kitty_website
Colors:
 active_tab_background   #ffffff
 active_tab_foreground   #4170ae
 background              #ffffff
 color1                  #c82828
 color10                 #708b00
 color11                 #e9b600
 color12                 #4170ae
 color13                 #8958a7
 color14                 #3d999f
 color15                 #fffefe
 color2                  #708b00
 color3                  #e9b600
 color4                  #4170ae
 color5                  #8958a7
 color6                  #3d999f
 color7                  #fffefe
 color8                  #000000
 color9                  #c82828
 cursor                  #4c4c4c
 foreground              #4c4c4c
 inactive_border_color   #ff0000
 inactive_tab_background #ffffff
 inactive_tab_foreground #d6d6d6
 selection_background    #d6d6d6
 selection_foreground    #ffffff

Important environment variables seen by the kitty process:
 PATH                                /Applications/kitty.app/Contents/MacOS:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
 LANG                                en_US.UTF-8
 SHELL                               /bin/zsh
 USER                                jj

Additional context

The issue persist with no config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions