aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/prompt.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-05-07 08:38:25 +0000
committerBlaž Hrastnik2021-05-07 08:42:09 +0000
commitf0712479cbdff239347049461be1901e13950044 (patch)
treeb1837b7336a45c21c1baccfd8cca9aac76d2b3c5 /helix-term/src/ui/prompt.rs
parentf87dee926a08162f937cb08454c452c7c4dfdb77 (diff)
Define text color (mostly) in theme.toml.
Diffstat (limited to 'helix-term/src/ui/prompt.rs')
-rw-r--r--helix-term/src/ui/prompt.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs
index f199115f..b7cf4d94 100644
--- a/helix-term/src/ui/prompt.rs
+++ b/helix-term/src/ui/prompt.rs
@@ -103,11 +103,10 @@ use tui::{
};
const BASE_WIDTH: u16 = 30;
-use crate::ui::text_color;
impl Prompt {
pub fn render_prompt(&self, area: Rect, surface: &mut Surface, theme: &Theme) {
- let text_color = text_color();
+ let text_color = theme.get("ui.text.focus");
// completion
if !self.completion.is_empty() {
// TODO: find out better way of clearing individual lines of the screen