From 4744ffac60b9bde27616f34a934f9404bc314efc Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 17 Sep 2026 00:32:04 +0200 Subject: gui: a rendered PDF page per file, and Settings in the top right --- gui/internal/ui/window.go | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'gui/internal/ui/window.go') diff --git a/gui/internal/ui/window.go b/gui/internal/ui/window.go index 9727846..819591c 100644 --- a/gui/internal/ui/window.go +++ b/gui/internal/ui/window.go @@ -58,6 +58,19 @@ func NewWindow(app *gtk.Application, e *engine.Engine) *Window { } }) + // Settings sits at the end of the tab strip - the window's top right - + // with a gear beside the word (his request, 2026-09-17). + settings := gtk.NewButton() + settingsBox := gtk.NewBox(gtk.OrientationHorizontal, 6) + settingsBox.Append(gtk.NewImageFromIconName("emblem-system-symbolic")) + settingsBox.Append(gtk.NewLabel("Settings")) + settings.SetChild(settingsBox) + settings.SetHasFrame(false) + settings.SetTooltipText("krino's defaults, and how this window behaves") + settings.SetMarginEnd(6) + settings.ConnectClicked(func() { w.showSettings() }) + notebook.SetActionWidget(settings, gtk.PackEnd) + w.status = gtk.NewLabel("") w.status.SetXAlign(0) w.status.SetMarginStart(8) @@ -65,13 +78,9 @@ func NewWindow(app *gtk.Application, e *engine.Engine) *Window { w.status.SetMarginTop(4) w.status.SetMarginBottom(4) - settings := gtk.NewButtonWithLabel("Settings") - settings.SetHasFrame(false) - settings.ConnectClicked(func() { w.showSettings() }) statusRow := gtk.NewBox(gtk.OrientationHorizontal, 6) w.status.SetHExpand(true) statusRow.Append(w.status) - statusRow.Append(settings) box := gtk.NewBox(gtk.OrientationVertical, 0) notebook.SetVExpand(true) -- cgit v1.3