look and feel identifier returned by FlatLaf.getID() now always starts with "FlatLaf"

This commit is contained in:
Karl Tauber
2019-11-24 14:08:38 +01:00
parent 3ffe8e225d
commit c722934510
2 changed files with 12 additions and 1 deletions

View File

@@ -71,9 +71,17 @@ public abstract class FlatLaf
}
}
/**
* Returns the look and feel identifier.
* <p>
* Syntax: "FlatLaf - ${theme-name}"
* <p>
* Use {@code UIManager.getLookAndFeel().getID().startsWith( "FlatLaf" )}
* to check whether the current look and feel is FlatLaf.
*/
@Override
public String getID() {
return getName();
return "FlatLaf - " + getName();
}
public abstract boolean isDark();