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
John Platts
f7be12df67
Add AllocRoutines.h include
2022-09-19 14:23:51 -05:00
John Platts
a1d1e221ae
Remove operator new and operator delete overloads from Runtime.cpp
...
The ```operator new``` and ```operator delete``` overloads in Runtime.cpp are replaced by placement ```operator new``` and ```operator delete``` operators in AllocRoutines.h that take a const FlatLafNoThrowT& placement parameter.
Using ```new (FlatLafNoThrow) FlatWndProc``` instead of ```new FlatWndProc``` also allows for inlining by the C++ compiler.
2022-09-19 14:23:16 -05:00
John Platts
0a4dc54fb9
Update put and ensureCapacity routines
2022-09-19 14:17:37 -05:00
John Platts
b8c7801365
Change ensureCapacity method to return a bool
2022-09-19 14:06:26 -05:00
John Platts
a7099c039f
Rename allocation functions
2022-09-19 13:57:25 -05:00
John Platts
a4d2d347e3
Change put method to return a bool
2022-09-19 13:56:28 -05:00
John Platts
829c537fd3
Add checks for allocation failure
2022-09-19 13:55:33 -05:00
John Platts
28437f99cf
Update new and delete FlatWndProc.cpp
2022-09-19 13:53:33 -05:00
John Platts
c1402d85e1
Update HWNDMap.h
2022-09-19 13:39:47 -05:00
John Platts
32e071ab89
Update AllocRoutines.h
2022-09-19 13:36:10 -05:00
John Platts
01125e030e
Create AllocRoutines.h
2022-09-19 13:26:33 -05:00
John Platts
b43278439a
Delete AllocRoutines.h
2022-09-19 13:26:01 -05:00
John Platts
7a445aabd7
Create AllocRoutines.h
2022-09-19 13:25:26 -05: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