Karl Tauber
7f9cf6f45c
UIDefaultsLoader: added contrast() color function (inspired by Less CSS), which is useful to choose a foreground color that is readable, based on the luma (perceptual brightness) of a background color
2021-08-30 23:58:37 +02:00
Karl Tauber
9b465cb550
Accent color: added FlatLaf.setExtraDefaults() for easy setting accent color at runtime (issue #233 )
2021-08-30 23:06:06 +02:00
Karl Tauber
9144b7206e
Accent color:
...
- added @accentXYZ variables that define all blueish accent colors
- all blueish accent colors are calculated based on @accentColor
(issue #233 )
2021-08-30 23:06:06 +02:00
Karl Tauber
dd14843f2e
Accent color: reduced number of individual blueish accent colors with color functions (issue #233 )
2021-08-30 23:06:06 +02:00
Karl Tauber
cd20f4086b
Theme Editor: fixed preview of focused button in FlatDarkLaf (and probably other null value related issues)
2021-08-27 18:32:42 +02:00
Karl Tauber
97ca866ffa
OptionPane: fixed OptionPane.sameSizeButtons, which did not work as expected when setting to false
2021-08-23 16:53:23 +02:00
Karl Tauber
dab0ee3306
Theme Editor: added "live" preview
2021-08-21 18:09:59 +02:00
Karl Tauber
c6d1ed91a7
Menus: fixed missing modifiers flags in ActionEvent (issue #371 ; regression since FlatLaf 1.3)
2021-08-13 20:32:07 +02:00
Karl Tauber
a613a244f4
InternalFrame: double-click on icon in internal frame title bar now closes the internal frame (issue #374 )
2021-08-13 19:11:03 +02:00
Karl Tauber
268fe15004
Tree: improved support for JTree.getPathForLocation(int x, int y) in wide selection (issue #373 )
...
this is experimental and disabled by default; enable with:
`UIManager.put( "FlatLaf.experimental.tree.widePathForLocation", true );`
2021-08-13 00:19:34 +02:00
Karl Tauber
7bc9be686f
FlatLaf: use larger initial capacity for UI defaults table to avoid resizing hash table and to save some memory
2021-08-13 00:13:54 +02:00
Karl Tauber
0544a605c3
UIDefaultsLoader: added tint() and shade() color functions (inspired by Less CSS)
2021-08-05 23:37:42 +02:00
Karl Tauber
02b1ba2926
UIDefaultsLoader: added mix() color function (inspired by Less CSS)
2021-08-05 18:19:42 +02:00
Karl Tauber
7f7f9e3c7c
UIDefaultsLoader: added changeHue(), changeSaturation(), changeLightness() and changeAlpha() color functions (inspired by Sass CSS color.change() function)
2021-08-05 17:08:20 +02:00
Karl Tauber
f752db5892
FileChooser: fixed missing (localized) texts when FlatLaf is loaded in special classloader
...
(e.g. plugin system in Apache NetBeans)
https://issues.apache.org/jira/browse/NETBEANS-5865
2021-08-04 11:15:18 +02:00
Karl Tauber
bce58bc97b
SwingX: added search and clear icons to JXSearchField (issue #359 )
2021-08-03 17:52:49 +02:00
Karl Tauber
29064ec72f
Button and TextComponent: do not apply minimum width/height if margins are set (issue #364 )
2021-08-02 18:36:10 +02:00
Karl Tauber
953eee1dc8
TableHeader: made getRolloverColumn() public to allow usage in custom renderers (issue #336 )
2021-08-02 18:01:08 +02:00
Karl Tauber
75f76f4875
ComboBox and Spinner: limit arrow button width if component has large preferred height (issue #361 )
2021-08-02 15:27:25 +02:00
Karl Tauber
ecfbe68c33
Native window decorations: updated DLLs (issues #357 and #339 )
...
built by GitHub Actions:
https://github.com/JFormDesigner/FlatLaf/actions/runs/1085691279
2021-07-31 21:22:09 +02:00
Karl Tauber
4ab90065dc
Native window decorations: when resizing a window to the right or to the bottom, then first fill the new space with the window background color (instead of black) before the layout is updated (issue #339 )
2021-07-31 18:02:10 +02:00
Karl Tauber
60e5861de4
InternalFrame: limit internal frame bounds to parent bounds on resize; honor maximum size of internal frame (issue #362 )
2021-07-29 16:44:50 +02:00
Karl Tauber
ca7f5045ae
Popup: fixed incorrectly placed drop shadow for medium-weight popups in maximized windows (issue #358 )
2021-07-29 15:39:16 +02:00
Karl Tauber
37dab9fb22
TabbedPane: fixed rendering of tab separators in scroll layout if scaled on HiDPI screens
2021-07-12 11:48:34 +02:00
Karl Tauber
fb44c8fbe4
TextField: fixed location of placeholder text if paddings are used (e.g. in ComboBox) (for commit a9dcf09d13)
2021-07-10 21:05:26 +02:00
Karl Tauber
8b585deb78
ToolBar: support focusable buttons in toolbar (issue #346 )
...
fixed focusable state when switching to/from other Laf
2021-07-10 13:32:30 +02:00
Karl Tauber
548d651d29
PasswordField: move the lower bar of the caps lock icon up a half pixel
2021-07-10 11:03:13 +02:00
Karl Tauber
0b342acec9
PasswordField: paint caps lock icon on left side in right-to-left component orientation
2021-07-09 15:14:29 +02:00
Karl Tauber
cc6d3c1b1a
PasswordField: Caps lock icon no longer painted over long text (issue #172 )
2021-07-09 15:03:16 +02:00
Karl Tauber
1de81d0af5
ComboBox: fixed StackOverflowError when using single renderer instance in multiple comboboxes (regression since commit 4507ce359d)
2021-07-09 11:39:35 +02:00
Karl Tauber
ff9ef21f67
OptionPane: align wrapped lines to the right if component orientation is right-to-left (issue #350 )
2021-07-08 17:53:44 +02:00
Karl Tauber
266a546478
Window decorations: window title bar width is no longer considered when calculating preferred/minimum width of window (issue #351 )
2021-07-08 16:54:34 +02:00
Karl Tauber
87407ca832
Table and PopupFactory: use StackWalker in Java 9+ for better performance (issue #334 )
2021-07-08 14:02:50 +02:00
Karl Tauber
abbe6d6c1f
ToolBar: paint focus indicator for focused button in toolbar (issue #346 )
2021-07-07 18:17:45 +02:00
Karl Tauber
a28f701e6f
OptionPane: do not make child components, which are derived from JPanel, non-opaque (issue #349 )
2021-07-07 10:57:54 +02:00
Karl Tauber
4cdc995a7f
ComboBox: simplified code in configureEditor()
2021-07-05 23:14:05 +02:00
Karl Tauber
c708205593
TestFlatComponentSizes: shortened combobox text because unit tests on GitHub Actions use font size 15
2021-07-05 20:06:07 +02:00
Karl Tauber
a22c6c8013
ComboBox (not editable):
...
- increased size of internal renderer pane to the component border so that it can paint within the whole component
- increase combo box size if a custom renderer uses a border with insets that are larger than the default combo box padding (`2,6,2,6`)
2021-07-05 18:41:17 +02:00
Karl Tauber
b576f473e5
fixed component heights at 1.25x, 1.75x and 2.25x scaling factors (Java 8 only) so that Button, ComboBox, Spinner and TextField components (including subclasses) have same heights
2021-07-05 15:15:37 +02:00
Karl Tauber
0b127caa83
ComboBox: fixed minimum width if focusWidth > 0 (to be equal with button minimum width)
...
added some unit tests to compare component sizes
2021-07-05 11:07:32 +02:00
Karl Tauber
4507ce359d
ComboBox: reworked uninstall of CellPaddingBorder, which is temporary used for cell renderers, to make it easier to understand and reliable
...
(tested using FlatCustomBordersTest, FlatNetBeansTest, etc)
2021-07-03 10:43:55 +02:00
Karl Tauber
3e14f28dc2
ComboBox (editable) and Spinner: increased size of internal text field to the component border so that it behaves like plain text field (issue #330 )
2021-07-02 18:43:37 +02:00
Karl Tauber
a9dcf09d13
TextField: support adding extra padding
...
(for #172 , #173 and #330 )
2021-07-02 15:38:45 +02:00
Karl Tauber
c8998c2bcf
PasswordField: UI delegate FlatPasswordFieldUI now extends FlatTextFieldUI (instead of BasicPasswordFieldUI) to avoid duplicate code and for easier extensibility (e.g. for #173 and #341 )
2021-07-02 14:03:54 +02:00
Karl Tauber
731c8962c9
added missing since 1.3
2021-07-02 10:21:55 +02:00
Karl Tauber
4f9b819f48
Spinner: reduced gap between up and down arrows, which was increased by previous commit (issue #329 )
2021-06-30 18:57:54 +02:00
Karl Tauber
5318d5fa8e
ScrollBar: fixed left/top arrow icon location (if visible) (issue #329 )
...
(tested using FlatPaintingTest)
2021-06-30 18:47:16 +02:00
Karl Tauber
98b156bdde
TextComponents: use focusedBackground also if not editable (but enabled)
...
(PR #338 )
2021-06-30 00:01:33 +02:00
Karl Tauber
39d2941099
removed duplicate ;
2021-06-25 10:48:00 +02:00
Karl Tauber
2a732306a1
ComboBox: renamed UI key ComboBox.popupFocusedBackground to ComboBox.popupBackground
2021-06-22 08:59:11 +02:00