1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-22 07:48:52 -05:00

Enable dark mode by default if dark mode is set system-wide

This commit is contained in:
Reinhard Pointner 2019-05-08 10:32:53 +07:00
parent d3ae74e864
commit 93a41a41f1

View File

@ -403,6 +403,11 @@ public class Main {
System.setProperty("grape.root", ApplicationFolder.AppData.resolve("grape").getPath()); System.setProperty("grape.root", ApplicationFolder.AppData.resolve("grape").getPath());
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog"); System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");
// enable dark mode by default if dark mode is set system-wide
if (Boolean.parseBoolean(System.getProperty("DarkMode"))) {
System.setProperty("net.filebot.theme", "Darcula");
}
// set additional user-defined default system properties // set additional user-defined default system properties
File userDefinedSystemProperties = ApplicationFolder.AppData.resolve("system.properties"); File userDefinedSystemProperties = ApplicationFolder.AppData.resolve("system.properties");
if (userDefinedSystemProperties.isFile()) { if (userDefinedSystemProperties.isFile()) {