feat: icon
This commit is contained in:
1 parent
110339ea41
commit
2e19c22d0d
1 file changed
+7
@@ -15,6 +15,12 @@ import (
|
|||||||
//go:embed all:frontend/dist
|
//go:embed all:frontend/dist
|
||||||
var assets embed.FS
|
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() {
|
func main() {
|
||||||
// The UI is in English: make GTK's own strings (file chooser buttons and
|
// The UI is in English: make GTK's own strings (file chooser buttons and
|
||||||
// places) match it instead of following the system language.
|
// places) match it instead of following the system language.
|
||||||
@@ -46,6 +52,7 @@ func main() {
|
|||||||
Bind: []interface{}{app},
|
Bind: []interface{}{app},
|
||||||
Linux: &linux.Options{
|
Linux: &linux.Options{
|
||||||
ProgramName: "plotzilla",
|
ProgramName: "plotzilla",
|
||||||
|
Icon: icon,
|
||||||
WindowIsTranslucent: true,
|
WindowIsTranslucent: true,
|
||||||
WebviewGpuPolicy: linux.WebviewGpuPolicyOnDemand,
|
WebviewGpuPolicy: linux.WebviewGpuPolicyOnDemand,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user