aboutsummaryrefslogtreecommitdiff
path: root/src/tui/popup.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/popup.rs')
-rw-r--r--src/tui/popup.rs21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/tui/popup.rs b/src/tui/popup.rs
index 6a2e8ff..f226429 100644
--- a/src/tui/popup.rs
+++ b/src/tui/popup.rs
@@ -89,31 +89,16 @@ impl PopupArea {
for (keys, help) in help {
if help == "first" {
helptext.push(Line::from(
- Span::raw(keys).bold().fg(cfg
- .colors
- .as_ref()
- .unwrap()
- .main_text_color
- .unwrap()),
+ Span::raw(keys).bold().fg(cfg.colors.main_text_color),
))
} else if help == "sub" {
helptext.push(Line::from(""));
helptext.push(Line::from(
- Span::raw(keys).bold().fg(cfg
- .colors
- .as_ref()
- .unwrap()
- .main_text_color
- .unwrap()),
+ Span::raw(keys).bold().fg(cfg.colors.main_text_color),
))
} else {
helptext.push(Line::from(vec![
- Span::raw(keys).bold().fg(cfg
- .colors
- .as_ref()
- .unwrap()
- .main_text_color
- .unwrap()),
+ Span::raw(keys).bold().fg(cfg.colors.main_text_color),
Span::raw(help),
]))
}