From 0e067e693609589d46f5aa6e161b95cc905987cc Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 17 Sep 2026 09:40:24 +0200 Subject: gui: size and age columns, column toggles, readable colours, a laid-out explanation --- gui/internal/ui/settings.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gui/internal/ui/settings.go') diff --git a/gui/internal/ui/settings.go b/gui/internal/ui/settings.go index 10f4bab..d1b5752 100644 --- a/gui/internal/ui/settings.go +++ b/gui/internal/ui/settings.go @@ -96,7 +96,20 @@ func (w *Window) showSettings() { previewHeight := gtk.NewSpinButtonWithRange(80, 2000, 20) previewHeight.SetValue(float64(prefs.PreviewHeight)) previewHeight.SetTooltipText("how tall the preview under an explanation is, in pixels; dragging the divider above it does the same") + showSize := gtk.NewCheckButtonWithLabel("size") + showSize.SetActive(prefs.ShowSize) + showAge := gtk.NewCheckButtonWithLabel("age") + showAge.SetActive(prefs.ShowAge) + showRule := gtk.NewCheckButtonWithLabel("rule") + showRule.SetActive(prefs.ShowRule) + columns := gtk.NewBox(gtk.OrientationHorizontal, 12) + columns.Append(showSize) + columns.Append(showAge) + columns.Append(showRule) + columns.SetTooltipText("which of the optional columns the plan shows; file, action and where it would go are always there") + box.Append(field("layout", layout)) + box.Append(field("columns", columns)) box.Append(field("preview height", previewHeight)) box.Append(field("after a scan", selectAll)) box.Append(colours) @@ -108,6 +121,9 @@ func (w *Window) showSettings() { which = model.LayoutStacked } p := model.Prefs{ + ShowSize: showSize.Active(), + ShowAge: showAge.Active(), + ShowRule: showRule.Active(), Colours: colours.Active(), Preview: preview.Active(), SelectAll: selectAll.Selected() == 0, -- cgit v1.3