From 0795ede7708a1898abe927cf6c40ea8a916e12e3 Mon Sep 17 00:00:00 2001 From: Luke Hsiao Date: Sun, 9 Aug 2026 05:28:17 -0600 Subject: [PATCH] Fix invisible Helix cursorline, ruler, and picker highlights (#6638) afa2839a5ac7 (Rename bg/fg palette keys to background/foreground) aliased `color0` to plain background in theme color resolution, but the Helix template still uses `color0` as the subtle surface shade behind `ui.cursorline.primary`, `ui.virtual.ruler`, `ui.highlight`, and `ui.text.focus`. All four now render at exactly the background color and vanish: no cursorline, no ruler, and the picker's focused row is only distinguishable by its bold text. This is the same failure that d80c98f02546 ("Make color0 distinct from background/foreground and fix helix theme", #5538) fixed back when themes defined color0 directly. Point those scopes at `lighter_background`, the semantic key for a surface one step off the background. Every first-party theme defines it distinct from background except Last Horizon and Solitude, which set the two equal on purpose; those, and legacy themes whose `lighter_background` falls back to background, render exactly as they do today. Assisted-by: Claude:claude-fable-5 Signed-off-by: Luke Hsiao --- default/themed/helix.toml.tpl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/default/themed/helix.toml.tpl b/default/themed/helix.toml.tpl index 062664ff..6ac03d0f 100644 --- a/default/themed/helix.toml.tpl +++ b/default/themed/helix.toml.tpl @@ -76,12 +76,12 @@ "ui.bufferline.active" = { fg = "foreground", bg = "background", underline = { color = "color5", style = "line" } } "ui.text" = "foreground" -"ui.text.focus" = { fg = "foreground", bg = "color0", modifiers = ["bold"] } +"ui.text.focus" = { fg = "foreground", bg = "lighter_background", modifiers = ["bold"] } "ui.text.inactive" = { fg = "color8" } "ui.text.directory" = { fg = "color4" } "ui.virtual" = "color8" -"ui.virtual.ruler" = { bg = "color0" } +"ui.virtual.ruler" = { bg = "lighter_background" } "ui.virtual.indent-guide" = "color8" "ui.virtual.inlay-hint" = { fg = "color8" } "ui.virtual.jump-label" = { fg = "color1", modifiers = ["bold"] } @@ -96,9 +96,9 @@ "ui.cursor.primary.insert" = { fg = "background", bg = "color2" } "ui.cursor.primary.select" = { fg = "background", bg = "color5" } -"ui.cursorline.primary" = { bg = "color0" } +"ui.cursorline.primary" = { bg = "lighter_background" } -"ui.highlight" = { bg = "color0", modifiers = ["bold"] } +"ui.highlight" = { bg = "lighter_background", modifiers = ["bold"] } "ui.menu" = { fg = "foreground", bg = "background" } "ui.menu.selected" = { fg = "background", bg = "foreground", modifiers = ["bold"] } @@ -118,6 +118,7 @@ hint = "color6" [palette] background = "{{ background }}" foreground = "{{ foreground }}" +lighter_background = "{{ lighter_background }}" cursor = "{{ bright_foreground }}" selection_background = "{{ selection_background }}" selection_foreground = "{{ selection_foreground }}"