mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-29 09:07:27 -04:00
Add alternative icon for linux
This commit is contained in:
parent
8149611e0b
commit
8e05b4446c
2 changed files with 3 additions and 1 deletions
|
@ -42,6 +42,8 @@ public class SystemTray {
|
||||||
|
|
||||||
private static final String ICON_HI_RES = "/images/system_tray_icon@2x.png";
|
private static final String ICON_HI_RES = "/images/system_tray_icon@2x.png";
|
||||||
private static final String ICON_LO_RES = "/images/system_tray_icon.png";
|
private static final String ICON_LO_RES = "/images/system_tray_icon.png";
|
||||||
|
private static final String ICON_ALT = "/system_tray_icon_alt.png";
|
||||||
|
|
||||||
|
|
||||||
private static final String SHOW_WINDOW_LABEL = "Show exchange window";
|
private static final String SHOW_WINDOW_LABEL = "Show exchange window";
|
||||||
private static final String HIDE_WINDOW_LABEL = "Hide exchange window";
|
private static final String HIDE_WINDOW_LABEL = "Hide exchange window";
|
||||||
|
@ -81,7 +83,7 @@ public class SystemTray {
|
||||||
if (Utilities.isOSX())
|
if (Utilities.isOSX())
|
||||||
path = ImageUtil.isRetina() ? ICON_HI_RES : ICON_LO_RES;
|
path = ImageUtil.isRetina() ? ICON_HI_RES : ICON_LO_RES;
|
||||||
else
|
else
|
||||||
path = ICON_HI_RES;
|
path = ICON_ALT;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
BufferedImage trayIconImage = ImageIO.read(getClass().getResource(path));
|
BufferedImage trayIconImage = ImageIO.read(getClass().getResource(path));
|
||||||
|
|
BIN
src/main/resources/images/system_tray_icon_alt.png
Normal file
BIN
src/main/resources/images/system_tray_icon_alt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
Loading…
Add table
Add a link
Reference in a new issue