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 <noreply@anthropic.com>
This commit is contained in:
Mikhail Kilin
2026-03-03 00:57:06 +03:00
parent df89c4e376
commit 260b81443e
2 changed files with 3 additions and 8 deletions

View File

@@ -35,7 +35,7 @@ pub fn render<T: TdClientTrait>(f: &mut Frame, area: Rect, app: &mut App<T>) {
let search_style = if app.is_searching { let search_style = if app.is_searching {
Style::default().fg(Color::Yellow) Style::default().fg(Color::Yellow)
} else { } else {
Style::default().fg(Color::DarkGray) Style::default().fg(Color::Rgb(160, 160, 160))
}; };
let search = Paragraph::new(search_text) let search = Paragraph::new(search_text)
.block(Block::default().borders(Borders::ALL)) .block(Block::default().borders(Borders::ALL))

View File

@@ -19,12 +19,7 @@ pub fn render<T: TdClientTrait>(f: &mut Frame, area: Rect, app: &App<T>) {
NetworkState::Updating => "⏳ Обновление... | ", NetworkState::Updating => "⏳ Обновление... | ",
}; };
// Account indicator (shown if not "default") let account_indicator = format!("[{}] ", app.current_account_name);
let account_indicator = if app.current_account_name != "default" {
format!("[{}] ", app.current_account_name)
} else {
String::new()
};
let status = if let Some(msg) = &app.status_message { let status = if let Some(msg) = &app.status_message {
format!(" {}{}{} ", account_indicator, network_indicator, msg) format!(" {}{}{} ", account_indicator, network_indicator, msg)
@@ -57,7 +52,7 @@ pub fn render<T: TdClientTrait>(f: &mut Frame, area: Rect, app: &App<T>) {
} else if app.status_message.is_some() { } else if app.status_message.is_some() {
Style::default().fg(Color::Yellow) Style::default().fg(Color::Yellow)
} else { } else {
Style::default().fg(Color::DarkGray) Style::default().fg(Color::Rgb(160, 160, 160))
}; };
let footer = Paragraph::new(status).style(style); let footer = Paragraph::new(status).style(style);