diff --git a/crates/voelin-ui/ui/screens/account.slint b/crates/voelin-ui/ui/screens/account.slint index 1e3e88c..b5ccb56 100644 --- a/crates/voelin-ui/ui/screens/account.slint +++ b/crates/voelin-ui/ui/screens/account.slint @@ -414,8 +414,8 @@ export component AccountCard inherits Card { if !Bridge.myts.available: Note { text: @tr("Account sign-in is available on desktop."); } if Bridge.myts.signed-in || Bridge.myts.restoring: AccountProfile { } if Bridge.myts.available && !Bridge.myts.signed-in && !Bridge.myts.restoring: LoginForm { } - AccountNotices { } - SessionActions { } + if AccountText.status(Bridge.myts.status) != "" || AccountText.persistence(Bridge.myts.persistence-status) != "": AccountNotices { } + if Bridge.myts.busy || Bridge.myts.can-forget: SessionActions { } if Bridge.myts.signed-in: Divider { } if Bridge.myts.signed-in: AccountManagement { } } @@ -427,8 +427,9 @@ component LoginHero inherits Rectangle { background: @linear-gradient(150deg, #0e1d5c 0%, #1c1470 45%, #3a1f86 75%, #0b2a6b 100%); property ratio: art.source.width * 1.0 / max(1, art.source.height); art := Image { - source: Icons.art-banner; - // Cover the panel, the moon (right) kept. + // The tall night landscape (the home sidebar's), covering the + // panel from the bottom. + source: Icons.art-sidebar; width: max(root.width, root.height * root.ratio); height: self.width / root.ratio; x: root.width - self.width; @@ -437,7 +438,7 @@ component LoginHero inherits Rectangle { accessible-role: AccessibleRole.none; } Rectangle { - background: @linear-gradient(180deg, #060c2ce0 0%, #060c2c90 45%, #060c2c30 100%); + background: @linear-gradient(180deg, #060c2cd8 0%, #060c2c30 100%); } VerticalLayout { padding: Theme.space-8; @@ -501,6 +502,9 @@ export component LoginPage inherits Rectangle { // The window's width (`Nav.narrow`), not this page's: the artwork's // width is part of the page's own layout. property wide: !Nav.narrow; + // Only rows with something in them (an empty one still takes spacing). + property notices: AccountText.status(Bridge.myts.status) != "" || AccountText.persistence(Bridge.myts.persistence-status) != ""; + property actions: Bridge.myts.busy || Bridge.myts.can-forget; HorizontalLayout { padding: root.wide ? Theme.space-6 : 0px; spacing: Theme.space-6; @@ -560,8 +564,8 @@ export component LoginPage inherits Rectangle { spacing: Theme.space-5; if !Bridge.myts.available: Note { text: @tr("Account sign-in is available on desktop."); } if Bridge.myts.available: LoginForm { } - AccountNotices { } - SessionActions { } + if root.notices: AccountNotices { } + if root.actions: SessionActions { } } } HorizontalLayout { diff --git a/crates/voelin-ui/ui/screens/dialogs.slint b/crates/voelin-ui/ui/screens/dialogs.slint index 2de6bc2..8472b2c 100644 --- a/crates/voelin-ui/ui/screens/dialogs.slint +++ b/crates/voelin-ui/ui/screens/dialogs.slint @@ -26,9 +26,9 @@ export component BookmarkDialog inherits Modal { // The fields beyond address and password: shown when editing. property advanced: form.id >= 0; title: join ? @tr("Join a server") : form.id < 0 ? @tr("Add server") : @tr("Edit server"); - // The gateway (presence and chat without joining) is found from the - // address: DNS SRV records, else the gateway's own well-known URL. - subtitle: @tr("Only the address is needed; Voelin finds the rest, including the server's gateway."); + // The rest includes the gateway (presence and chat without joining), + // found from the address: DNS SRV records, else its well-known URL. + subtitle: @tr("Only the address is needed; Voelin finds the rest."); icon: Icons.server; card-width: 560px; // Fits the address and password (two lines more on a phone).