aboutsummaryrefslogtreecommitdiff
path: root/gui/internal/ui/settings.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-17 11:44:09 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-17 11:44:09 +0200
commit629ec29e33506a9bf96f552dcc2e6b6cd0560916 (patch)
tree5d7ff9fd4b938764a4f9a98cc09b03b5fb2fdc6c /gui/internal/ui/settings.go
parent0e56395aaa46359974a5eb21acaab32b2ea02a0f (diff)
downloadkrino-629ec29e33506a9bf96f552dcc2e6b6cd0560916.tar.gz
krino-629ec29e33506a9bf96f552dcc2e6b6cd0560916.zip
gui: the toolbar in the order things happen, and an About block
The Plan bar now reads left to right as the work does: which directory, how it should be listed, what of it, where it is on disk - then Scan, and only then what to do with what came back. Scan carries the theme's accent, being the button that starts everything. Settings ends with About: the program and the version it was built as, what it is in a sentence, the licence, and who to write to. The text is model.About so it is tested; ui.Version is stamped by main. leak-check knows krino's own contact address, so the address check stays useful without a per-clone setting.
Diffstat (limited to 'gui/internal/ui/settings.go')
-rw-r--r--gui/internal/ui/settings.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/gui/internal/ui/settings.go b/gui/internal/ui/settings.go
index e15f60d..73c4072 100644
--- a/gui/internal/ui/settings.go
+++ b/gui/internal/ui/settings.go
@@ -124,6 +124,19 @@ func (w *Window) showSettings() {
box.Append(colours)
box.Append(preview)
+ box.Append(heading("About"))
+ for i, line := range model.About(Version) {
+ l := gtk.NewLabel(line)
+ l.SetXAlign(0)
+ l.SetWrap(true)
+ // Selectable so the address can be copied out of the window.
+ l.SetSelectable(true)
+ if i > 0 {
+ l.AddCSSClass("dim-label")
+ }
+ box.Append(l)
+ }
+
apply := func() {
which := model.LayoutSide
if layout.Selected() == 1 {