From f75038abf4a341dea6c2d8aae644713f53211bf0 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 26 Sep 2026 15:20:44 +0200 Subject: [PATCH] Draw the borders of inactive windows in faint text The borders of inactive windows are drawn in the terminal's default text color, so they are as prominent as the text inside the windows. Draw them in faint text instead. The terminal shades faint text toward its background, so this works on dark and light backgrounds alike, and also on backgrounds that are neither black nor white. The titles of inactive windows use the same color, so they are dimmed too. Terminals that don't support faint text draw the borders in the default color, as before. Co-Authored-By: Claude Opus 5.5 (1M context) --- docs-master/Config.md | 2 +- pkg/config/user_config.go | 2 +- schema-master/config.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs-master/Config.md b/docs-master/Config.md index 3fb2ba655..6d8f2fe10 100644 --- a/docs-master/Config.md +++ b/docs-master/Config.md @@ -181,7 +181,7 @@ gui: # Border color of non-focused windows inactiveBorderColor: - - default + - dim # Border color of focused window when searching in that window searchingActiveBorderColor: diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index 98a4a16c9..f4d00cf60 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -893,7 +893,7 @@ func GetDefaultConfigForPlatform(platform string) *UserConfig { Theme: ThemeConfig{ ActiveBorderColor: []string{"green", "bold"}, SearchingActiveBorderColor: []string{"cyan", "bold"}, - InactiveBorderColor: []string{"default"}, + InactiveBorderColor: []string{"dim"}, OptionsTextColor: []string{"blue"}, SelectedLineBgColor: []string{"blue"}, CherryPickedCommitBgColor: []string{"cyan"}, diff --git a/schema-master/config.json b/schema-master/config.json index 00b398c17..9b6383a7a 100644 --- a/schema-master/config.json +++ b/schema-master/config.json @@ -739,7 +739,7 @@ "uniqueItems": true, "description": "Border color of non-focused windows", "default": [ - "default" + "dim" ] }, "searchingActiveBorderColor": {