Tray icon: black for light mode, white for dark mode
Some checks failed
ci / build-test (push) Has been cancelled
ci / docker-build (push) Has been cancelled
Desktop App / Build Linux (amd64) (push) Has been cancelled
Desktop App / Attach to Release (push) Has been cancelled

This commit is contained in:
2026-07-14 08:52:24 +02:00
parent 6090ef71d4
commit c4ac0cb935
3 changed files with 5 additions and 1 deletions

BIN
cmd/desktop/icon-dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 333 B

View File

@@ -33,6 +33,9 @@ var assets embed.FS
//go:embed icon.png
var iconPNG []byte
//go:embed icon-dark.png
var iconDarkPNG []byte
const (
keyringService = "com.hubris.oikos-desktop"
keyringUser = "oikos"
@@ -696,7 +699,8 @@ func main() {
systemTray := app.SystemTray.New()
systemTray.SetTooltip("Oikos")
systemTray.SetTemplateIcon(iconPNG)
systemTray.SetIcon(iconPNG)
systemTray.SetDarkModeIcon(iconDarkPNG)
trayMenu := application.NewMenu()
trayMenu.Add("Open Oikos").OnClick(func(ctx *application.Context) {