mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
FlatSVGIcon: added missing javadoc and updated CHANGELOG.md
This commit is contained in:
@@ -18,6 +18,11 @@ FlatLaf Change Log
|
||||
compatibility with custom table header implementations. (issue #228)
|
||||
- IntelliJ Themes: Added "Material Theme UI Lite / GitHub Dark" theme.
|
||||
- JIDE Common Layer: Improved support for `JideTabbedPane`. (PR #306)
|
||||
- Extras: `FlatSVGIcon` improvements:
|
||||
- Each icon can now have its own color filter. (PR #303)
|
||||
- Use mapper function in color filter to dynamically map colors. (PR #303)
|
||||
- Color filter supports light and dark themes.
|
||||
- Getters for icon name, classloader, etc.
|
||||
|
||||
#### Fixed bugs
|
||||
|
||||
|
||||
@@ -479,6 +479,13 @@ public class FlatSVGIcon
|
||||
|
||||
private static Boolean darkLaf;
|
||||
|
||||
/**
|
||||
* Checks whether the current look and feel is dark.
|
||||
* <p>
|
||||
* Uses {@link FlatLaf#isLafDark()} and caches the result.
|
||||
*
|
||||
* @since 1.2
|
||||
*/
|
||||
public static boolean isDarkLaf() {
|
||||
if( darkLaf == null ) {
|
||||
lafChanged();
|
||||
|
||||
Reference in New Issue
Block a user