pull/7988/merge
Ben LeFevre 2025-07-21 16:04:24 +00:00 committed by GitHub
commit f7d60ec414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

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

View File

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