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
1 changed files with 5 additions and 0 deletions

View File

@ -403,6 +403,11 @@ public class Main {
System.setProperty("grape.root", ApplicationFolder.AppData.resolve("grape").getPath());
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
File userDefinedSystemProperties = ApplicationFolder.AppData.resolve("system.properties");
if (userDefinedSystemProperties.isFile()) {