Remove fxtrayicon dep

This commit is contained in:
crschnick 2023-10-21 21:10:33 +00:00
parent 72f91f39d0
commit 45e501f4fd
3 changed files with 3 additions and 5 deletions

View file

@ -36,7 +36,6 @@ dependencies {
compileOnly 'org.junit.jupiter:junit-jupiter-api:5.9.3'
compileOnly 'org.junit.jupiter:junit-jupiter-params:5.9.3'
implementation 'com.dustinredmond.fxtrayicon:FXTrayIcon:4.0.1'
implementation 'net.java.dev.jna:jna-jpms:5.13.0'
implementation 'net.java.dev.jna:jna-platform-jpms:5.13.0'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "2.15.2"
@ -104,7 +103,6 @@ project.ext {
"--add-opens", "java.base/java.lang.reflect=com.jfoenix",
"--add-opens", "java.base/java.lang.reflect=com.jfoenix",
"--add-opens", "java.base/java.lang=io.xpipe.core",
"--add-opens", "com.dustinredmond.fxtrayicon/com.dustinredmond.fxtrayicon=io.xpipe.app",
"--add-opens", "java.desktop/java.awt=io.xpipe.app",
"--add-opens", "net.synedra.validatorfx/net.synedra.validatorfx=io.xpipe.app",
"--add-opens", 'com.dlsc.preferencesfx/com.dlsc.preferencesfx.view=io.xpipe.app',

View file

@ -1,15 +1,16 @@
package io.xpipe.app.core.mode;
import com.dustinredmond.fxtrayicon.FXTrayIcon;
import io.xpipe.app.core.AppTray;
import io.xpipe.app.fxcomps.util.PlatformThread;
import io.xpipe.app.issue.*;
import java.awt.*;
public class TrayMode extends PlatformMode {
@Override
public boolean isSupported() {
return super.isSupported() && FXTrayIcon.isSupported();
return super.isSupported() && Desktop.isDesktopSupported() && SystemTray.isSupported();
}
@Override

View file

@ -57,7 +57,6 @@ open module io.xpipe.app {
requires org.fxmisc.wellbehavedfx;
requires org.kordamp.ikonli.feather;
requires org.reactfx;
requires com.dustinredmond.fxtrayicon;
requires io.xpipe.modulefs;
requires io.xpipe.core;
requires static lombok;