mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
look and feel identifier returned by FlatLaf.getID() now always starts with "FlatLaf"
This commit is contained in:
@@ -5,6 +5,9 @@ FlatLaf Change Log
|
|||||||
|
|
||||||
- Support using IntelliJ platform themes (.theme.json files).
|
- Support using IntelliJ platform themes (.theme.json files).
|
||||||
- Support `JFileChooser`. (issue #5)
|
- 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 selection background of checkbox in table cell.
|
||||||
- Fixed jittery submenu rendering on Mac. (issue #10)
|
- Fixed jittery submenu rendering on Mac. (issue #10)
|
||||||
- JIDE Common Layer: Fixed `JidePopup` border.
|
- JIDE Common Layer: Fixed `JidePopup` border.
|
||||||
|
|||||||
@@ -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
|
@Override
|
||||||
public String getID() {
|
public String getID() {
|
||||||
return getName();
|
return "FlatLaf - " + getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract boolean isDark();
|
public abstract boolean isDark();
|
||||||
|
|||||||
Reference in New Issue
Block a user