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) <noreply@anthropic.com>
This commit is contained in:
Stefan Haller
2026-09-27 08:16:06 +02:00
co-authored by Claude Opus 5.5
parent ca950181e8
commit f75038abf4
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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"},
+1 -1
View File
@@ -739,7 +739,7 @@
"uniqueItems": true,
"description": "Border color of non-focused windows",
"default": [
"default"
"dim"
]
},
"searchingActiveBorderColor": {