This commit is contained in:
Ben LeFevre 2024-11-13 20:02:04 -05:00 committed by GitHub
commit 986248bd48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -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` | |

View File

@ -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 && 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));
}