Skip to content

Commit

Permalink
Enhance traybar icons (#857)
Browse files Browse the repository at this point in the history
* add new icons (with border and filled), remove macos for light theme

* remove dark mode detection (it was not working)

* remove build tag and use file suffix for conditional build

* Use `SetIconTemplate`, this allows theme switching on macos

* partially revert 0444f2a

Macos needs transparent icon to apply templating

* rework icons:

 macos icons have been re-exported (to the correct size/color/opacity)
 windows icons have been re-exported from the linux ones (with the border)

 added also two svg files that should allow working on the icon easier in the future
  • Loading branch information
umbynos authored Nov 20, 2023
1 parent 13515f7 commit e565300
Show file tree
Hide file tree
Showing 15 changed files with 151 additions and 58 deletions.
63 changes: 63 additions & 0 deletions icon/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions icon/icon_darwin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package icon

import _ "embed" // import embed to embed the icon

// GetIcon will return the icon
func GetIcon() []byte {
return data
}

// GetIconHiber will return the hibernated icon
func GetIconHiber() []byte {
return dataHibernate
}

// data represents the icon
//
//go:embed icon_mac.png
var data []byte

// dataHibernate represents the icon hibernated
//
//go:embed icon_mac_hiber.png
var dataHibernate []byte
Loading

0 comments on commit e565300

Please sign in to comment.