Browse Source

Changed how the LookAndFeel info is generated.

Added demo image.

Signed-off-by: weisj <weisj@arcor.de>
pull/27/head
weisj 5 years ago
parent
commit
fd7c655e5c
  1. BIN
      img/expand.gif
  2. 12
      src/main/java/com/github/weisj/darklaf/theme/Theme.java

BIN
img/expand.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

12
src/main/java/com/github/weisj/darklaf/theme/Theme.java

@ -44,7 +44,7 @@ import java.util.logging.Logger;
/**
* @author Jannis Weis
*/
public abstract class Theme extends UIManager.LookAndFeelInfo {
public abstract class Theme {
private static final Logger LOGGER = Logger.getLogger(Theme.class.getName());
private static final String[] UI_PROPERTIES = new String[]{
"borders", "button", "checkBox", "colorChooser", "comboBox", "fileChooser", "tristate",
@ -57,14 +57,8 @@ public abstract class Theme extends UIManager.LookAndFeelInfo {
"control", "dialog", "files", "indicator", "menu", "misc", "navigation", "window"
};
public Theme() {
super("overridden by getName()", DarkLaf.class.getCanonicalName());
}
@Override
public final String getClassName() {
return DarkLaf.class.getCanonicalName();
public UIManager.LookAndFeelInfo createLookAndFeelInfo() {
return new UIManager.LookAndFeelInfo(getName(), DarkLaf.class.getCanonicalName());
}
/**

Loading…
Cancel
Save