Skip to content

Commit

Permalink
- make FlatLaf customizable
Browse files Browse the repository at this point in the history
- fixes #738
  • Loading branch information
derreisende77 committed Aug 18, 2024
1 parent 8691335 commit 920ca4f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# **14.2.0**
- **BUGFIX:** MV aktualisiert nun vor dem Download mittels `-dq` oder `--download-quit` Parameter die Filmliste.
- **BUGFIX:** FlatLaf Regression gelöst, die manchmal zu einer inkorrekten Darstellung der Oberfläche führte.
- **FEATURE(Linux/Windows):** Das Aussehen von FlatLaf kann in `.mediathek3/flatlaf` angepasst werden.

# **14.1.0**
- JDK 21 wird nun mitgeliefert. Behebt primär Darstellungsfehler von Java Apps unter Windows.
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/mediathek/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,14 @@ private static void configureDnsPreferenceMode(CommandLine.ParseResult parseResu
logger.trace("Setting DNS selector to mode: {}", Config.getDnsIpPreferenceMode().toString());
}

private static void registerFlatLafCustomization() {
if (!SystemUtils.IS_OS_MAC_OSX) {
var settings = StandardLocations.getSettingsDirectory().resolve("flatlaf");
logger.info("Registering {} as custom FlatLaf config folder", settings);
FlatLaf.registerCustomDefaultsSource(settings.toFile());
}
}

/**
* @param args the command line arguments
*/
Expand Down Expand Up @@ -417,6 +425,8 @@ public static void main(final String... args) {
}

setupDockIcon();

registerFlatLafCustomization();
setupFlatLaf();

if (SystemUtils.IS_OS_LINUX) {
Expand Down

0 comments on commit 920ca4f

Please sign in to comment.