Logo adjustments
|
@ -22,9 +22,9 @@ public class AppTrayIcon {
|
|||
|
||||
var image =
|
||||
switch (OsType.getLocal()) {
|
||||
case OsType.Windows windows -> "img/logo/logo_16x16.png";
|
||||
case OsType.Linux linux -> "img/logo/logo_24x24.png";
|
||||
case OsType.MacOs macOs -> "img/logo/logo_macos_tray_24x24.png";
|
||||
case OsType.Windows windows -> "img/logo/full/logo_16x16.png";
|
||||
case OsType.Linux linux -> "img/logo/full/logo_24x24.png";
|
||||
case OsType.MacOs macOs -> "img/logo/padded/logo_24x24.png";
|
||||
};
|
||||
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
|
||||
var dir = OsType.getLocal() == OsType.MACOS ? "img/logo/padded" : "img/logo/full";
|
||||
AppResources.with(AppResources.XPIPE_MODULE, dir, path -> {
|
||||
for (String s : List.of(
|
||||
"logo_16x16.png",
|
||||
"logo_24x24.png",
|
||||
"logo_32x32.png",
|
||||
"logo_48x48.png",
|
||||
"logo_64x64.png",
|
||||
"logo_128x128.png",
|
||||
"logo_256x256.png")) {
|
||||
stage.getIcons().add(AppImages.loadImage(path.resolve(s)));
|
||||
}
|
||||
var size = switch (OsType.getLocal()) {
|
||||
case OsType.Linux linux -> 128;
|
||||
case OsType.MacOs macOs -> 128;
|
||||
case OsType.Windows windows -> 32;
|
||||
};
|
||||
stage.getIcons().add(AppImages.loadImage(path.resolve("logo_" + size + "x" + size + ".png")));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
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 |