@@ -3,7 +3,7 @@ use crate::{
33 compositor::{Component, Compositor, Context, EventResult},
44 key,
55 keymap::{self, Keymaps},
6− ui::{text_color, Completion},
6+ ui::Completion,
77};
88
99use helix_core::{
@@ -150,7 +150,7 @@ impl EditorView {
150150 // first rule that matches (rule.all(|scope| scopes.contains(scope)))
151151 let style = match spans.first() {
152152 Some(span) => theme.get(theme.scopes()[span.0].as_str()),
153− None => Style::default().fg(Color::Rgb(164, 160, 232)), // lavender
153+ None => theme.get("ui.text"),
154154 };
155155
156156 // TODO: we could render the text to a surface, then cache that, that
@@ -409,11 +409,10 @@ impl EditorView {
409409 Mode::Select => "SEL",
410410 Mode::Normal => "NOR",
411411 };
412− // TODO: share text_color styles inside theme
413412 let text_color = if is_focused {
414− Style::default().fg(Color::Rgb(219, 191, 239)) // lilac
413+ theme.get("ui.text.focus")
415414 } else {
416− Style::default().fg(Color::Rgb(164, 160, 232)) // lavender
415+ theme.get("ui.text")
417416 };
418417 // statusline
419418 surface.set_style(
@@ -632,7 +631,7 @@ impl Component for EditorView {
632631 let style = if *severity == Severity::Error {
633632 cx.editor.theme.get("error")
634633 } else {
635− Style::default().fg(Color::Rgb(164, 160, 232)) // lavender
634+ cx.editor.theme.get("ui.text")
636635 };
637636
638637 surface.set_string(