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

@@ -157,10 +157,8 @@ impl AuthActivity {
self.view.mount( self.view.mount(
super::COMPONENT_TEXT_NEW_VERSION, super::COMPONENT_TEXT_NEW_VERSION,
Box::new(Text::new( Box::new(Text::new(
PropsBuilder::default() PropsBuilder::default()
.with_foreground(Color::Yellow) .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()])))
.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()
.build() .build()
)) ))
); );
@@ -218,7 +216,7 @@ impl AuthActivity {
let auth_chunks = Layout::default() let auth_chunks = Layout::default()
.constraints( .constraints(
[ [
Constraint::Length(5), // header Constraint::Length(6), // header
Constraint::Length(1), // Version Constraint::Length(1), // Version
Constraint::Length(3), // host Constraint::Length(3), // host
Constraint::Length(3), // port Constraint::Length(3), // port