feat(gui): About view with Slint attribution

Adds an About view (sidebar) showing the Grove version, its MIT licence
and the AboutSlint widget, which satisfies the attribution clause of the
Slint Royalty-free Desktop, Mobile, and Web Applications License 2.0.
Documents the licence choice in README and docs/phase7.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-11-16 19:41:56 +01:00
1 parent 37cd4e9931
commit 7f337d5261
4 files changed
+56 -3

No files matched your search

+1
View File
@@ -1331,6 +1331,7 @@ fn run() -> Result<()> {
slint::set_xdg_app_id("grove").ok();
let ui = MainWindow::new().context("create window")?;
ui.set_version(env!("CARGO_PKG_VERSION").into());
let ctx = Ctx {
core: core.clone(),
weak: ui.as_weak(),
+47 -1
View File
@@ -1,4 +1,4 @@
import { Button, CheckBox, ComboBox, LineEdit, Palette, ScrollView } from "std-widgets.slint";
import { AboutSlint, Button, CheckBox, ComboBox, LineEdit, Palette, ScrollView } from "std-widgets.slint";
export struct Wt {
branch: string,
@@ -183,6 +183,7 @@ export component MainWindow inherits Window {
in property <string> pill-text: "Connecting…";
in property <string> pill-key: "muted";
in property <string> machine;
in property <string> version;
in property <int> repo-count;
in property <int> wt-count;
in property <int> attention-count;
@@ -304,6 +305,14 @@ export component MainWindow inherits Window {
}
}
NavItem {
text: "About";
active: root.view == "about";
clicked => {
root.go("about");
}
}
Rectangle { }
Muted {
@@ -908,6 +917,43 @@ export component MainWindow inherits Window {
}
}
// ---------- about ----------
// Showing AboutSlint here is the attribution required by the Slint
// Royalty-free licence (see README, "Licence").
if root.view == "about": VerticalLayout {
spacing: 12px;
alignment: start;
H1 {
title: "About Grove";
sub: "Keeps your git repositories in sync across machines, including work in progress.";
}
Card {
Text {
text: "Grove " + root.version;
font-size: 16px;
font-weight: 700;
}
Muted {
text: "Grove is released under the MIT licence.";
wrap: word-wrap;
}
Muted {
text: "Its user interface is built with Slint, used under the Slint Royalty-free Desktop, Mobile, and Web Applications License 2.0.";
wrap: word-wrap;
}
}
HorizontalLayout {
alignment: start;
AboutSlint {
max-width: 420px;
}
}
}
// ---------- settings ----------
if root.view == "settings" && root.has-config && !root.onboarding-active: VerticalLayout {
spacing: 12px;