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

@@ -5,6 +5,9 @@ FlatLaf Change Log
- Support using IntelliJ platform themes (.theme.json files).
- Support `JFileChooser`. (issue #5)
- Look and feel identifier returned by `FlatLaf.getID()` now always starts with
"FlatLaf". Use `UIManager.getLookAndFeel().getID().startsWith( "FlatLaf" )` to
check whether the current look and feel is FlatLaf.
- Fixed selection background of checkbox in table cell.
- Fixed jittery submenu rendering on Mac. (issue #10)
- JIDE Common Layer: Fixed `JidePopup` border.

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();