Skip to content

Commit 6d30d29

Browse files
committed
small UI improvements
1 parent 1730202 commit 6d30d29

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/ui/explorer_widget.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ impl Component for ExplorerWidget {
530530
}),
531531
)
532532
.highlight_spacing(HighlightSpacing::Always)
533+
.highlight_style(Style::new().fg(theme_colors.alt_fg))
533534
.highlight_symbol(HIGHLIGHT_SYMBOL)
534535
.block(
535536
Block::default()

src/ui/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub struct ThemeColor {
3737
pub header_fg: Color,
3838
pub normal_row_color: Color,
3939
pub alt_row_color: Color,
40-
pub highlight_color: Color,
40+
pub search_highlight_color: Color,
4141
pub selected_color: Color,
4242
pub done_state_color: Color,
4343
pub failure_state_color: Color,
@@ -137,7 +137,7 @@ impl Theme {
137137
header_fg: tailwind::SLATE.c200,
138138
normal_row_color: tailwind::GRAY.c300,
139139
alt_row_color: tailwind::GRAY.c400,
140-
highlight_color: tailwind::RED.c700,
140+
search_highlight_color: tailwind::RED.c700,
141141
selected_color: tailwind::BLACK,
142142
done_state_color: Color::Blue,
143143
failure_state_color: tailwind::RED.c700,
@@ -155,7 +155,7 @@ impl Theme {
155155
header_fg: tailwind::SLATE.c200,
156156
normal_row_color: tailwind::SLATE.c800,
157157
alt_row_color: tailwind::SLATE.c900,
158-
highlight_color: tailwind::GREEN.c500,
158+
search_highlight_color: tailwind::GREEN.c500,
159159
selected_color: tailwind::SKY.c400,
160160
done_state_color: Color::LightCyan,
161161
failure_state_color: tailwind::RED.c500,
@@ -173,7 +173,7 @@ impl Theme {
173173
header_fg: tailwind::SLATE.c200,
174174
normal_row_color: tailwind::SLATE.c900,
175175
alt_row_color: tailwind::BLACK,
176-
highlight_color: tailwind::GREEN.c500,
176+
search_highlight_color: tailwind::GREEN.c500,
177177
selected_color: tailwind::SKY.c400,
178178
done_state_color: tailwind::CYAN.c300,
179179
failure_state_color: tailwind::RED.c500,
@@ -191,7 +191,7 @@ impl Theme {
191191
header_fg: tailwind::SLATE.c200,
192192
normal_row_color: tailwind::INDIGO.c800,
193193
alt_row_color: tailwind::INDIGO.c900,
194-
highlight_color: tailwind::GREEN.c500,
194+
search_highlight_color: tailwind::GREEN.c500,
195195
selected_color: tailwind::GREEN.c400,
196196
done_state_color: tailwind::WHITE,
197197
failure_state_color: tailwind::RED.c700,

src/ui/result_widget.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ impl Component for ResultWidget {
644644
let mut highlighted = highlight_text_part(
645645
name,
646646
self.search_result.search_query(),
647-
self.theme.theme_colors().highlight_color,
647+
self.theme.theme_colors().search_highlight_color,
648648
self.theme.theme_colors().alt_fg,
649649
);
650650
highlighted
@@ -654,7 +654,7 @@ impl Component for ResultWidget {
654654
None => highlight_text_part(
655655
shorten_path,
656656
self.search_result.search_query(),
657-
self.theme.theme_colors().highlight_color,
657+
self.theme.theme_colors().search_highlight_color,
658658
self.theme.theme_colors().alt_fg,
659659
),
660660
};

0 commit comments

Comments
 (0)