Karl Tauber
0cb50355b7
added hint to FlatLaf.registerCustomDefaultsSource() javadoc that the package must be opened in module-info.java (issue #325 )
2021-11-12 11:16:53 +01:00
Karl Tauber
ccdb981917
refactored private class UIDefaultsLoader.Cache to public class SoftCache and implement the Map interface
2021-11-12 10:12:34 +01:00
Karl Tauber
d3355eda65
Native window decorations: fixed layout loop (issue #420 )
2021-11-11 11:49:39 +01:00
Karl Tauber
fbf10e553d
Native window decorations: updated DLLs (issues #397 and #407 )
...
built by GitHub Actions:
https://github.com/JFormDesigner/FlatLaf/actions/runs/1440605430
2021-11-09 18:35:55 +01:00
Karl Tauber
fb37be5734
Native window decorations: show (system) tooltips for minimize/maximize/close buttons on Windows 10 and for minimize/close buttons on Windows 11 (issues #397 and #407 )
2021-11-09 18:21:17 +01:00
Karl Tauber
54e6cefa67
Native window decorations: show Windows 11 snap layouts menu when hovering the mouse over the maximize button (issues #397 and #407 )
2021-11-09 15:36:21 +01:00
Karl Tauber
33b25c1129
FileChooser: updated CHANGELOG.md for previous commit (issue #403 )
2021-11-06 00:34:06 +01:00
Karl Tauber
44d8545c09
FileChooser: workaround for crash on Windows with Java 17 32bit (issue #403 )
2021-11-06 00:03:17 +01:00
Karl Tauber
e49459fd8b
UIDefaultsLoader: do not add properties with empty values to UI defaults (value was an empty string)
2021-11-04 00:21:57 +01:00
Karl Tauber
c8ea61dc79
Merge PR #414 : CheckBox and RadioButton improvements
2021-11-04 00:08:07 +01:00
Karl Tauber
16a769ea61
Linux: fixed NPE when using java.awt.TrayIcon (issue #405 )
2021-11-03 23:37:37 +01:00
Karl Tauber
4dae082cd5
fixed unit tests, which fail now on GitHub Actions, but did work a few days ago...
2021-11-03 15:21:52 +01:00
Karl Tauber
57405b2f56
CheckBox and RadioButton: derive CheckBox.icon.disabledCheckmarkColor from CheckBox.icon.checkmarkColor in light themes (as in dark themes)
2021-11-03 14:29:56 +01:00
Karl Tauber
88576f68fd
CheckBox and RadioButton: added RadioButton.icon.style (similar to CheckBox.icon.style) to support different styles for checkbox and radiobutton
...
(e.g. Material design uses filled checkboxes, but outlined radiobuttons)
2021-11-03 11:27:18 +01:00
Karl Tauber
aa4e013097
CheckBox and RadioButton: made focused icon better recognizable in **FlatLaf Light** and **Dark** themes by painting a 1px focus border; **Darcula** and **IntelliJ** themes are not changed
2021-11-03 11:15:17 +01:00
Karl Tauber
d67cfc911b
CheckBox and RadioButton:
...
- added `CheckBox.icon.selectedBorderWidth`
- added `CheckBox.icon.disabledSelectedBorderWidth`
- added `CheckBox.icon.disabledSelectedBorderColor`
- added `CheckBox.icon.disabledSelectedBackground`
- changed `CheckBox.icon.focusWidth` from `int` `float`
2021-11-03 10:59:39 +01:00
Karl Tauber
00a3ad738f
CheckBox and RadioButton: made selected icon better recognizable in **FlatLaf Light** (use blue border), **Dark** and **Darcula** (use lighter border) themes; **IntelliJ** theme is not changed
2021-10-31 18:26:31 +01:00
Karl Tauber
1d39d34d7c
CheckBox and RadioButton:
...
- added `CheckBox.icon.hoverCheckmarkColor`
- added `CheckBox.icon.selectedHoverBorderColor`
- added `CheckBox.icon.pressedBorderColor`
- added `CheckBox.icon.selectedPressedBorderColor`
- added `CheckBox.icon.pressedCheckmarkColor`
- renamed `CheckBox.icon.selectedFocusedBorderColor` to `CheckBox.icon.focusedSelectedBorderColor`
- renamed `CheckBox.icon.selectedFocusedBackground` to `CheckBox.icon.focusedSelectedBackground`
- renamed `CheckBox.icon.selectedFocusedCheckmarkColor` to `CheckBox.icon.focusedCheckmarkColor`
- renamed `CheckBox.icon.selectedHoverBackground` to `CheckBox.icon.hoverSelectedBackground`
- renamed `CheckBox.icon.selectedPressedBackground` to `CheckBox.icon.pressedSelectedBackground`
- renamed `CheckBox.icon[filled].selectedFocusedBorderColor` to `CheckBox.icon[filled].focusedSelectedBorderColor`
- renamed `CheckBox.icon[filled].selectedFocusedBackground` to `CheckBox.icon[filled].focusedSelectedBackground`
- renamed `CheckBox.icon[filled].selectedFocusedCheckmarkColor` to `CheckBox.icon[filled].focusedCheckmarkColor`
- renamed `CheckBox.icon[filled].selectedHoverBackground` to `CheckBox.icon[filled].hoverSelectedBackground`
- renamed `CheckBox.icon[filled].selectedPressedBackground` to `CheckBox.icon[filled].pressedSelectedBackground`
(Note: this are incompatible changes!)
2021-10-31 17:39:48 +01:00
Karl Tauber
d48b98f582
ComboBox: fix NPE in CellPaddingBorder.install() (issue #408 )
2021-10-30 20:25:57 +02:00
Karl Tauber
9b839231f7
ToggleButton: use UI values from Button
2021-10-30 14:04:31 +02:00
Karl Tauber
dd80614465
ComboBox, Spinner, TextField and subclasses, CheckBox, RadioButton and Slider: support specifying width of borders
2021-10-30 14:02:49 +02:00
Karl Tauber
8c2be1b406
FlatButtonBorder: removed fields that override fields from FlatBorder
2021-10-29 14:09:58 +02:00
Karl Tauber
8152b7dad6
UIDefaultsLoader: further reduced need for value type prefixes in properties files and in CSS styles
2021-10-29 13:55:28 +02:00
Karl Tauber
fb4fe175d9
UIDefaultsLoader: reduced need for {float} in properties files and in CSS styles
2021-10-29 13:33:55 +02:00
Karl Tauber
ef25575f85
ignore internal UI keys in dumps and in UI defaults inspector
2021-10-28 20:47:47 +02:00
Karl Tauber
b77b338c7a
Styling: support using variables (defined in properties files) in CSS styles
2021-10-28 19:03:13 +02:00
Karl Tauber
8fa1eae352
TextComponents: triple-click-and-drag now extends selection by whole lines
...
triple-click-and-drag does not work in theme editor because drag is enabled, anyway a triple-click now selects the whole line before dragging starts
2021-10-22 13:14:01 +02:00
Karl Tauber
e13fb25f14
TextComponents: keep selection when switching theme
2021-10-21 22:57:28 +02:00
Karl Tauber
e36f942129
TextComponents: double-click-and-drag now extends selection by whole words
2021-10-21 13:24:07 +02:00
Karl Tauber
f8b9f4c1fa
Table: do not select text in cell editor when it gets focus (when JTable.surrendersFocusOnKeystroke is true) and TextComponent.selectAllOnFocusPolicy is once (the default) or always (issue #395 )
2021-10-16 23:32:08 +02:00
Karl Tauber
65a4f66d2c
Merge branch 'release-1.6.1' into main
...
# Conflicts:
# CHANGELOG.md
2021-10-14 22:50:44 +02:00
Karl Tauber
efcbc1fbdb
Native window decorations: catch UnsatisfiedLinkError when trying to load jawt.dll to avoid an application crash (Java 8 on Windows 10 only)
2021-10-14 18:59:26 +02:00
Karl Tauber
942e5b9cd1
IntelliJ Themes: do not ignore UI keys prefixed with [style] to allow using styles
2021-10-12 22:29:38 +02:00
Karl Tauber
51a90d32f8
support defining "defaultFont" in FlatLaf properties files (issue #384 )
2021-10-12 11:13:40 +02:00
Karl Tauber
ac46632e73
UIDefaultsLoader: do not detect string values that start and end with '"', but also contain ", as string (e.g. font value "Roboto Mono", "Ubuntu Mono")
2021-10-10 17:59:00 +02:00
Karl Tauber
1192bef1ae
Styling: use cache for parsed fonts, which is mostly used for fonts in CSS styles (e.g. font: bold +4) (issue 384)
2021-10-08 22:08:37 +02:00
Karl Tauber
b9ec382589
support defining fonts in FlatLaf properties files (issue #384 )
2021-10-08 20:23:54 +02:00
Karl Tauber
5ecf19ef4f
Styling: added styling properties that are likewise to client properties
...
(e.g. `buttonType: help` on `JButton` does the same as setting client property `JButton.buttonType` to `help`)
2021-10-07 14:22:47 +02:00
Karl Tauber
9636809b4d
CHANGELOG.md: added PR #388 (style classes)
2021-10-06 12:25:17 +02:00
Karl Tauber
ba1c1ed952
ToolBar: added arrowKeysOnlyNavigation to unit tests (issue #346 )
2021-10-06 00:04:49 +02:00
Karl Tauber
7452390614
ToolBar: support non-button components in arrow-keys-only navigation (issue #346 )
2021-10-05 23:11:53 +02:00
Karl Tauber
69042e42b7
ToolBar: support arrow-keys-only navigation within focusable buttons of toolbar:
...
- arrow keys move focus within toolbar (provided by `BasicToolBarUI`)
- tab-key moves focus out of toolbar
- if moving focus into the toolbar, focus recently focused toolbar button
(issue #346 )
2021-10-05 16:36:50 +02:00
Karl Tauber
1e93deab2a
ToolBar: fixed focus moving to next button when switching Laf and focusable buttons are enabled via CSS style focusableButtons: true
...
also avoid unnecessary invokation of `c.setFocusable()`
2021-10-05 15:34:23 +02:00
Karl Tauber
16ea809bb3
ToolBar: skip components with empty input map (e.g. JLabel) when using arrow keys to navigate in focusable buttons (related to issue #346 )
2021-10-05 12:15:51 +02:00
Karl Tauber
78aa4343b7
ColorFunctions: added lighten(), darken(), saturate(), desaturate() and spin()
2021-10-04 22:56:10 +02:00
Karl Tauber
6815109e15
ColorFunctions: moved methods applyFunctions() and clamp() down to nested classes
2021-10-04 22:41:32 +02:00
Karl Tauber
e34fbcec58
ToolBar: foolbars are no longer floatable by default
2021-10-04 15:31:55 +02:00
Karl Tauber
bb2a21270b
Theme Editor: added "Pick Color from Screen" action to "Edit" menu that allows picking a color from anywhere on screen and insert/change it at caret position
2021-10-04 12:44:03 +02:00
Karl Tauber
2e1ef647a9
Theming improvements:
...
- renamed `MenuItemCheckBox.icon.checkmarkColor` to `CheckBoxMenuItem.icon.checkmarkColor`
- renamed `MenuItemCheckBox.icon.disabledCheckmarkColor` to `CheckBoxMenuItem.icon.disabledCheckmarkColor`
(Note: this are incompatible changes!)
2021-10-03 23:28:53 +02:00
Karl Tauber
f0c314df80
Theming improvements:
...
- renamed `@disabledText` to `@disabledForeground`
- renamed `@textComponentBackground` to `@componentBackground`
- renamed `@textComponentMargin` to `@componentMargin`
- added `@disabledBackground`
(Note: this are incompatible changes!)
2021-10-03 23:15:51 +02:00