Tray icon: black for light mode, white for dark mode
This commit is contained in:
BIN
cmd/desktop/icon-dark.png
Normal file
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 |
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user