Logo adjustments

This commit is contained in:
crschnick 2024-04-03 03:55:31 +00:00
parent ac36f7043a
commit 6f612b82f9
8 changed files with 9 additions and 13 deletions

View file

@ -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();

View file

@ -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")));
});
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

After

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 992 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

After

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 992 B

BIN
dist/logo/logo.ico vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB