Karl Tauber
36c405c708
fixed NPE in FlatUIUtils.isCellEditor() (issue #601 )
2022-10-17 18:09:12 +02:00
Karl Tauber
bc7c68ebe4
MenuBar: fixed NPE in FlatMenuItemRenderer.getTopLevelFont() if menu item does not have a parent (issue #600 ; regression since implementing #589 in FlatLaf 2.5; commit f6c5db07f2)
2022-10-17 17:08:12 +02:00
Karl Tauber
6c502ad4c5
2.6-SNAPSHOT
2022-10-17 16:31:54 +02:00
Karl Tauber
100aa0b621
Native libraries: load jawt.dll also on Windows when running in Java 9 and later (to be on the safe side)
2022-10-06 10:58:32 +02:00
Karl Tauber
8e42b19934
Native libraries: support loading via System.loadLibrary()
...
(for pre-extracted native libs in NetBeans)
2022-10-06 10:49:55 +02:00
Karl Tauber
1a456d5d68
ScaledImageIcon: do not throw exceptions if image has invalid size (e.g. not found); instead paint a red rectangle (similar to FlatSVGIcon)
2022-10-01 20:12:32 +02:00
Karl Tauber
e83c26a76a
- ScrollBar: show "pressed" feedback on track/thumb only for left mouse button; if absolute positioning is enabled (the default), then also for middle mouse button
...
- Arrow buttons in ComboBox, Spinner, ScrollBar and TabbedPane: show "pressed" feedback only for left mouse button
2022-09-30 19:55:42 +02:00
Karl Tauber
6e7c2a616b
updated CHANGELOG.md for PR #595 and added tab context menu test
2022-09-30 15:33:37 +02:00
Karl Tauber
0699454df8
Merge PR #595 : Switch and close tabs on left mouse click only
2022-09-30 15:10:45 +02:00
Karl Tauber
92c110548a
ComboBox and Spinner: no longer use preferred height for arrow button width, because preferred height may be zero, which would hide arrow button (see https://github.com/scijava/scijava-ui-swing/issues/77#issuecomment-1261452712 )
...
- arrow button width depends on combobox/spinner height
- default/max button width is height of a raw combobox/spinner (without insets)
- min button width is 3/4 of default button width
2022-09-30 12:30:46 +02:00
Karl Tauber
ca88023560
GitHub Actions: build using Java 19 (use toolchain because Gradle 7.5.1 does not support running on Java 19)
2022-09-28 19:15:59 +02:00
Karl Tauber
12fc2299ec
update to Gradle 7.5.1
...
./gradlew wrapper --gradle-version=7.5.1
2022-09-28 15:44:16 +02:00
Karl Tauber
2089c77b84
updated sigtest for FlatLaf 2.5
...
(generated in clean workspace with gradle task `sigtestGenerate`)
2022-09-27 16:50:34 +02:00
Karl Tauber
4f5a3e8d8b
release 2.5
2.5
2022-09-27 16:11:48 +02:00
ShadelessFox
95522846ac
Switch and close tabs on left mouse click only
2022-09-25 21:52:44 +03:00
Karl Tauber
614ac956de
updated sigtest to 1.7
2022-09-23 12:31:42 +02:00
Karl Tauber
c228362c01
Window decorations: added UI value TitlePane.font to customize window title font (issue #589 )
2022-09-23 11:57:38 +02:00
Karl Tauber
f6c5db07f2
MenuBar: top level menus now use MenuBar.font instead of Menu.font (issue #589 )
2022-09-23 00:31:14 +02:00
Karl Tauber
78e7839213
Window decorations: added option to show window icon only in frames, but not in dialogs (issue #589 )
2022-09-23 00:13:01 +02:00
Karl Tauber
86a4f306c6
Styling: added convenience methods to invoke StyleableUI interface methods
...
~~~java
JButton button = new JButton();
int arc = FlatLaf.getStyleableValue( button, "arc" );
Color borderColor = FlatLaf.getStyleableValue( button, "borderColor" );
~~~
2022-09-14 10:51:11 +02:00
Karl Tauber
0e523f1193
SwingX: fixed missing highlighting of "today" in JXMonthView and JXDatePicker
2022-09-12 13:29:53 +02:00
Karl Tauber
9041a16b22
IntelliJ Themes: updated themes to newest versions (used IJThemesUpdater)
2022-09-11 18:03:11 +02:00
Karl Tauber
596ff3382d
PasswordField: reveal button is now hidden (and turned off) if password field is disabled (issue #501 )
2022-09-11 17:05:48 +02:00
Karl Tauber
cbd80252ed
Testing: introduced client property to exclude components in FlatTestFrame.updateComponentsRecur()
2022-09-11 14:17:55 +02:00
Karl Tauber
bcd7a7e3dd
FlatClientProperties: fixed typo in javadoc
2022-09-11 13:59:54 +02:00
Karl Tauber
9c98f1a553
fixed compiler warnings
2022-09-11 12:40:27 +02:00
Karl Tauber
c3d214aa23
Merge PR #579 : Linux window decorations: native move window and system menu
2022-09-11 12:11:06 +02:00
Karl Tauber
d301f6e104
MenuBar: support different menu selection style UI defaults for MenuBar and MenuItem (issue #587 )
2022-09-11 12:00:38 +02:00
Karl Tauber
eb9fa585f7
more fixes for AWT components on macOS (issue #583 )
...
- ScrollBar: disable hover because scroll bar does not receive mouse exited event
2022-09-10 18:56:33 +02:00
Karl Tauber
16c6ffb032
more fixes for AWT components on macOS (issue #583 )
...
- use light theme for AWT components if dark FlatLaf theme is active (AWT is always light)
- made AWT peer background compatible with Aqua Laf
2022-09-10 16:53:29 +02:00
Karl Tauber
7858e42e37
fixed AWT components on macOS (issue #583 )
...
- fixed missing focus indicator
- fixed round corners
- fixed java.awt.Button background
- fixed java.awt.Choice background
- fixed java.awt.Checkbox hover
2022-09-05 14:47:17 +02:00
Karl Tauber
30132aa6b0
added system property flatlaf.updateUIOnSystemFontChange to allow disabling automatic UI update when system font changes (issue #580 )
2022-08-24 19:32:38 +02:00
Karl Tauber
bf4d4cc2c5
Linux: fixed double-click on title bar to maximize/restore on Ubuntu 22.04 (issue #482 )
2022-08-21 19:49:41 +02:00
Karl Tauber
9f0554c883
Linux: added libflatlaf-linux-x86_64.so (issue #482 )
...
built by GitHub Actions:
https://github.com/JFormDesigner/FlatLaf/actions/runs/2898994332
2022-08-21 17:35:44 +02:00
Karl Tauber
218ea6ce47
Linux: fixed double-click on title bar to maximize/restore (issue #482 )
2022-08-21 17:24:50 +02:00
Karl Tauber
0baae7da8b
Linux: load jawt.so explicitly before loading FlatLaf native library to fix UnsatisfiedLinkError: ... libjawt.so: cannot open shared object file ... (issue #482 )
2022-08-20 23:49:14 +02:00
Karl Tauber
fb4576fc1b
Linux: use X11 window manager events to move window and to show window menu (right-click on window title bar), if custom window decorations are enabled (issue #482 )
2022-08-20 21:09:49 +02:00
Karl Tauber
16f3f9e6ff
Window decorations: added client property to mark components in embedded menu bar as "caption" (issue #569 )
2022-08-20 19:42:38 +02:00
Karl Tauber
fee7cf6265
FlatPopupFactory: use method handles instead of reflection
2022-08-13 11:18:47 +02:00
Karl Tauber
2dd75c4a64
fixed possible exception in FlatUIUtils.resetRenderingHints() (issue #575 )
2022-08-12 15:41:55 +02:00
Karl Tauber
d2f46cd0b5
TabbedPane: option to disable tab run rotation in wrap layout (issue #574 )
2022-08-12 15:32:39 +02:00
Karl Tauber
10914083e6
JavaCompatibility: use method handles instead of reflection
2022-08-12 11:20:42 +02:00
Karl Tauber
5d167da55e
Styling: fixed styling protected JRE fields using @StyleableField annotation (regression in commit ff00a6c0f0)
2022-08-12 11:15:49 +02:00
Karl Tauber
b381e20e57
UIDefaultsLoader: over() color function should always return a ColorUIResource
2022-08-11 23:52:35 +02:00
Karl Tauber
380dae1017
Icons: cache paths for (complex) immutable icons that may be painted often (e.g. Tree icons or FileView icons)
2022-08-11 22:26:48 +02:00
Karl Tauber
fb15cdc546
Icons:
...
- reduced temporary memory usage by specifying optimal initial capacity to `new Path2D.Float()`
- replaced `path.append( new Line2D.Float(...) )` with `path.moveTo(...); path.lineTo(...);`, which does the same, but does not use temporary objects
2022-08-11 18:09:47 +02:00
Karl Tauber
a525fe29db
Icons: changed icons for FileChooser, OptionPane and Tree to rounded outlined style (issue #543 )
2022-08-11 17:02:24 +02:00
Karl Tauber
475cc9a9a5
Testing: extended FlatPaintingIconsTest to paint icons as pixels
2022-08-11 13:51:19 +02:00
Karl Tauber
264d6fbd6d
Testing: added FlatPaintingIconsTest
2022-08-11 00:28:44 +02:00
Karl Tauber
2826cf379b
added arrow icons to FlatLaf Icons.sketch and exported as SVGs
2022-08-11 00:24:22 +02:00