diff --git a/pom.xml b/pom.xml
index dac8cf9..9d41d4e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.luoboduner.moo.info
MooInfo
- 1.1.0
+ 1.1.1
jar
MooInfo
@@ -26,11 +26,11 @@
3.12.0
31.0.1-jre
4.9.3
- 2.0-rc1
- 2.0-rc1
+ 2.0
+ 2.0
5.7.16
1.2.78
- 5.8.6
+ 6.0.0
1.5.3
diff --git a/src/main/java/com/luoboduner/moo/info/App.java b/src/main/java/com/luoboduner/moo/info/App.java
index 4c3c66e..a0ad380 100644
--- a/src/main/java/com/luoboduner/moo/info/App.java
+++ b/src/main/java/com/luoboduner/moo/info/App.java
@@ -9,6 +9,7 @@
import com.luoboduner.moo.info.ui.form.MainWindow;
import com.luoboduner.moo.info.ui.frame.MainFrame;
import com.luoboduner.moo.info.util.ConfigUtil;
+import com.luoboduner.moo.info.util.UIUtil;
import com.luoboduner.moo.info.util.UpgradeUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.exception.ExceptionUtils;
@@ -39,7 +40,9 @@ public static void main(String[] args) {
System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("apple.awt.application.name", "MooInfo");
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "MooInfo");
- System.setProperty("apple.awt.application.appearance", "system");
+ if (UIUtil.isDarkLaf()) {
+ System.setProperty("apple.awt.application.appearance", "system");
+ }
FlatDesktop.setAboutHandler(() -> {
try {
@@ -90,7 +93,6 @@ public static void main(String[] args) {
MainWindow.getInstance().init();
Init.initAllTab();
Init.initOthers();
- mainFrame.addListeners();
mainFrame.remove(loadingPanel);
}
}
diff --git a/src/main/java/com/luoboduner/moo/info/ui/Init.java b/src/main/java/com/luoboduner/moo/info/ui/Init.java
index c235683..cca00fa 100644
--- a/src/main/java/com/luoboduner/moo/info/ui/Init.java
+++ b/src/main/java/com/luoboduner/moo/info/ui/Init.java
@@ -5,6 +5,7 @@
import cn.hutool.log.LogFactory;
import com.formdev.flatlaf.FlatLightLaf;
import com.formdev.flatlaf.IntelliJTheme;
+import com.formdev.flatlaf.extras.FlatSVGIcon;
import com.luoboduner.moo.info.App;
import com.luoboduner.moo.info.ui.component.TopMenuBar;
import com.luoboduner.moo.info.ui.form.*;
@@ -190,6 +191,12 @@ If you have following code in your app, you can remove it (no longer necessary):
}
UIManager.setLookAndFeel("com.formdev.flatlaf.FlatDarculaLaf");
}
+ if (UIUtil.isDarkLaf()) {
+// FlatSVGIcon.ColorFilter.getInstance().setMapper(color -> color.brighter().brighter());
+ } else {
+ FlatSVGIcon.ColorFilter.getInstance().setMapper(color -> color.darker().darker());
+ }
+// SwingUtilities.windowForComponent(App.mainFrame).repaint();
} catch (Exception e) {
logger.error(e);
}
diff --git a/src/main/java/com/luoboduner/moo/info/ui/UiConsts.java b/src/main/java/com/luoboduner/moo/info/ui/UiConsts.java
index 30d6b95..88f2268 100644
--- a/src/main/java/com/luoboduner/moo/info/ui/UiConsts.java
+++ b/src/main/java/com/luoboduner/moo/info/ui/UiConsts.java
@@ -11,7 +11,7 @@
public class UiConsts {
public static final String APP_NAME = "MooInfo";
- public static final String APP_VERSION = "1.1.0";
+ public static final String APP_VERSION = "1.1.1";
public static final int TABLE_ROW_HEIGHT = 36;
diff --git a/src/main/java/com/luoboduner/moo/info/ui/dialog/AboutDialog.form b/src/main/java/com/luoboduner/moo/info/ui/dialog/AboutDialog.form
index a042495..7c3e5bb 100644
--- a/src/main/java/com/luoboduner/moo/info/ui/dialog/AboutDialog.form
+++ b/src/main/java/com/luoboduner/moo/info/ui/dialog/AboutDialog.form
@@ -1,7 +1,7 @@