diff --git a/src/ui/draw_blocks/filter.rs b/src/ui/draw_blocks/filter.rs index 987a46e..101ce2d 100644 --- a/src/ui/draw_blocks/filter.rs +++ b/src/ui/draw_blocks/filter.rs @@ -52,7 +52,7 @@ pub fn draw(area: Rect, colors: AppColors, frame: &mut Frame, fd: &FrameData) { line.extend_from_slice(&filter_by_spans(colors, fd)); line.extend_from_slice(&[ Span::styled( - " term: ", + " filter term: ", Style::default() .fg(colors.filter.highlight) .add_modifier(Modifier::BOLD), @@ -116,7 +116,7 @@ mod tests { assert_eq!(result_cell.bg, Color::Gray); assert_eq!(result_cell.fg, Color::Black); } - 47..=53 => { + 47..=60 => { assert_eq!(result_cell.bg, Color::Reset); assert_eq!(result_cell.fg, Color::Magenta); assert_eq!(result_cell.modifier, Modifier::BOLD); @@ -166,7 +166,7 @@ mod tests { assert_eq!(result_cell.bg, Color::Magenta); assert_eq!(result_cell.fg, Color::Black); } - 5..=11 | 27..=46 | 54..=55 => { + 5..=11 | 27..=46 | 61..=62 => { assert_eq!(result_cell.bg, Color::Reset); assert_eq!(result_cell.fg, Color::Gray); } @@ -174,7 +174,7 @@ mod tests { assert_eq!(result_cell.bg, Color::Gray); assert_eq!(result_cell.fg, Color::Black); } - 47..=53 => { + 47..=60 => { assert_eq!(result_cell.bg, Color::Reset); assert_eq!(result_cell.fg, Color::Magenta); assert_eq!(result_cell.modifier, Modifier::BOLD); @@ -222,7 +222,7 @@ mod tests { assert_eq!(result_cell.bg, Color::Gray); assert_eq!(result_cell.fg, Color::Black); } - 47..=53 => { + 47..=60 => { assert_eq!(result_cell.bg, Color::Reset); assert_eq!(result_cell.fg, Color::Magenta); assert_eq!(result_cell.modifier, Modifier::BOLD); @@ -273,7 +273,7 @@ mod tests { assert_eq!(result_cell.bg, Color::Blue); assert_eq!(result_cell.fg, Color::Yellow); } - 5..=11 | 27..=46 | 54..=55 => { + 5..=11 | 27..=46 | 61..=62 => { assert_eq!(result_cell.bg, Color::White); assert_eq!(result_cell.fg, Color::Magenta); } @@ -281,7 +281,7 @@ mod tests { assert_eq!(result_cell.bg, Color::Red); assert_eq!(result_cell.fg, Color::Yellow); } - 47..=53 => { + 47..=60 => { assert_eq!(result_cell.bg, Color::White); assert_eq!(result_cell.fg, Color::Blue); assert_eq!(result_cell.modifier, Modifier::BOLD); diff --git a/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row.snap b/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row.snap index 9f5b920..f7b9563 100644 --- a/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row.snap +++ b/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row.snap @@ -2,4 +2,4 @@ source: src/ui/draw_blocks/filter.rs expression: setup.terminal.backend() --- -" Esc clear ← by → Name Image Status All term: " +" Esc clear ← by → Name Image Status All filter term: " diff --git a/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_custom_colors.snap b/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_custom_colors.snap index eb2fd5d..fbf7f0f 100644 --- a/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_custom_colors.snap +++ b/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_custom_colors.snap @@ -2,4 +2,4 @@ source: src/ui/draw_blocks/filter.rs expression: setup.terminal.backend() --- -" Esc clear ← by → Name Image Status All term: cd " +" Esc clear ← by → Name Image Status All filter term: cd " diff --git a/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_filter_by.snap b/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_filter_by.snap index 9f5b920..f7b9563 100644 --- a/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_filter_by.snap +++ b/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_filter_by.snap @@ -2,4 +2,4 @@ source: src/ui/draw_blocks/filter.rs expression: setup.terminal.backend() --- -" Esc clear ← by → Name Image Status All term: " +" Esc clear ← by → Name Image Status All filter term: " diff --git a/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_text.snap b/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_text.snap index eb2fd5d..fbf7f0f 100644 --- a/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_text.snap +++ b/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__filter__tests__draw_blocks_filter_row_text.snap @@ -2,4 +2,4 @@ source: src/ui/draw_blocks/filter.rs expression: setup.terminal.backend() --- -" Esc clear ← by → Name Image Status All term: cd " +" Esc clear ← by → Name Image Status All filter term: cd " diff --git a/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__tests__draw_blocks_whole_layout_with_filter_bar.snap b/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__tests__draw_blocks_whole_layout_with_filter_bar.snap index 4e98c14..4a576be 100644 --- a/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__tests__draw_blocks_whole_layout_with_filter_bar.snap +++ b/src/ui/draw_blocks/snapshots/oxker__ui__draw_blocks__tests__draw_blocks_whole_layout_with_filter_bar.snap @@ -31,4 +31,4 @@ expression: setup.terminal.backend() "│ │• •• ││ │• •• ││ │" "│ │ ││ │ ││ │" "╰───────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────────────────────────╯╰────────────────────────────╯" -" Esc clear ← by → Name Image Status All term: r_1 " +" Esc clear ← by → Name Image Status All filter term: r_1 "