ui: login artwork covers its panel; no empty rows; one-line dialog subtitle

The login page's artwork is the tall night landscape of the home sidebar,
covering the panel from the bottom, under a single smooth fade. Notices
and session actions only take room when they have something to show.
The server dialog keeps its one-line subtitle, so Advanced is not cut off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
This commit is contained in:
Claude committed 2026-10-04 22:43:45 +00:00
1 parent 69fbc374b9
commit 0b9164cc4c
2 files changed
+14 -10

No files matched your search

+11 -7
View File
@@ -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 <float> 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 <bool> wide: !Nav.narrow;
// Only rows with something in them (an empty one still takes spacing).
property <bool> notices: AccountText.status(Bridge.myts.status) != "" || AccountText.persistence(Bridge.myts.persistence-status) != "";
property <bool> 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 {
+3 -3
View File
@@ -26,9 +26,9 @@ export component BookmarkDialog inherits Modal {
// The fields beyond address and password: shown when editing.
property <bool> 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).