Browse Source

REPORT-113994 【NewUI】面板遗留问题解决

newui
Levy.Xie-解安森 5 months ago
parent
commit
7f507453cd
  1. 4
      designer-base/src/main/java/com/fine/theme/light/ui/laf/FineLaf.java
  2. 10
      designer-base/src/main/java/com/fine/theme/utils/FineUIUtils.java

4
designer-base/src/main/java/com/fine/theme/light/ui/laf/FineLaf.java

@ -43,8 +43,8 @@ public abstract class FineLaf extends FlatLaf {
*/ */
private static void resetWindowDecorations() { private static void resetWindowDecorations() {
if (SystemInfo.isWindows_10_orLater) { if (SystemInfo.isWindows_10_orLater) {
System.setProperty("flatlaf.useWindowDecorations", "true"); System.setProperty("flatlaf.useWindowDecorations", "false");
System.setProperty("flatlaf.menuBarEmbedded", "true"); System.setProperty("flatlaf.menuBarEmbedded", "false");
} }
} }
} }

10
designer-base/src/main/java/com/fine/theme/utils/FineUIUtils.java

@ -13,7 +13,15 @@ import javax.swing.JLabel;
import javax.swing.JLayer; import javax.swing.JLayer;
import javax.swing.ScrollPaneConstants; import javax.swing.ScrollPaneConstants;
import javax.swing.UIManager; import javax.swing.UIManager;
import java.awt.*; import java.awt.Color;
import java.awt.Component;
import java.awt.Composite;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Insets;
import java.awt.geom.Path2D; import java.awt.geom.Path2D;
import java.awt.geom.RoundRectangle2D; import java.awt.geom.RoundRectangle2D;
import java.lang.reflect.Field; import java.lang.reflect.Field;

Loading…
Cancel
Save