mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 02:46:17 +04:00
feat: add different background color for inactive panes
This commit is contained in:
parent
a7651f5bf0
commit
7ffb76af21
@ -269,6 +269,7 @@ #### Interface
|
||||
| Key | Notes |
|
||||
| --- | --- |
|
||||
| `ui.background` | |
|
||||
| `ui.background.inactive` | Background of unfocused document |
|
||||
| `ui.background.separator` | Picker separator below input line |
|
||||
| `ui.cursor` | |
|
||||
| `ui.cursor.normal` | |
|
||||
|
@ -98,6 +98,10 @@ pub fn render_view(
|
||||
let text_annotations = view.text_annotations(doc, Some(theme));
|
||||
let mut decorations = DecorationManager::default();
|
||||
|
||||
if !is_focused {
|
||||
surface.set_style(area, theme.get("ui.background.inactive"))
|
||||
}
|
||||
|
||||
if is_focused && config.cursorline {
|
||||
decorations.add_decoration(Self::cursorline(doc, view, theme));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user