on master help sign in
ui: Tone down the preview highlight by adding a new scope
bf5b9a9Blaž Hrastnik
helix-term/src/ui/picker.rs+4−1
@@ -153,7 +153,10 @@ impl<T: 'static> Component for FilePicker<T> {
153 (end.saturating_sub(start) as u16 + 1)
153 (end.saturating_sub(start) as u16 + 1)
154 .min(inner.height.saturating_sub(offset)),
154 .min(inner.height.saturating_sub(offset)),
155 ),
155 ),
156+ cx.editor
157+ .theme
158+ .try_get("ui.highlight")
156− cx.editor.theme.get("ui.selection"),
159+ .unwrap_or_else(|| cx.editor.theme.get("ui.selection")),
157 );
160 );
158 }
161 }
159 }
162 }
theme.toml+1
@@ -51,6 +51,7 @@ module = "#ff0000"
51"ui.cursor.insert" = { bg = "white" }
51"ui.cursor.insert" = { bg = "white" }
52"ui.cursor.match" = { fg = "#212121", bg = "#6C6999" }
52"ui.cursor.match" = { fg = "#212121", bg = "#6C6999" }
53"ui.cursor" = { modifiers = ["reversed"] }
53"ui.cursor" = { modifiers = ["reversed"] }
54+"ui.highlight" = { bg = "bossanova" }
54
55
55"ui.menu.selected" = { fg = "revolver", bg = "white" }
56"ui.menu.selected" = { fg = "revolver", bg = "white" }
56
57