Tray improvements

This commit is contained in:
crschnick
2023-08-09 06:22:12 +00:00
parent 22dc0b2579
commit a67ee784b3
2 changed files with 7 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ public class AppTray {
@SneakyThrows
private AppTray() {
var url = AppResources.getResourceURL(AppResources.XPIPE_MODULE, "img/logo/logo_48x48.png").orElseThrow();
var url = AppResources.getResourceURL(AppResources.XPIPE_MODULE, "img/logo/logo_128x128.png").orElseThrow();
var builder = new FXTrayIcon.Builder(App.getApp().getStage(), url)
.menuItem(AppI18n.get("open"), e -> {
@@ -78,6 +78,7 @@ public class AppTray {
});
});
// Ugly fix to show a transparent background on Linux
if (OsType.getLocal().equals(OsType.LINUX)) {
SwingUtilities.invokeLater(() -> {
try {