mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 01:46:18 +04:00
ui: Stop hardcoding markdown doc colors
This commit is contained in:
parent
27ceeb83bb
commit
9dcccb45bb
@ -61,9 +61,15 @@ fn to_span(text: pulldown_cmark::CowStr) -> Span {
|
||||
})
|
||||
}
|
||||
|
||||
let text_style = Style::default().fg(Color::Rgb(164, 160, 232)); // lavender
|
||||
let code_style = Style::default().fg(Color::Rgb(255, 255, 255)); // white
|
||||
let heading_style = Style::default().fg(Color::Rgb(219, 191, 239)); // lilac
|
||||
let text_style = theme.map(|theme| theme.get("ui.text")).unwrap_or_default();
|
||||
|
||||
// TODO: use better scopes for these, `markup.raw.block`, `markup.heading`
|
||||
let code_style = theme
|
||||
.map(|theme| theme.get("ui.text.focus"))
|
||||
.unwrap_or_default(); // white
|
||||
let heading_style = theme
|
||||
.map(|theme| theme.get("ui.linenr.selected"))
|
||||
.unwrap_or_default(); // lilac
|
||||
|
||||
for event in parser {
|
||||
match event {
|
||||
|
Loading…
Reference in New Issue
Block a user