aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/info.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/ui/info.rs')
-rw-r--r--helix-term/src/ui/info.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/helix-term/src/ui/info.rs b/helix-term/src/ui/info.rs
index 0da0fe65..75d978da 100644
--- a/helix-term/src/ui/info.rs
+++ b/helix-term/src/ui/info.rs
@@ -6,7 +6,8 @@ use tui::widgets::{Block, Borders, Paragraph, Widget};
impl Component for Info {
fn render(&mut self, viewport: Rect, surface: &mut Surface, cx: &mut Context) {
- let style = cx.editor.theme.get("ui.popup");
+ let text_style = cx.editor.theme.get("ui.text.focus");
+ let popup_style = text_style.patch(cx.editor.theme.get("ui.popup"));
// Calculate the area of the terminal to modify. Because we want to
// render at the bottom right, we use the viewport's width and height
@@ -19,12 +20,12 @@ impl Component for Info {
width,
height,
));
- surface.clear_with(area, style);
+ surface.clear_with(area, popup_style);
let block = Block::default()
.title(self.title.as_str())
.borders(Borders::ALL)
- .border_style(style);
+ .border_style(popup_style);
let margin = Margin {
vertical: 0,
@@ -33,6 +34,8 @@ impl Component for Info {
let inner = block.inner(area).inner(&margin);
block.render(area, surface);
- Paragraph::new(self.text.as_str()).render(inner, surface);
+ Paragraph::new(self.text.as_str())
+ .style(text_style)
+ .render(inner, surface);
}
}