Logo adjustments
|
@ -22,9 +22,9 @@ public class AppTrayIcon {
|
||||||
|
|
||||||
var image =
|
var image =
|
||||||
switch (OsType.getLocal()) {
|
switch (OsType.getLocal()) {
|
||||||
case OsType.Windows windows -> "img/logo/logo_16x16.png";
|
case OsType.Windows windows -> "img/logo/full/logo_16x16.png";
|
||||||
case OsType.Linux linux -> "img/logo/logo_24x24.png";
|
case OsType.Linux linux -> "img/logo/full/logo_24x24.png";
|
||||||
case OsType.MacOs macOs -> "img/logo/logo_macos_tray_24x24.png";
|
case OsType.MacOs macOs -> "img/logo/padded/logo_24x24.png";
|
||||||
};
|
};
|
||||||
var url = AppResources.getResourceURL(AppResources.XPIPE_MODULE, image).orElseThrow();
|
var url = AppResources.getResourceURL(AppResources.XPIPE_MODULE, image).orElseThrow();
|
||||||
|
|
||||||
|
|
|
@ -53,16 +53,12 @@ public class AppWindowHelper {
|
||||||
// This allows for assigning logos even if AppImages has not been initialized yet
|
// This allows for assigning logos even if AppImages has not been initialized yet
|
||||||
var dir = OsType.getLocal() == OsType.MACOS ? "img/logo/padded" : "img/logo/full";
|
var dir = OsType.getLocal() == OsType.MACOS ? "img/logo/padded" : "img/logo/full";
|
||||||
AppResources.with(AppResources.XPIPE_MODULE, dir, path -> {
|
AppResources.with(AppResources.XPIPE_MODULE, dir, path -> {
|
||||||
for (String s : List.of(
|
var size = switch (OsType.getLocal()) {
|
||||||
"logo_16x16.png",
|
case OsType.Linux linux -> 128;
|
||||||
"logo_24x24.png",
|
case OsType.MacOs macOs -> 128;
|
||||||
"logo_32x32.png",
|
case OsType.Windows windows -> 32;
|
||||||
"logo_48x48.png",
|
};
|
||||||
"logo_64x64.png",
|
stage.getIcons().add(AppImages.loadImage(path.resolve("logo_" + size + "x" + size + ".png")));
|
||||||
"logo_128x128.png",
|
|
||||||
"logo_256x256.png")) {
|
|
||||||
stage.getIcons().add(AppImages.loadImage(path.resolve(s)));
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 647 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 992 B |
Before Width: | Height: | Size: 468 B |
BIN
dist/logo/ico/logo_16x16.png
vendored
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 647 B |
BIN
dist/logo/ico/logo_24x24.png
vendored
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 992 B |
BIN
dist/logo/logo.ico
vendored
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |