Fixed missing color for update notice

This commit is contained in:
veeso
2021-03-27 20:43:45 +01:00
parent c2d401723f
commit 7812d1c37b

View File

@@ -158,9 +158,7 @@ impl AuthActivity {
super::COMPONENT_TEXT_NEW_VERSION,
Box::new(Text::new(
PropsBuilder::default()
.with_foreground(Color::Yellow)
.with_texts(TextParts::new(None, Some(vec![TextSpan::from(format!("TermSCP {} is now available! Download it from <https://github.com/veeso/termscp/releases/latest>", version).as_str())])))
.bold()
.with_texts(TextParts::new(None, Some(vec![TextSpanBuilder::new(format!("TermSCP {} is now available! Download it from <https://github.com/veeso/termscp/releases/latest>", version).as_str()).with_foreground(Color::Yellow).bold().build()])))
.build()
))
);
@@ -218,7 +216,7 @@ impl AuthActivity {
let auth_chunks = Layout::default()
.constraints(
[
Constraint::Length(5), // header
Constraint::Length(6), // header
Constraint::Length(1), // Version
Constraint::Length(3), // host
Constraint::Length(3), // port