Skip to content

Commit

Permalink
fix: laf order
Browse files Browse the repository at this point in the history
  • Loading branch information
litwak913 committed Nov 10, 2024
1 parent c61b78a commit 4e452a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/cn/harryh/arkpets/tray/HostTray.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public class HostTray {
SwingUtilities.invokeLater(() -> {
try {
String laf = UIManager.getSystemLookAndFeelClassName();
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
if (laf.contains("WindowsLookAndFeel")) {
UIManager.put("MenuItem.margin",new Insets(2,-15,2,2));
UIManager.put("Menu.margin",new Insets(2,-15,2,2));
}
UIManager.setLookAndFeel(laf);
} catch (Exception ignored) {}
});
Const.FontsConfig.loadFontsToSwing();
Expand Down
2 changes: 1 addition & 1 deletion core/src/cn/harryh/arkpets/tray/MemberTray.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public abstract class MemberTray {
SwingUtilities.invokeLater(() -> {
try {
String laf = UIManager.getSystemLookAndFeelClassName();
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
if (laf.contains("WindowsLookAndFeel")) {
UIManager.put("MenuItem.margin",new Insets(2,-15,2,2));
UIManager.put("Menu.margin",new Insets(2,-15,2,2));
}
UIManager.setLookAndFeel(laf);
} catch (Exception ignored) {}
});
Const.FontsConfig.loadFontsToSwing();
Expand Down

0 comments on commit 4e452a1

Please sign in to comment.