Karl Tauber
d6b9e2df62
RootPane: give the root pane useful background, foreground and font
...
(fixes wrong background in title bar and menu bar when switching from Nimbus to FlatLaf)
2021-11-15 16:58:44 +01:00
Karl Tauber
5c9b36556f
Window decorations: FlatMenuBarBorder: use same conditions for bottom separator painting as for menu bar background painting (fixes/improves previous commit)
2021-11-15 01:00:10 +01:00
Karl Tauber
80a8348a99
Window decorations:
...
- enabled `TitlePane.unifiedBackground` by default (because seems to be standard on Windows 11)
- no longer paint a bottom separator for the menu bar (if unified background is enabled)
2021-11-15 01:00:10 +01:00
Karl Tauber
005c9f471e
Window decorations:
...
- option to hide window icon (via client property or UI default)
- no longer show the Java "duke/cup" icon if no window icon image is set (issue #416 )
2021-11-15 01:00:10 +01:00
Karl Tauber
93b5f0081d
Window decorations: reduced number of FlatTitlePane.updateNativeTitleBarHeightAndHitTestSpots() invokations
2021-11-15 00:24:56 +01:00
Karl Tauber
ce049ea3ee
Window decorations: fixed exception in SwingUtilities.convertPoint() when doing new JDialog( (Window) null )
...
regression since commits 54e6cefa67 and
fb37be5734
2021-11-15 00:20:04 +01:00
Karl Tauber
fcc39b2db5
Merge branch 'release-1.6.3' into main
...
# Conflicts:
# CHANGELOG.md
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTreeUI.java
2021-11-14 23:23:29 +01:00
Karl Tauber
e44ff5b72a
Tree: Fixed editing cell issue with custom cell renderer and cell editor that use same component for rendering and editing ( fixes #385 )
...
(cherry picked from commit 161ee090a8 )
2021-11-14 22:34:28 +01:00
Karl Tauber
22cb1b50a6
ComboBox (not editable): fixed regression that may display text in non-editable combo boxes in bold (issue #423 )
...
fixes commits 02f3239669
and 0b6df8be1c
2021-11-14 22:11:19 +01:00
Karl Tauber
d59d38dc7c
added method FlatLaf.registerCustomDefaultsSource(URL packageUrl) for JPMS (issue #325 )
2021-11-12 17:00:26 +01:00
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
ab320684f5
Native window decorations: fixed layout loop (issue #420 )
...
(cherry picked from commit d3355eda65 )
2021-11-11 12:35:51 +01:00
Karl Tauber
a284b69a1e
FileChooser: workaround for crash on Windows with Java 17 32bit (issue #403 )
...
(cherry picked from commits 44d8545c09 and 33b25c1129 )
2021-11-11 12:35:16 +01:00
Karl Tauber
b590f41254
Linux: fixed NPE when using java.awt.TrayIcon (issue #405 )
...
(cherry picked from commit 16a769ea61 )
2021-11-11 12:31:14 +01:00
Karl Tauber
a97076ead5
ComboBox: fix NPE in CellPaddingBorder.install() (issue #408 )
...
(cherry picked from commit d48b98f582 )
2021-11-11 12:30:10 +01:00
Karl Tauber
0b6df8be1c
ComboBox (not editable): fixed background painted outside of border if round edges are enabled (similar to issue #382 ; regression since fixing #330 in FlatLaf 1.4)
...
(cherry picked from commit 02f3239669 )
2021-11-11 12:26:09 +01:00
Karl Tauber
150bab0b57
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 )
...
(cherry picked from commit f8b9f4c1fa )
2021-11-11 12:19:58 +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