ui: Tone down the preview highlight by adding a new scope
commitbf5b9a9f354135933d7970863cf81e5a36585d03
authorBlaž Hrastnik <blaz@mxxn.io>
dateTue 24 Aug 2021, 13:24 (5 years ago)
parente6cb183
helix-term/src/ui/picker.rs+4−1
@@ -153,7 +153,10 @@ impl<T: 'static> Component for FilePicker<T> {
153153 (end.saturating_sub(start) as u16 + 1)
154154 .min(inner.height.saturating_sub(offset)),
155155 ),
156− cx.editor.theme.get("ui.selection"),
156+ cx.editor
157+ .theme
158+ .try_get("ui.highlight")
159+ .unwrap_or_else(|| cx.editor.theme.get("ui.selection")),
157160 );
158161 }
159162 }
theme.toml+1
@@ -51,6 +51,7 @@ module = "#ff0000"
5151"ui.cursor.insert" = { bg = "white" }
5252"ui.cursor.match" = { fg = "#212121", bg = "#6C6999" }
5353"ui.cursor" = { modifiers = ["reversed"] }
54+"ui.highlight" = { bg = "bossanova" }
5455
5556"ui.menu.selected" = { fg = "revolver", bg = "white" }
5657