diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-17 09:40:24 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-17 09:40:24 +0200 |
| commit | 0e067e693609589d46f5aa6e161b95cc905987cc (patch) | |
| tree | 913f5f0c63923863ab0cc90fd70568ed41a2c322 /gui/internal/ui/settings.go | |
| parent | 4d6386960c981678a8e8123a4db5463df7ee60bb (diff) | |
| download | krino-0e067e693609589d46f5aa6e161b95cc905987cc.tar.gz krino-0e067e693609589d46f5aa6e161b95cc905987cc.zip | |
gui: size and age columns, column toggles, readable colours, a laid-out explanation
Diffstat (limited to 'gui/internal/ui/settings.go')
| -rw-r--r-- | gui/internal/ui/settings.go | 16 |
1 files changed, 16 insertions, 0 deletions
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, |
