mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 22:47:13 -06:00
look and feel identifier returned by FlatLaf.getID() now always starts with "FlatLaf"
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user