Skip to content

Commit 2a23dc8

Browse files
committed
Enhance selected row styling in board rendering
This commit introduces a new style for the selected row in the `render_column` function of `board.rs`. The selected row now features a distinct background color (RGB 255, 165, 0) and bold text, improving visual clarity and user experience when navigating the task list.
1 parent 643c0c2 commit 2a23dc8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/ui/board.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ fn render_column(
169169
selected_row: usize,
170170
color: Color,
171171
) {
172+
let selected_row_style = Style::default()
173+
.fg(Color::Black)
174+
.bg(Color::Rgb(255, 165, 0))
175+
.add_modifier(Modifier::BOLD);
176+
172177
let border_style = if is_selected {
173178
Style::default().fg(color).add_modifier(Modifier::BOLD)
174179
} else {
@@ -196,7 +201,7 @@ fn render_column(
196201
};
197202
let label = format!(" {} [{}] {}{}", prefix, short, task.title, tags);
198203
let style = if is_selected && i == selected_row {
199-
Style::default().fg(Color::White).add_modifier(Modifier::REVERSED)
204+
selected_row_style
200205
} else {
201206
Style::default().fg(Color::White)
202207
};

0 commit comments

Comments
 (0)