FlatSVGIcon: added missing javadoc and updated CHANGELOG.md

This commit is contained in:
Karl Tauber
2021-04-18 17:43:12 +02:00
parent 00dc7004f5
commit 6eb15ab437
2 changed files with 12 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ FlatLaf Change Log
compatibility with custom table header implementations. (issue #228) compatibility with custom table header implementations. (issue #228)
- IntelliJ Themes: Added "Material Theme UI Lite / GitHub Dark" theme. - IntelliJ Themes: Added "Material Theme UI Lite / GitHub Dark" theme.
- JIDE Common Layer: Improved support for `JideTabbedPane`. (PR #306) - 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 #### Fixed bugs

View File

@@ -479,6 +479,13 @@ public class FlatSVGIcon
private static Boolean darkLaf; 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() { public static boolean isDarkLaf() {
if( darkLaf == null ) { if( darkLaf == null ) {
lafChanged(); lafChanged();