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:
@@ -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 {
|
||||
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))
|
||||
|
||||
@@ -19,12 +19,7 @@ pub fn render<T: TdClientTrait>(f: &mut Frame, area: Rect, app: &App<T>) {
|
||||
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<T: TdClientTrait>(f: &mut Frame, area: Rect, app: &App<T>) {
|
||||
} 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);
|
||||
|
||||
Reference in New Issue
Block a user