@@ -6,14 +6,19 @@ use tui::widgets::{Block, Borders, Widget};
66
77impl Component for Info {
88 fn render(&self, viewport: Rect, surface: &mut Surface, cx: &mut Context) {
9− let block = Block::default().title(self.title).borders(Borders::ALL);
9+ let style = cx.editor.theme.get("ui.popup");
10+ let block = Block::default()
11+ .title(self.title)
12+ .borders(Borders::ALL)
13+ .border_style(style);
1014 let Info { width, height, .. } = self;
1115 let (w, h) = (*width + 2, *height + 2);
1216 // -2 to subtract command line + statusline. a bit of a hack, because of splits.
1317 let area = Rect::new(viewport.width - w, viewport.height - h - 2, w, h);
18+ surface.clear_with(area, style);
1419 let Rect { x, y, .. } = block.inner(area);
1520 for (y, line) in (y..).zip(self.text.lines()) {
16− surface.set_string(x, y, line, Style::default());
21+ surface.set_string(x, y, line, style);
1722 }
1823 block.render(area, surface);
1924 }