mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
parent
5c864922d8
commit
bfc4ff4dcf
@ -208,6 +208,7 @@ #### Interface
|
|||||||
| Key | Notes |
|
| Key | Notes |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `ui.background` | |
|
| `ui.background` | |
|
||||||
|
| `ui.background.separator` | Picker separator below input line |
|
||||||
| `ui.cursor` | |
|
| `ui.cursor` | |
|
||||||
| `ui.cursor.insert` | |
|
| `ui.cursor.insert` | |
|
||||||
| `ui.cursor.select` | |
|
| `ui.cursor.select` | |
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
use helix_core::{movement::Direction, Position};
|
use helix_core::{movement::Direction, Position};
|
||||||
use helix_view::{
|
use helix_view::{
|
||||||
editor::Action,
|
editor::Action,
|
||||||
graphics::{Color, CursorKind, Margin, Modifier, Rect, Style},
|
graphics::{CursorKind, Margin, Modifier, Rect},
|
||||||
Document, Editor,
|
Document, Editor,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -587,7 +587,7 @@ fn render(&mut self, area: Rect, surface: &mut Surface, cx: &mut Context) {
|
|||||||
self.prompt.render(area, surface, cx);
|
self.prompt.render(area, surface, cx);
|
||||||
|
|
||||||
// -- Separator
|
// -- Separator
|
||||||
let sep_style = Style::default().fg(Color::Rgb(90, 89, 119));
|
let sep_style = cx.editor.theme.get("ui.background.separator");
|
||||||
let borders = BorderType::line_symbols(BorderType::Plain);
|
let borders = BorderType::line_symbols(BorderType::Plain);
|
||||||
for x in inner.left()..inner.right() {
|
for x in inner.left()..inner.right() {
|
||||||
if let Some(cell) = surface.get_mut(x, inner.y + 1) {
|
if let Some(cell) = surface.get_mut(x, inner.y + 1) {
|
||||||
|
@ -43,6 +43,7 @@ label = "honey"
|
|||||||
# concat (ERROR) @error.syntax and "MISSING ;" selectors for errors
|
# concat (ERROR) @error.syntax and "MISSING ;" selectors for errors
|
||||||
|
|
||||||
"ui.background" = { bg = "midnight" }
|
"ui.background" = { bg = "midnight" }
|
||||||
|
"ui.background.separator" = { fg = "comet" }
|
||||||
"ui.linenr" = { fg = "comet" }
|
"ui.linenr" = { fg = "comet" }
|
||||||
"ui.linenr.selected" = { fg = "lilac" }
|
"ui.linenr.selected" = { fg = "lilac" }
|
||||||
"ui.statusline" = { fg = "lilac", bg = "revolver" }
|
"ui.statusline" = { fg = "lilac", bg = "revolver" }
|
||||||
|
Loading…
Reference in New Issue
Block a user