diff options
author | Manuel Bentele | 2021-08-09 09:34:12 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-08-09 09:34:12 +0200 |
commit | c512e4e733f76e3c9e8098671e6418f610fb9baa (patch) | |
tree | 11db65a4777a73228cc4f023fee71a9cc3ca6e99 | |
parent | [client] Escape '=' in HTML translation text to fix URL null pointer (diff) | |
download | tutor-module-c512e4e733f76e3c9e8098671e6418f610fb9baa.tar.gz tutor-module-c512e4e733f76e3c9e8098671e6418f610fb9baa.tar.xz tutor-module-c512e4e733f76e3c9e8098671e6418f610fb9baa.zip |
[client] Add optional FlatLaf Light and Dark look and feel
-rwxr-xr-x | dozentenmodul/pom.xml | 6 | ||||
-rwxr-xr-x | dozentenmodul/src/main/java/org/openslx/dozmod/App.java | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/dozentenmodul/pom.xml b/dozentenmodul/pom.xml index d19d2995..45b6384e 100755 --- a/dozentenmodul/pom.xml +++ b/dozentenmodul/pom.xml @@ -187,6 +187,12 @@ <version>2.3</version> <scope>compile</scope> </dependency> + <dependency> + <groupId>com.formdev</groupId> + <artifactId>flatlaf</artifactId> + <version>1.5</version> + <scope>compile</scope> + </dependency> </dependencies> </project> diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java index fb1f4c86..50c2add1 100755 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java @@ -41,6 +41,9 @@ import org.openslx.thrifthelper.ThriftManager; import org.openslx.util.AppUtil; import org.openslx.util.Util; +import com.formdev.flatlaf.FlatDarkLaf; +import com.formdev.flatlaf.FlatLightLaf; + public class App { // Logger @@ -180,6 +183,10 @@ public class App { } } + // Install FlatLaf look and feel + FlatLightLaf.installLafInfo(); + FlatDarkLaf.installLafInfo(); + // Setup swing style System.setProperty("awt.useSystemAAFontSettings", "on"); System.setProperty("swing.aatext", "true"); |