Skip to content

Commit 8e42e90

Browse files
committed
feat: highlight save-related status messages in accent color
- Status bar renders 'press w to save' and 'saved to' in cyan bold - All other status messages remain dim gray
1 parent e956188 commit 8e42e90

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/ui/draw.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,9 +900,14 @@ fn draw_settings_info(frame: &mut Frame, app: &App, area: Rect) {
900900
// ─── Status bar ───────────────────────────────────────────────────────────────
901901

902902
fn draw_status(frame: &mut Frame, app: &App, area: Rect) {
903+
let style = if app.status.contains("press w to save") || app.status.contains("saved to") {
904+
Style::default().fg(C_ACCENT).bold()
905+
} else {
906+
Style::default().fg(C_DIM)
907+
};
903908
let status = Paragraph::new(Line::from(vec![
904909
Span::styled(" ", Style::default()),
905-
Span::styled(&app.status, Style::default().fg(C_DIM)),
910+
Span::styled(&app.status, style),
906911
]));
907912
frame.render_widget(status, area);
908913
}

0 commit comments

Comments
 (0)