mirror of https://github.com/helix-editor/helix
Merge b18e6eed3c
into 22b184b570
commit
f7d60ec414
|
@ -271,6 +271,7 @@ These scopes are used for theming the editor 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` | |
|
||||
|
|
|
@ -94,6 +94,10 @@ impl EditorView {
|
|||
let text_annotations = view.text_annotations(doc, Some(theme));
|
||||
let mut decorations = DecorationManager::default();
|
||||
|
||||
if !(is_focused && self.terminal_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