diff options
| author | lukeflo | 2024-11-28 19:12:39 +0100 |
|---|---|---|
| committer | lukeflo | 2024-11-28 19:12:39 +0100 |
| commit | dab7fd7656669bc63c02c4a079ecd0815d9837d7 (patch) | |
| tree | e74ac66f0e7c9931b151d0084009758e788cde2f /src/tui/ui.rs | |
| parent | f55b0c221cf1d901b3bc2301b8a08b4cc71b40d8 (diff) | |
| download | bibiman-dab7fd7656669bc63c02c4a079ecd0815d9837d7.tar.gz bibiman-dab7fd7656669bc63c02c4a079ecd0815d9837d7.zip | |
replace unused vars
Diffstat (limited to 'src/tui/ui.rs')
| -rw-r--r-- | src/tui/ui.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tui/ui.rs b/src/tui/ui.rs index 6c905c9..af36397 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -23,10 +23,6 @@ use crate::bibiman::{CurrentArea, FormerArea}; use crate::cliargs::CLIArgs; use crate::tui::popup::PopupKind; use crate::App; -use crate::{ - CONFIRM_COLOR_INDEX, MAIN_ENTRY_COLOR_INDEX, MAIN_INFO_COLOR_INDEX, MAIN_KEYWORD_COLOR_INDEX, - TEXT_FG_COLOR_INDEX, TEXT_HIGHLIGHT_COLOR_INDEX, WARN_COLOR_INDEX, -}; use ratatui::layout::{Direction, Position}; use ratatui::widgets::Clear; use ratatui::Frame; @@ -650,7 +646,7 @@ pub fn render_entrytable(app: &mut App, args: &CLIArgs, frame: &mut Frame, rect: .entry_table_state .selected() .unwrap_or(0) as i32, - TEXT_HIGHLIGHT_COLOR_INDEX, + args.colors.highlight_text_color, 20, )), ) @@ -953,7 +949,7 @@ pub fn render_taglist(app: &mut App, args: &CLIArgs, frame: &mut Frame, rect: Re color_list( i as i32, app.bibiman.tag_list.tag_list_state.selected().unwrap() as i32, - TEXT_HIGHLIGHT_COLOR_INDEX, + args.colors.highlight_text_color, 20, ) } else { |
