diff --git a/src/main/java/com/sparrowwallet/sparrow/control/TrayManager.java b/src/main/java/com/sparrowwallet/sparrow/control/TrayManager.java index ed1118ec..2e51d2fa 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/TrayManager.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/TrayManager.java @@ -31,9 +31,16 @@ public class TrayManager { try { List imgList = new ArrayList<>(); - imgList.add(ImageIO.read(getClass().getResource("/image/sparrow-white-small.png"))); - imgList.add(ImageIO.read(getClass().getResource("/image/sparrow-white-small@2x.png"))); - imgList.add(ImageIO.read(getClass().getResource("/image/sparrow-white-small@3x.png"))); + if(org.controlsfx.tools.Platform.getCurrent() == org.controlsfx.tools.Platform.WINDOWS) { + imgList.add(ImageIO.read(getClass().getResource("/image/sparrow-black-small.png"))); + imgList.add(ImageIO.read(getClass().getResource("/image/sparrow-black-small@2x.png"))); + imgList.add(ImageIO.read(getClass().getResource("/image/sparrow-black-small@3x.png"))); + } else { + imgList.add(ImageIO.read(getClass().getResource("/image/sparrow-white-small.png"))); + imgList.add(ImageIO.read(getClass().getResource("/image/sparrow-white-small@2x.png"))); + imgList.add(ImageIO.read(getClass().getResource("/image/sparrow-white-small@3x.png"))); + } + BaseMultiResolutionImage mrImage = new BaseMultiResolutionImage(imgList.toArray(new Image[0])); this.trayIcon = new TrayIcon(mrImage, "Sparrow", popupMenu); diff --git a/src/main/resources/image/sparrow-black-small.png b/src/main/resources/image/sparrow-black-small.png new file mode 100644 index 00000000..69e9e2d9 Binary files /dev/null and b/src/main/resources/image/sparrow-black-small.png differ diff --git a/src/main/resources/image/sparrow-black-small@2x.png b/src/main/resources/image/sparrow-black-small@2x.png new file mode 100644 index 00000000..8b5b7f1e Binary files /dev/null and b/src/main/resources/image/sparrow-black-small@2x.png differ diff --git a/src/main/resources/image/sparrow-black-small@3x.png b/src/main/resources/image/sparrow-black-small@3x.png new file mode 100644 index 00000000..bf0306d9 Binary files /dev/null and b/src/main/resources/image/sparrow-black-small@3x.png differ