Browse Source

Ensure renamed themes are still found when creating synthesises LookAndFeelInfo.

pull/214/head
weisj 4 years ago
parent
commit
638ebfd85f
  1. 4
      core/src/main/java/com/github/weisj/darklaf/synthesised/ThemedDarklafInfo.java

4
core/src/main/java/com/github/weisj/darklaf/synthesised/ThemedDarklafInfo.java

@ -34,8 +34,8 @@ public class ThemedDarklafInfo extends UIManager.LookAndFeelInfo {
private final String className; private final String className;
public ThemedDarklafInfo(final Theme theme) { public ThemedDarklafInfo(final Theme theme) {
super(theme.getName(), ""); super(theme.getDisplayName(), "");
String themeName = theme.getClass().getSimpleName(); String themeName = theme.getThemeClass().getSimpleName();
String packageName = SynthesisedThemedLaf.class.getPackage().getName(); String packageName = SynthesisedThemedLaf.class.getPackage().getName();
className = packageName + "." + themeName + "DarklafLookAndFeel"; className = packageName + "." + themeName + "DarklafLookAndFeel";
} }

Loading…
Cancel
Save