mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
ui: Tone down the preview highlight by adding a new scope
This commit is contained in:
parent
e6cb183134
commit
bf5b9a9f35
@ -153,7 +153,10 @@ fn render(&mut self, area: Rect, surface: &mut Surface, cx: &mut Context) {
|
||||
(end.saturating_sub(start) as u16 + 1)
|
||||
.min(inner.height.saturating_sub(offset)),
|
||||
),
|
||||
cx.editor.theme.get("ui.selection"),
|
||||
cx.editor
|
||||
.theme
|
||||
.try_get("ui.highlight")
|
||||
.unwrap_or_else(|| cx.editor.theme.get("ui.selection")),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ module = "#ff0000"
|
||||
"ui.cursor.insert" = { bg = "white" }
|
||||
"ui.cursor.match" = { fg = "#212121", bg = "#6C6999" }
|
||||
"ui.cursor" = { modifiers = ["reversed"] }
|
||||
"ui.highlight" = { bg = "bossanova" }
|
||||
|
||||
"ui.menu.selected" = { fg = "revolver", bg = "white" }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user