aboutsummaryrefslogtreecommitdiff
path: root/gui/internal/ui/settings.go
diff options
context:
space:
mode:
Diffstat (limited to 'gui/internal/ui/settings.go')
-rw-r--r--gui/internal/ui/settings.go16
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,