Notices for the bundled font, icons and emoji

cargo-about only sees crates, so the Inter font (OFL-1.1), the Lucide
icons (ISC, with the MIT notice of the icons from Feather) and the
Twemoji graphics (CC-BY 4.0) come from about-assets.md, which
scripts/notices.sh appends to its output; --check compares the whole
file as before. The About page credits them above the notices.

Also from the screenshots: a disabled primary button keeps its label
readable, badges size to their text, buttons and fields keep their
height in rows, the chat header shows the channel name without "#",
and the toast sits above the composer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-28 02:35:53 +00:00
1 parent c854053090
commit ffd4c338d1
13 files changed
+356 -26

No files matched your search

+1
View File
@@ -125,6 +125,7 @@ impl App {
.iter()
.map(|t| ChatTab {
title: t.title.clone().into(),
name: t.title.trim_start_matches(['#', '@']).into(),
kind: match t.target {
ChatTarget::Server => 0,
ChatTarget::Channel(_) => 1,
+2 -1
View File
@@ -334,6 +334,7 @@ fn demo_ui(app: &mut App) {
};
app.add_message(id, message);
}
app.set_status("Connected to Nightfall Guild (TeamSpeak 6 6.0.0-beta13.1)");
// No toast over the screenshots.
app.set_status("");
app.refresh_all();
}
+1 -1
View File
@@ -152,7 +152,7 @@ export component MainWindow inherits Window {
toast := Toast {
x: (parent.width - self.width) / 2;
y: Nav.narrow ? 68px : Theme.topbar-height + 8px;
y: parent.height - self.height - (Nav.narrow ? 140px : 96px);
text: Bridge.status-text;
}
+3
View File
@@ -61,7 +61,10 @@ export struct MemberItem {
}
export struct ChatTab {
// "#Lobby", "@alice", "Server"
title: string,
// The name alone ("Lobby").
name: string,
// 0 = server chat, 1 = channel chat, 2 = private chat
kind: int,
id: int,
+3 -3
View File
@@ -47,8 +47,8 @@ export component Button inherits Rectangle {
: kind == ButtonKind.danger ? (active ? Theme.danger : touch.has-hover ? Theme.danger-soft.brighter(0.3) : Theme.danger-soft)
: kind == ButtonKind.ghost ? (active ? Theme.surface-4 : touch.has-hover ? Theme.surface-3 : transparent)
: (active ? Theme.surface-4 : touch.has-hover ? Theme.surface-3 : Theme.surface-2);
property <color> ink: !enabled ? Theme.text-disabled
: kind == ButtonKind.primary ? Theme.on-accent
property <color> ink: kind == ButtonKind.primary ? Theme.on-accent
: !enabled ? Theme.text-disabled
: kind == ButtonKind.danger ? (active ? Theme.on-accent : Theme.danger)
: checked ? Theme.accent-text : Theme.text;
@@ -61,7 +61,7 @@ export component Button inherits Rectangle {
background: fill;
border-width: kind == ButtonKind.secondary || kind == ButtonKind.danger || checked ? 1px : 0px;
border-color: checked ? Theme.accent : kind == ButtonKind.danger ? Theme.danger.transparentize(55%) : Theme.border-strong;
opacity: enabled ? 1.0 : 0.6;
opacity: enabled ? 1.0 : 0.5;
animate background { duration: Theme.fast; }
accessible-role: AccessibleRole.button;
@@ -176,14 +176,6 @@ export component Modal inherits Rectangle {
accessible-label: root.title;
// Clicks inside the card do not dismiss it.
TouchArea { }
// A faint accent line along the top edge.
Rectangle {
y: 0;
x: Theme.radius-xl;
width: parent.width - 2 * Theme.radius-xl;
height: 1px;
background: @linear-gradient(90deg, transparent 0%, Theme.accent 50%, transparent 100%);
}
VerticalLayout {
padding: Theme.space-6;
spacing: Theme.space-5;
@@ -9,6 +9,7 @@ export component SegmentedTabs inherits Rectangle {
callback selected(int);
min-height: Theme.control-height;
max-height: Theme.control-height;
horizontal-stretch: 1;
vertical-stretch: 0;
border-radius: Theme.radius-md;
+4 -2
View File
@@ -125,11 +125,13 @@ export component ChatView inherits VerticalLayout {
// Hide the header (mobile shows its own).
in property <bool> header: true;
property <string> tab-title: Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length ? Bridge.tabs[Bridge.current-tab].title : "";
property <string> tab-name: Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length ? Bridge.tabs[Bridge.current-tab].name : "";
property <int> tab-kind: Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length ? Bridge.tabs[Bridge.current-tab].kind : 0;
property <string> tab-topic: Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length ? Bridge.tabs[Bridge.current-tab].topic : "";
if root.header: PageHeader {
icon: Icons.hash;
title: root.tab-title;
icon: root.tab-kind == 1 ? Icons.hash : root.tab-kind == 2 ? Icons.at-sign : Icons.message-square;
title: root.tab-name;
description: root.tab-topic != "" ? root.tab-topic : Bridge.server-title;
if Bridge.presence-source != "": Chip {
text: Bridge.presence-source;
+1 -1
View File
@@ -450,7 +450,7 @@ export component Credits inherits VerticalLayout {
wrap: word-wrap;
}
Text {
text: "Lucide icons — Copyright (c) Lucide Icons and Contributors, ISC License.";
text: "Lucide icons — Copyright (c) Lucide Icons and Contributors, ISC License; icons from Feather Copyright (c) 2013-present Cole Bemis, MIT License.";
color: Theme.text-secondary;
font-size: Theme.font-sm;
wrap: word-wrap;
+14 -9
View File
@@ -138,15 +138,20 @@ export component HomePage inherits Rectangle {
background: @linear-gradient(115deg, #0e1d5c 0%, #1c1470 45%, #3a1f86 75%, #0b2a6b 100%);
border-width: 1px;
border-color: Theme.border-strong;
// A moon.
Rectangle {
x: parent.width - 260px;
y: 24px;
width: 150px;
height: 150px;
border-radius: 75px;
background: @radial-gradient(circle, #9fb6ff 0%, #5a6fd6 55%, #2a2f86 100%);
opacity: 0.55;
// A moon: soft rings (the software renderer clips no
// gradients to circles).
for ring[i] in [
{ size: 190px, color: #7f95ff14 },
{ size: 160px, color: #8fa4ff26 },
{ size: 132px, color: #a9b9ff5a },
{ size: 118px, color: #c4d0ffa0 },
]: Rectangle {
x: parent.width - 180px - ring.size / 2;
y: 100px - ring.size / 2;
width: ring.size;
height: ring.size;
border-radius: ring.size / 2;
background: ring.color;
}
for star[i] in [
{ x: 0.55, y: 0.18 }, { x: 0.62, y: 0.52 }, { x: 0.71, y: 0.1 }, { x: 0.9, y: 0.3 },