From 629ec29e33506a9bf96f552dcc2e6b6cd0560916 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 17 Sep 2026 11:44:09 +0200 Subject: 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. --- gui/internal/ui/settings.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gui/internal/ui/settings.go') 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 { -- cgit v1.3