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

+4
View File
@@ -6,3 +6,7 @@ work in progress. Early stage (Phase 1: core library and CLI). See `docs/` for d
## License ## License
MIT, see `LICENSE`. MIT, see `LICENSE`.
The desktop app (`grove-gui`) is built with [Slint](https://slint.dev), used under the
Slint Royalty-free Desktop, Mobile, and Web Applications License 2.0. As that licence requires,
the app shows the `AboutSlint` attribution on its About screen (sidebar, "About").
+1
View File
@@ -1331,6 +1331,7 @@ fn run() -> Result<()> {
slint::set_xdg_app_id("grove").ok(); slint::set_xdg_app_id("grove").ok();
let ui = MainWindow::new().context("create window")?; let ui = MainWindow::new().context("create window")?;
ui.set_version(env!("CARGO_PKG_VERSION").into());
let ctx = Ctx { let ctx = Ctx {
core: core.clone(), core: core.clone(),
weak: ui.as_weak(), 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 { export struct Wt {
branch: string, branch: string,
@@ -183,6 +183,7 @@ export component MainWindow inherits Window {
in property <string> pill-text: "Connecting…"; in property <string> pill-text: "Connecting…";
in property <string> pill-key: "muted"; in property <string> pill-key: "muted";
in property <string> machine; in property <string> machine;
in property <string> version;
in property <int> repo-count; in property <int> repo-count;
in property <int> wt-count; in property <int> wt-count;
in property <int> attention-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 { } Rectangle { }
Muted { 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 ---------- // ---------- settings ----------
if root.view == "settings" && root.has-config && !root.onboarding-active: VerticalLayout { if root.view == "settings" && root.has-config && !root.onboarding-active: VerticalLayout {
spacing: 12px; spacing: 12px;
+4 -2
View File
@@ -60,8 +60,10 @@ X11 loaded at runtime) and the software renderer.
## Dependencies ## Dependencies
- `slint` / `slint-build` 1.18.1 (`std`, `backend-winit`, `renderer-software`, `compat-1-2`; no Qt, - `slint` / `slint-build` 1.18.1 (`std`, `backend-winit`, `renderer-software`, `compat-1-2`; no Qt,
no femtovg, no system-tray feature). Style `fluent` (pure Slint). Slint is licensed GPL-3.0 or its no femtovg, no system-tray feature). Style `fluent` (pure Slint). Slint is used under its
royalty-free license (attribution required) or a commercial one; pick one before distributing. Royalty-free Desktop, Mobile, and Web Applications License 2.0, so Grove stays MIT. Its attribution
requirement is met by the `AboutSlint` widget on the About view (reachable from the sidebar); keep
that view if the UI is reorganised.
- `ksni` 0.3.7 (`async-io` + `blocking`, no tokio). - `ksni` 0.3.7 (`async-io` + `blocking`, no tokio).
## Memory (release build, KDE Plasma 6 / Wayland, `ps -o rss`) ## Memory (release build, KDE Plasma 6 / Wayland, `ps -o rss`)