diff --git a/source/net/filebot/Main.java b/source/net/filebot/Main.java index 4bc7be78..5b12712c 100644 --- a/source/net/filebot/Main.java +++ b/source/net/filebot/Main.java @@ -176,9 +176,9 @@ public class Main { } private static void startUserInterface(ArgumentBean args) { - // use native LaF an all platforms + // use native LaF an all platforms (use platform-independent laf for standalone jar deployment) try { - UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + UIManager.setLookAndFeel(isExecutableJar() ? "javax.swing.plaf.nimbus.NimbusLookAndFeel" : UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { debug.log(Level.SEVERE, e.getMessage(), e); } diff --git a/source/net/filebot/Settings.java b/source/net/filebot/Settings.java index a69b7427..3188b2b8 100644 --- a/source/net/filebot/Settings.java +++ b/source/net/filebot/Settings.java @@ -82,6 +82,10 @@ public final class Settings { return System.getProperty("application.deployment", "jar"); } + public static boolean isExecutableJar() { + return isApplicationDeployment("jar"); + } + public static boolean isAppStore() { return isApplicationDeployment("mas", "usc"); }