Skip to content

v2.1.0

Compare
Choose a tag to compare
@weisJ weisJ released this 30 Apr 16:47
· 1325 commits to master since this release

New in this release:

  • Add default text to JTextComponent using:

    comp.putClientProperty(DarkTextUI.KEY_DEFAULT_TEXT, "Your default text");

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

    clear_text

    This is automatically enambled if the DarkTextFieldUI.KEY_VARIANT is set to DarkTextFieldUI.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 on ColorUIResource doesn't produce a UIResource. 0f6835c
  • Calling #dervie on a FontUIResource doesn't procude a UIResource. 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: