Skip to content

Commit 8584543

Browse files
committed
style(tui): thicken focused panel border
Render focused panel with heavy box glyphs for visible focus ring on light themes. - Switch focused `panel_block` to `BorderType::Thick` alongside the existing cyan border style. - Early-return the unfocused baseline block so only focus adds overrides. Co-authored-by: AI high on tokens.
1 parent 564bf64 commit 8584543

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/interactive/tui/render.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use ratatui::{
55
layout::{Constraint, Direction, Layout, Rect},
66
style::{Color, Modifier, Style},
77
text::{Line, Span},
8-
widgets::{Block, Borders, List, ListItem, ListState, Padding, Paragraph},
8+
widgets::{Block, BorderType, Borders, List, ListItem, ListState, Padding, Paragraph},
99
};
1010

1111
use super::{
@@ -153,13 +153,13 @@ impl SessionListView {
153153
}
154154

155155
fn panel_block(title: &str, focused: bool) -> Block<'_> {
156-
let border_style = if focused {
157-
Style::default().fg(Color::Cyan)
158-
} else {
159-
Style::default()
160-
};
161-
162-
titled_block(title).border_style(border_style)
156+
let block = titled_block(title);
157+
if !focused {
158+
return block;
159+
}
160+
block
161+
.border_type(BorderType::Thick)
162+
.border_style(Style::default().fg(Color::Cyan))
163163
}
164164

165165
fn titled_block(title: &str) -> Block<'_> {

0 commit comments

Comments
 (0)