FIX: Fix appicon resolution

This commit is contained in:
2025-10-07 11:12:53 +07:00
parent 100c93e8da
commit d5710c9102
50 changed files with 14728 additions and 1606 deletions

16
main.go
View File

@@ -98,6 +98,22 @@ func main() {
DevToolsEnabled: true,
})
iconBytes, _ := tools.ReadFile("assets/appicon.png")
systemTray := app.SystemTray.New()
systemTray.SetIcon(iconBytes)
systemTray.SetTooltip("Firefly Launcher")
// Attach the window to the system tray
menu := application.NewMenu()
menu.Add("Open").OnClick(func(ctx *application.Context) {
// Handle click
})
menu.Add("Quit").OnClick(func(ctx *application.Context) {
app.Quit()
})
systemTray.SetMenu(menu)
err = app.Run()
if err != nil {
log.Fatal(err)