Skip to content

Commit 744fe58

Browse files
committed
Fix defmt being incorrectly highlighted
1 parent 4846edc commit 744fe58

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/tui.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,13 @@ impl Colors {
185185
app_background: Color::Black,
186186
header_bg: Color::DarkGray,
187187
normal_row_color: Color::Black,
188-
help_row_color: Color::Black,
188+
help_row_color: Color::DarkGray,
189189
disabled_style_fg: Color::DarkGray,
190190
text_color: Color::Gray,
191191

192192
selected_active_style: Style::new()
193193
.add_modifier(Modifier::BOLD)
194-
.fg(Color::Blue)
194+
.fg(Color::White)
195195
.bg(Color::Blue),
196196
selected_inactive_style: Style::new()
197197
.add_modifier(Modifier::BOLD)
@@ -227,8 +227,8 @@ impl<'app> App<'app> {
227227
initial_state.select(Some(0));
228228

229229
let (ui_elements, colors) = match std::env::var("TERM_PROGRAM").as_deref() {
230-
Ok(s) if s == "vscode" => (UiElements::FALLBACK, Colors::RGB),
231-
Ok(s) if s == "Apple_Terminal" => (UiElements::FALLBACK, Colors::ANSI),
230+
Ok("vscode") => (UiElements::FALLBACK, Colors::RGB),
231+
Ok("Apple_Terminal") => (UiElements::FALLBACK, Colors::ANSI),
232232
_ => (UiElements::FANCY, Colors::RGB),
233233
};
234234

@@ -408,7 +408,8 @@ impl App<'_> {
408408
.current_level()
409409
.get(idx.min(items.len() - 1))
410410
}) {
411-
self.repository.config.is_active(current)
411+
self.repository.current_level_is_active()
412+
&& self.repository.config.is_active(current)
412413
} else {
413414
false
414415
};

0 commit comments

Comments
 (0)