Karl Tauber
19483b6464
Styling: fixed IllegalAccessException when using component specific style [style]Spinner = foreground: #f00 and spinner labels are painted (caused by private subclass of JLabel where getForeground() is overridden)
2021-11-05 17:02:08 +01:00
Karl Tauber
1f6a23f909
Styling: support defining component type specific styles, which are applied to all components of that type
...
(e.g. `[style]ScrollPane = focusedBorderColor: #f00`)
2021-11-05 15:27:31 +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
52f6e7fc32
Theme Editor: Switches" preview:
...
- zoom 2x, 3x and 4x icons via toolbar
- hide indeterminate state for checkboxes via toolbar
2021-11-04 00:17:24 +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
475781db91
Extras: FlatDesktop: fixed javadoc issues
2021-11-03 15:22:41 +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
5f6013edd4
Theme Editor: Switches" preview:
...
- show indeterminate state for checkboxes
- removed "text" from checkboxes and radio buttons
2021-10-31 11:17:37 +01:00
Karl Tauber
3e198ecd28
JIDE: RangeSlider: support specifying width of thumb borders (fixes compile error in commit dd806144)
2021-10-30 20:37:12 +02: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
5e03eb9b51
UIDefaultsDump: removed Java 8 patch version from dump file names
2021-10-28 21:01:16 +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
0e4fe4e9bb
Theme Editor: support platform and light/dark specific properties in preview
2021-10-26 18:46:08 +02:00
Karl Tauber
0156a9a9d5
Merge PR #401 : Text components: double/triple-click-and-drag selection improvements
2021-10-24 20:06:06 +02:00
Karl Tauber
3facbc0900
macOS: improved macOS support of Demo and Theme Editor:
...
- set application name that is used in screen menu bar
- enable dark window title bars if macOS is in dark mode
2021-10-24 17:05:50 +02:00
Karl Tauber
78cef1b3c7
Theme Editor:
...
- use class `FlatDesktop`
- hide "File > Exit" and "Help > About" on macOS
- enable macOS screen menu bar
2021-10-24 11:49:48 +02:00
Karl Tauber
d907c469ed
Theme Editor: renamed class FlatThemeEditor to FlatLafThemeEditor because this name is shown in macOS screen menu bar (and to be consistent with FlatLafDemo)
2021-10-24 11:43:28 +02:00
Karl Tauber
cc238d3e34
Extras: added class FlatDesktop for easy integration into macOS screen menu (About, Preferences and Quit) when using Java 8
...
Demo:
- use class `FlatDesktop`
- hide "File > Exit" and "Help > About" on macOS
2021-10-24 09:44:34 +02:00
Karl Tauber
0f9b38895e
FlatComponents2Test: allow enabling tree editing
2021-10-23 09:20:53 +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
a253b6c0cf
release 1.6.1
1.6.1
2021-10-14 22:35:33 +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
d10bcfc72f
Theme Editor: fixed StackOverflowError when adding "defaultFont" key to properties file
2021-10-12 23:50:45 +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