Skip to content

Commit

Permalink
Merge pull request #1 from kolide/color_icons_macos
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ Barrett authored Feb 9, 2023
2 parents 4a244db + a4102a9 commit 4a3a5d7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"fyne.io/systray"
"fyne.io/systray/example/icon"
"github.com/kolide/systray"
"github.com/kolide/systray/example/icon"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module fyne.io/systray
module github.com/kolide/systray

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion systray_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
// .ico/.jpg/.png for other platforms.
func SetTemplateIcon(templateIconBytes []byte, regularIconBytes []byte) {
cstr := (*C.char)(unsafe.Pointer(&templateIconBytes[0]))
C.setIcon(cstr, (C.int)(len(templateIconBytes)), true)
C.setIcon(cstr, (C.int)(len(templateIconBytes)), false) // Explicitly NOT setting template bool, so we get colorized icons
}

// SetIcon sets the icon of a menu item. Only works on macOS and Windows.
Expand Down
2 changes: 1 addition & 1 deletion systray_menu_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/godbus/dbus/v5"
"github.com/godbus/dbus/v5/prop"

"fyne.io/systray/internal/generated/menu"
"github.com/kolide/systray/internal/generated/menu"
)

// SetIcon sets the icon of a menu item.
Expand Down
4 changes: 2 additions & 2 deletions systray_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"github.com/godbus/dbus/v5/introspect"
"github.com/godbus/dbus/v5/prop"

"fyne.io/systray/internal/generated/menu"
"fyne.io/systray/internal/generated/notifier"
"github.com/kolide/systray/internal/generated/menu"
"github.com/kolide/systray/internal/generated/notifier"
)

const (
Expand Down

0 comments on commit 4a3a5d7

Please sign in to comment.