This commit is contained in:
Ben LeFevre 2024-11-20 17:21:04 -06:00 committed by GitHub
commit 9cc123a77d
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 | | Key | Notes |
| --- | --- | | --- | --- |
| `ui.background` | | | `ui.background` | |
| `ui.background.inactive` | Background of unfocused document |
| `ui.background.separator` | Picker separator below input line | | `ui.background.separator` | Picker separator below input line |
| `ui.cursor` | | | `ui.cursor` | |
| `ui.cursor.normal` | | | `ui.cursor.normal` | |

View File

@ -98,6 +98,10 @@ pub fn render_view(
let text_annotations = view.text_annotations(doc, Some(theme)); let text_annotations = view.text_annotations(doc, Some(theme));
let mut decorations = DecorationManager::default(); 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 { if is_focused && config.cursorline {
decorations.add_decoration(Self::cursorline(doc, view, theme)); decorations.add_decoration(Self::cursorline(doc, view, theme));
} }