From 8cb406dea149f78649c1e6e2054639dfc5664ac0 Mon Sep 17 00:00:00 2001 From: Kharec Date: Tue, 29 Sep 2026 14:16:04 +0200 Subject: [PATCH] feat: icon --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index 15c7fd4..5b10d0e 100644 --- a/main.go +++ b/main.go @@ -15,6 +15,12 @@ import ( //go:embed all:frontend/dist var assets embed.FS +// icon is the window icon on X11; Wayland compositors take it from the +// installed .desktop file instead (desktop/plotzilla.desktop). +// +//go:embed desktop/plotzilla.png +var icon []byte + func main() { // The UI is in English: make GTK's own strings (file chooser buttons and // places) match it instead of following the system language. @@ -46,6 +52,7 @@ func main() { Bind: []interface{}{app}, Linux: &linux.Options{ ProgramName: "plotzilla", + Icon: icon, WindowIsTranslucent: true, WebviewGpuPolicy: linux.WebviewGpuPolicyOnDemand, },