@@ -3,7 +3,7 @@ use crate::{
3 compositor::{Component, Compositor, Context, EventResult},
3 compositor::{Component, Compositor, Context, EventResult},
5 keymap::{self, Keymaps},
5 keymap::{self, Keymaps},
6− ui::{text_color, Completion},
6+ ui::Completion,
9use helix_core::{
9use helix_core::{
@@ -150,7 +150,7 @@ impl EditorView {
150 // first rule that matches (rule.all(|scope| scopes.contains(scope)))
150 // first rule that matches (rule.all(|scope| scopes.contains(scope)))
151 let style = match spans.first() {
151 let style = match spans.first() {
152 Some(span) => theme.get(theme.scopes()[span.0].as_str()),
152 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"),
156 // TODO: we could render the text to a surface, then cache that, that
156 // TODO: we could render the text to a surface, then cache that, that
@@ -409,11 +409,10 @@ impl EditorView {
409 Mode::Select => "SEL",
409 Mode::Select => "SEL",
410 Mode::Normal => "NOR",
410 Mode::Normal => "NOR",
412− // TODO: share text_color styles inside theme
413 let text_color = if is_focused {
412 let text_color = if is_focused {
414− Style::default().fg(Color::Rgb(219, 191, 239)) // lilac
413+ theme.get("ui.text.focus")
416− Style::default().fg(Color::Rgb(164, 160, 232)) // lavender
415+ theme.get("ui.text")
418 // statusline
417 // statusline
419 surface.set_style(
418 surface.set_style(
@@ -632,7 +631,7 @@ impl Component for EditorView {
632 let style = if *severity == Severity::Error {
631 let style = if *severity == Severity::Error {
633 cx.editor.theme.get("error")
632 cx.editor.theme.get("error")
635− Style::default().fg(Color::Rgb(164, 160, 232)) // lavender
634+ cx.editor.theme.get("ui.text")
638 surface.set_string(
637 surface.set_string(