mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Fixed missing color for update notice
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user