Skip to content

Commit

Permalink
fix: macos tray icon system theme
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Jul 17, 2024
1 parent 33aeea0 commit ba9222f
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/brave-carrots-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'renterd': patch
'walletd': patch
'hostd': patch
---

The tray icon now matches the system theme on MacOS. Closes https://github.com/SiaFoundation/desktop/issues/79
Binary file added hostd/assets/tray-Template.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 added hostd/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion hostd/main/tray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getAsset } from './asset'
import { daemonName } from './constants'

export function initTray() {
const iconName = system.isDarwin ? 'tray.png' : 'tray-win.png'
const iconName = system.isDarwin ? 'tray-Template.png' : 'tray-win.png'
const iconPath = getAsset(iconName)

state.tray = new Tray(iconPath)
Expand Down
Binary file added renterd/assets/tray-Template.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 added renterd/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion renterd/main/tray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getAsset } from './asset'
import { daemonName } from './constants'

export function initTray() {
const iconName = system.isDarwin ? 'tray.png' : 'tray-win.png'
const iconName = system.isDarwin ? 'tray-Template.png' : 'tray-win.png'
const iconPath = getAsset(iconName)

state.tray = new Tray(iconPath)
Expand Down
Binary file added walletd/assets/tray-Template.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 added walletd/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion walletd/main/tray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getAsset } from './asset'
import { daemonName } from './constants'

export function initTray() {
const iconName = system.isDarwin ? 'tray.png' : 'tray-win.png'
const iconName = system.isDarwin ? 'tray-Template.png' : 'tray-win.png'
const iconPath = getAsset(iconName)

state.tray = new Tray(iconPath)
Expand Down

0 comments on commit ba9222f

Please sign in to comment.