Added `ui.bufferline.marker` key to style the underflow and overflow markers

pull/8362/head
CedricMeu 5 months ago
parent 319a0025e3
commit fab4fa7894

@ -293,8 +293,9 @@ These scopes are used for theming the editor interface:
| `ui.statusline.select` | Statusline mode during select mode ([only if `editor.color-modes` is enabled][editor-section]) |
| `ui.statusline.separator` | Separator character in statusline |
| `ui.bufferline` | Style for the buffer line |
| `ui.bufferline.active` | Style for the active buffer in buffer line |
| `ui.bufferline.active` | Style for the active buffer in buffer line |
| `ui.bufferline.background` | Style for bufferline background |
| `ui.bufferline.marker` | Style for bufferline underflow and overflow markers |
| `ui.popup` | Documentation popups (e.g. Space + k) |
| `ui.popup.info` | Prompt for multiple key options |
| `ui.window` | Borderlines separating splits |

@ -722,8 +722,8 @@ impl EditorView {
// Add under and overflow markers.
let markers = editor
.theme
.try_get("ui.bufferline")
.unwrap_or_else(|| editor.theme.get("ui.bufferline.active"));
.try_get("ui.bufferline.marker")
.unwrap_or_else(|| editor.theme.get("ui.bufferline"));
if mark_underflow {
let _ = surface.set_string(viewport.left(), viewport.top(), " < ", markers);

Loading…
Cancel
Save