v2.1.0
New in this release:
-
Add default text to
JTextComponent
using:comp.putClientProperty(DarkTextUI.KEY_DEFAULT_TEXT, "Your default text");
-
Added support for listening to theme changes through
LafManager#addThemeChangeListener
. -
Added convenience methods to update the ui of components outside a visible view hierarchy:
UIUpdater.registerComponent(comp); // To enable ui updates. UIUpdater.removeComponent(comp); // To disable ui updates. // Or manually through UIUpdater updater = new UIUpdater(comp); LafManager.addThemeChangeListener(updater);
-
Improved positioning of checkboxes/radiobuttons in table cells.
-
Add the clear button to text fields without it being a text field:
textField.putClientProperty(DarkTextFieldUI.KEY_SHOW_CLEAR, true);
This is automatically enambled if the
DarkTextFieldUI.KEY_VARIANT
is set toDarkTextFieldUI.VARIANT_SEARCH
and can me manually disabled after the property has been set.
Addressed issues:
- Checkbox for theme monitoring is not disabled if unsupported in theme settings panel. 54c7985
- Rounded selection is not painted on right side in textfield. 73bf8ec
- Text shifts if selected [Windows] 73bf8ec
- Text shifts if caret is at left most position. 73bf8ec
- Button content overlaps border. #148 c301049
- Titlebar buttons don't loose rollover effect. 3b4e17e
- NullPointerException when calculating baseline for JList #150. 21780d9
- Incorrect maximized size when restoring from minimized state #149 [Windows]. dd19ad4
- Popups have no shadows [Windows]. dd19ad4
- Calling
#darker
or#lighter
onColorUIResource
doesn't produce aUIResource
. 0f6835c - Calling
#dervie
on aFontUIResource
doesn't procude aUIResource
. d57bb2f - Disabled foreground color is not set for tabbed pane. cc32dda
- Checkbox/Radiobutton cell editors do not starting to edit the first time. 1f8cea2
Other changes:
- A lot of unused properties have been removed from the defaults. See https://weisj.github.io/darklaf-docs/