From b95eeb725b78e0ebc7395af1aff0d8f7e096ff5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl-Einar=20Bergstr=C3=B8m?= Date: Sun, 11 Oct 2026 23:20:12 +0200 Subject: [PATCH] fix: the selected row has a background in every pane, not only the focused one Bold alone was hard to see without a theme, so the other panes didn't show what was selected in them. Co-Authored-By: Claude Opus 5.5 (1M context) --- docs/config.md | 2 +- internal/ui/styles/styles.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/config.md b/docs/config.md index c44a577..487e8e1 100644 --- a/docs/config.md +++ b/docs/config.md @@ -56,7 +56,7 @@ theme: activeBorderColor: ["#ff966c", bold] # focused pane inactiveBorderColor: ["#589ed7"] selectedLineBgColor: ["#2d3f76"] # cursor row background (default: palette 8) - inactiveViewSelectedLineBgColor: ["#2f334d"] + inactiveViewSelectedLineBgColor: ["#2f334d"] # in the other panes (default: palette 8, not bold) defaultFgColor: ["#c8d3f5"] optionsTextColor: ["#82aaff"] # keys and labels searchMatchColor: ["#ffc777", bold] diff --git a/internal/ui/styles/styles.go b/internal/ui/styles/styles.go index ba0200c..7abf832 100644 --- a/internal/ui/styles/styles.go +++ b/internal/ui/styles/styles.go @@ -43,9 +43,11 @@ func Default() Styles { TitleBlurred: lipgloss.NewStyle(), Footer: lipgloss.NewStyle().Faint(true), - // A background rather than reverse, so the row keeps its colours. + // A background rather than reverse, so the row keeps its colours; + // in every pane, so each shows what's selected in it. The focused + // pane's is bold too. Selected: lipgloss.NewStyle().Background(lipgloss.BrightBlack).Bold(true), - SelectedBlurred: lipgloss.NewStyle().Bold(true), + SelectedBlurred: lipgloss.NewStyle().Background(lipgloss.BrightBlack), Muted: lipgloss.NewStyle().Faint(true), Error: lipgloss.NewStyle().Foreground(lipgloss.Red), Notice: lipgloss.NewStyle().Foreground(lipgloss.Green),