Skip to content

Commit e565300

Browse files
authored
Enhance traybar icons (#857)
* 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
1 parent 13515f7 commit e565300

15 files changed

+151
-58
lines changed

icon/icon.svg

+63
Loading

icon/icon_darwin.go

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package icon
2+
3+
import _ "embed" // import embed to embed the icon
4+
5+
// GetIcon will return the icon
6+
func GetIcon() []byte {
7+
return data
8+
}
9+
10+
// GetIconHiber will return the hibernated icon
11+
func GetIconHiber() []byte {
12+
return dataHibernate
13+
}
14+
15+
// data represents the icon
16+
//
17+
//go:embed icon_mac.png
18+
var data []byte
19+
20+
// dataHibernate represents the icon hibernated
21+
//
22+
//go:embed icon_mac_hiber.png
23+
var dataHibernate []byte

0 commit comments

Comments
 (0)