aboutsummaryrefslogtreecommitdiff
path: root/src/tui/popup.rs
diff options
context:
space:
mode:
authorlukeflo2025-02-22 00:48:41 +0100
committerlukeflo2025-02-22 00:48:41 +0100
commit63d4410fdfe7712faec287aee2f5c0ca288dc996 (patch)
treecdc1c3a2fa012c9c194766c256572129ae069a92 /src/tui/popup.rs
parent9cfed78e434a165d4cc01a869dfa7066b8b29819 (diff)
downloadbibiman-63d4410fdfe7712faec287aee2f5c0ca288dc996.tar.gz
bibiman-63d4410fdfe7712faec287aee2f5c0ca288dc996.zip
replace Config crate with Figment -> better merging of default and config values
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),
]))
}