Skip to content

Commit

Permalink
Add cloud icon
Browse files Browse the repository at this point in the history
  • Loading branch information
pappz committed Oct 27, 2023
1 parent 94503fd commit 7987e92
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion client/ui/client_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ var iconUpdateICO []byte
//go:embed netbird-systemtray-update.png
var iconUpdatePNG []byte

//go:embed netbird-systemtray-update-cloud.ico

Check failure on line 97 in client/ui/client_ui.go

View workflow job for this annotation

GitHub Actions / test (sqlite)

pattern netbird-systemtray-update-cloud.ico: no matching files found

Check failure on line 97 in client/ui/client_ui.go

View workflow job for this annotation

GitHub Actions / test (amd64, sqlite)

pattern netbird-systemtray-update-cloud.ico: no matching files found

Check failure on line 97 in client/ui/client_ui.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

pattern netbird-systemtray-update-cloud.ico: no matching files found (typecheck)

Check failure on line 97 in client/ui/client_ui.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

pattern netbird-systemtray-update-cloud.ico: no matching files found (typecheck)

Check failure on line 97 in client/ui/client_ui.go

View workflow job for this annotation

GitHub Actions / test

pattern netbird-systemtray-update-cloud.ico: no matching files found

Check failure on line 97 in client/ui/client_ui.go

View workflow job for this annotation

GitHub Actions / lint (windows-latest)

pattern netbird-systemtray-update-cloud.ico: no matching files found (typecheck)
var iconUpdateCloudICO []byte

//go:embed netbird-systemtray-update-cloud.png
var iconUpdateCloudPNG []byte

type serviceClient struct {
ctx context.Context
addr string
Expand All @@ -102,6 +108,7 @@ type serviceClient struct {
icConnected []byte
icDisconnected []byte
icUpdate []byte
icUpdateCloud []byte

// systray menu items
mStatus *systray.MenuItem
Expand Down Expand Up @@ -155,10 +162,13 @@ func newServiceClient(addr string, a fyne.App, showSettings bool) *serviceClient
s.icConnected = iconConnectedICO
s.icDisconnected = iconDisconnectedICO
s.icUpdate = iconUpdateICO
s.icUpdateCloud = iconUpdateCloudICO

} else {
s.icConnected = iconConnectedPNG
s.icDisconnected = iconDisconnectedPNG
s.icUpdate = iconUpdatePNG
s.icUpdateCloud = iconUpdateCloudPNG
}

if showSettings {
Expand Down Expand Up @@ -590,7 +600,7 @@ func (s *serviceClient) onUpdateAvailable() {
defer s.updateIndicationLock.Unlock()

s.mUpdate.Show()
s.mAbout.SetIcon(s.icUpdate)
s.mAbout.SetIcon(s.icUpdateCloud)

s.isUpdateIconActive = true
systray.SetIcon(s.icUpdate)
Expand Down
Binary file modified client/ui/netbird-systemtray-connected.ico
Binary file not shown.
Binary file modified client/ui/netbird-systemtray-connected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/ui/netbird-systemtray-default.ico
Binary file not shown.
Binary file modified client/ui/netbird-systemtray-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/ui/netbird-systemtray-update.ico
Binary file not shown.
Binary file modified client/ui/netbird-systemtray-update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7987e92

Please sign in to comment.