@@ -6,12 +6,8 @@ use tui::widgets::{Block, Borders, Paragraph, Widget};
7impl Component for Info {
7impl Component for Info {
8 fn render(&mut self, viewport: Rect, surface: &mut Surface, cx: &mut Context) {
8 fn render(&mut self, viewport: Rect, surface: &mut Surface, cx: &mut Context) {
9− let get_theme = |style, fallback| {
10− let theme = &cx.editor.theme;
9+ let text_style = cx.editor.theme.get("ui.text.info");
11− theme.try_get(style).unwrap_or_else(|| theme.get(fallback))
13− let text_style = get_theme("ui.info.text", "ui.text");
14− let popup_style = text_style.patch(get_theme("ui.info", "ui.popup"));
10+ let popup_style = cx.editor.theme.get("ui.popup.info");
16 // Calculate the area of the terminal to modify. Because we want to
12 // Calculate the area of the terminal to modify. Because we want to
17 // render at the bottom right, we use the viewport's width and height
13 // render at the bottom right, we use the viewport's width and height