mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
tray changes for windows
This commit is contained in:
parent
8fc971c07c
commit
4a7b0b20ad
4 changed files with 10 additions and 3 deletions
|
@ -31,9 +31,16 @@ public class TrayManager {
|
|||
|
||||
try {
|
||||
List<Image> 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);
|
||||
|
|
BIN
src/main/resources/image/sparrow-black-small.png
Normal file
BIN
src/main/resources/image/sparrow-black-small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 550 B |
BIN
src/main/resources/image/sparrow-black-small@2x.png
Normal file
BIN
src/main/resources/image/sparrow-black-small@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 975 B |
BIN
src/main/resources/image/sparrow-black-small@3x.png
Normal file
BIN
src/main/resources/image/sparrow-black-small@3x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Loading…
Reference in a new issue