Skip to content

v2.6.0

Compare
Choose a tag to compare
@weisJ weisJ released this 27 May 12:11
· 575 commits to master since this release

Visual changes

  • Generate foreground colors for backgrounds which are derived from accent colors. a94087b de0e9a6
  • The slider variant of 'JToggleButton' will now show the state hints by default for all themes which
    declare Theme.highContrast as true. b152520
  • Windows now supports native selection colors by deriving them from the accent color. d398cb9
  • Changing the theme through the LafManager now supports a nice transition animation. This can be disabled using
    the darkalf.animatedLafChange system property. It's also disabled when disabling all animations through
    darklaf.animations. cd2e474
  • To ensure consistent colors when using custom renderers with JTree the color of the renderer is used for painting
    the row background. However, if selected the color specified in the current theme is used instead. 2a1983d
  • JSlider can now be aligned along the track as its baseline using the KEY_USE_TRACK_AS_BASELINE client-property. a8d9408

API Changes

  • PropertyLoader is now more robust and capable:
    • Other properties can now be referenced in compound statements (i.e. when defining insets).
    • Colors should now be declared using a # prefix to differentiate them from numbers. All uses of the old color
      declaration style will issue warnings.
    • Properties used in svg icons can now make use of literal expression '...', which aren't processed further.
      e.g. '%palette.teal' will be correctly resolved when patching the icons and not be overwritten by laf changes.
  • DarkSVGIcon is now capable if inferring its size based on its content allow. 2cf2cfa
    • This is done by passing a negative number to both the width and height of the icon.
    • By setting only one of width or height the other is calculated relatively to keep the original aspect ratio.
  • Only the Dialog font will now be replaced with the corresponding system font. d9b0de5
  • Added darklaf.macOsColorTitleBar system property to globally set whether colored title bars should be used on macOS.
  • LafManager#enableLogging is now deprecated due to it ignoring changes made to the log level. c757ee5
  • Added hyperlinkAccent property to themes. 8e7b573
  • Focus parents can now be specified solely by settings the focusParent client-property of the component. By default,
    it is assumed that the action upon focus change is repainting the component. 3ff5144
    7615b22

Other changes

  • Updated SVG-Salamander from 1.1.2.3 to version 1.1.2.4. a2456bf
  • SVG icons no longer create redundant copies when deriving with the same size. c050826
  • Added support for the swing-dsl library.
  • Started removal of jdk-internal-api usage. f60be2d a265ef9 75db998 1d7127a 88cbd8a 4b11cc8 e5a5bfd f8f12a0 23ea792 164a9f6 9ee79f4 db7d560
  • Improved error message if native library couldn't be loaded. 6abca5c
  • It's now easier to implement a custom UI for the ThemeSettings using the ThemeSettingsUI class. It provides the
    components used in the default implementation of ThemeSettingsPanel already setup using the appropriate gluing code. 36ecf9c

Addressed issues

  • ThemeSettings don't apply system colors. 6b43390 9e32dfc
  • Insets on JList aren't respected when painting empty rows. 1f9377a
  • Currently open settings dialog doesn't receive focus when requesting the dialog to be opened. 48aa90d
  • Border of JTextField doesn't update when changing the DarkTextUI.KEY_HAS_WARNING property. 59084d3
  • Line numbers in NumberedTextComponent aren't properly aligned. a52cb11 4e5e6de
  • The off-screen buffer of DarkSVGIcon isn't painted using proper antialiasing. #231 c2f9304
  • The off-screen buffer of DarkSVGIcon is created with the wrong size. #231 8fc941b
  • The shadow of balloon tooltips isn't properly aligned to the location of the pointer. 86d1c31
  • NPE while painting the cellhint popup. #232 fe4071d
  • The content of the cellhint popup reports an incorrect size resulting in an possibly unwanted popup. b077e3f
  • QuickColorChooser misses proper spacing between the check box and its label. 75dacb7
  • The text of JTextField shifts when navigating to either end of the content. 8b3c270
  • Navigating left/right in a JTree behaves differently than the default implementation. #228 6406f4a
  • NPE when rendering a null item in SimpleListCellRenderer. 3c9056f
  • NPE when trying to open the ThemeSettings dialog with no themes installed. 4ef86de
  • Insets of JTree are ignored while revealing expanded rows during navigation. 8c08640
  • JTree uses inconsistent meaning of focus during rendering. 8ad14cc