From 260b81443eb0f608dcacc0c47d4fa75a5b732f09 Mon Sep 17 00:00:00 2001 From: Mikhail Kilin Date: Tue, 3 Mar 2026 00:57:06 +0300 Subject: [PATCH] style: replace DarkGray with Rgb(160,160,160) for better terminal compatibility DarkGray renders differently across terminals; a specific RGB value gives consistent appearance. Also always show the account indicator in the footer. Co-Authored-By: Claude Sonnet 4.6 --- src/ui/chat_list.rs | 2 +- src/ui/footer.rs | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/ui/chat_list.rs b/src/ui/chat_list.rs index 2e5cc64..a9695e4 100644 --- a/src/ui/chat_list.rs +++ b/src/ui/chat_list.rs @@ -35,7 +35,7 @@ pub fn render(f: &mut Frame, area: Rect, app: &mut App) { let search_style = if app.is_searching { Style::default().fg(Color::Yellow) } else { - Style::default().fg(Color::DarkGray) + Style::default().fg(Color::Rgb(160, 160, 160)) }; let search = Paragraph::new(search_text) .block(Block::default().borders(Borders::ALL)) diff --git a/src/ui/footer.rs b/src/ui/footer.rs index 135c399..b5753de 100644 --- a/src/ui/footer.rs +++ b/src/ui/footer.rs @@ -19,12 +19,7 @@ pub fn render(f: &mut Frame, area: Rect, app: &App) { NetworkState::Updating => "⏳ Обновление... | ", }; - // Account indicator (shown if not "default") - let account_indicator = if app.current_account_name != "default" { - format!("[{}] ", app.current_account_name) - } else { - String::new() - }; + let account_indicator = format!("[{}] ", app.current_account_name); let status = if let Some(msg) = &app.status_message { format!(" {}{}{} ", account_indicator, network_indicator, msg) @@ -57,7 +52,7 @@ pub fn render(f: &mut Frame, area: Rect, app: &App) { } else if app.status_message.is_some() { Style::default().fg(Color::Yellow) } else { - Style::default().fg(Color::DarkGray) + Style::default().fg(Color::Rgb(160, 160, 160)) }; let footer = Paragraph::new(status).style(style);