Update logo

This commit is contained in:
crschnick 2024-04-02 06:31:48 +00:00
parent 91e1a37cdb
commit 138dd5a56d
30 changed files with 6 additions and 7 deletions

View file

@ -51,12 +51,14 @@ public class AppWindowHelper {
stage.getIcons().clear();
// This allows for assigning logos even if AppImages has not been initialized yet
AppResources.with(AppResources.XPIPE_MODULE, "img/logo", path -> {
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)));

View file

@ -134,7 +134,7 @@ public abstract class OperationMode {
public static void postInit(String[] args) {
try {
// This will initialize the toolkit on macos and create the dock icon
// macOS it does not like applications that run fully in the background, so do it always
// macOS does not like applications that run fully in the background, so always do it
if (OsType.getLocal().equals(OsType.MACOS)) {
// URL open operations have to be handled in a special way on macOS!
Desktop.getDesktop().setOpenURIHandler(e -> {
@ -156,7 +156,7 @@ public abstract class OperationMode {
// This is necessary in case XPipe was started through a script as it will have no icon otherwise
if (AppProperties.get().isDeveloperMode() && AppLogs.get().isWriteToSysout()) {
try {
var iconUrl = Main.class.getResourceAsStream("resources/img/logo/logo_macos_128x128.png");
var iconUrl = Main.class.getResourceAsStream("resources/img/logo/padded/logo_128x128.png");
if (iconUrl != null) {
var awtIcon = ImageIO.read(iconUrl);
Taskbar.getTaskbar().setIconImage(awtIcon);

View file

@ -104,7 +104,7 @@ public class AboutCategory extends AppPrefsCategory {
AppI18n.get("xPipeClient"),
"Version " + AppProperties.get().getVersion() + " ("
+ AppProperties.get().getArch() + ")",
"logo/logo_48x48.png");
"logo.png");
})
.styleClass(Styles.TEXT_BOLD);

View file

@ -1,6 +1,5 @@
package io.xpipe.app.prefs;
import atlantafx.base.theme.Styles;
import io.xpipe.app.comp.base.TileButtonComp;
import io.xpipe.app.core.AppI18n;
import io.xpipe.app.fxcomps.SimpleComp;
@ -89,8 +88,6 @@ public class UpdateCheckComp extends SimpleComp {
refresh();
})
.styleClass(Styles.ACCENT)
.styleClass("button-comp")
.styleClass("update-button")
.grow(true, false)
.disable(PlatformThread.sync(

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 914 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 992 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 647 B

After

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 992 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
dist/logo/ico/logo_64x64.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
dist/logo/logo.ico vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 115 KiB

BIN
dist/logo/logo.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 11 KiB