Karl Tauber
52ad15e375
Styling: added StyleableUI.getStyleableValue() for tooling (e.g. GUI builder)
2022-07-31 10:57:28 +02:00
Karl Tauber
ff00a6c0f0
Styling: use annotation on UI classes for fields in Basic* classes to apply style properties (to avoid boilerplate code)
2022-07-30 11:03:17 +02:00
Karl Tauber
9b1ebd658d
updated sigtest for FlatLaf 2.4
...
(generated in clean workspace with gradle task `sigtestGenerate`)
2022-07-13 23:45:28 +02:00
Karl Tauber
f842530537
release 2.4
2.4
2022-07-13 23:43:02 +02:00
Karl Tauber
63077bbb19
Merge PR #565 : Window title bar usability improvements (Windows 10/11 only)
2022-07-13 23:28:38 +02:00
Karl Tauber
4dad337377
Window decorations: fixed app icon hit test bounds if icon is shown beside title
2022-07-13 23:11:32 +02:00
Karl Tauber
10a965d765
Window decorations: option to show window icon beside window title, if menu bar is embedded or title is centered
2022-07-13 17:58:25 +02:00
Karl Tauber
3e9c9c9066
execute FlatLaf.initialize() and uninitialize() only for current laf
...
For NetBeans GUI builder, which invokes `FlatLaf.initialize()` multiple times for preview, but never invokes `FlatLaf.uninitialize()`.
(https://github.com/apache/netbeans/issues/4231 )
2022-07-12 12:13:19 +02:00
Karl Tauber
8b5a738e65
Menus: avoid that SubMenuUsabilityHelper can be installed multiple times, which can freeze the application caused pushing multiple event queues and popping wrong event queue first
...
(e.g. NetBeans Form Editor invokes `FlatLaf.initialize()` but not `uninitialize()`)
(PR #490 ; https://github.com/apache/netbeans/issues/4231 )
2022-07-12 10:33:53 +02:00
Karl Tauber
2c041dce3a
Window decorations: add small resize area at top of embedded menu bar only if frame is resizable
2022-07-11 17:47:04 +02:00
Karl Tauber
ef151c68f4
Window decorations:
...
- improved title bar usability by using larger gaps and minimum sizes
- added minimum gap between embedded menu bar and window title
- fixed oscillating title while resizing window width
- fixed lost right-to-left component orientation in title bar when switching Laf
2022-07-11 17:28:30 +02:00
Karl Tauber
52feaac92a
Window decorations: no longer reduce height of window title bar if it has an embedded menu bar and is maximized
2022-07-10 14:03:45 +02:00
Karl Tauber
cddbb3d7d4
Window decorations: make sure that a horizontal glue in embedded menu bar has a minimum width and is always visible
2022-07-10 13:57:37 +02:00
Karl Tauber
42764550e6
Window decorations: improved window title bar layout for small window widths:
...
- width of iconify/maximize/close buttons is reduced to give more space to embedded menu bar and title
- window title now has a minimum width to always allow moving window
2022-07-09 19:54:29 +02:00
Karl Tauber
6ee737b314
Window decorations: small area at top of embedded menu bar to resize window
2022-07-09 10:30:33 +02:00
Karl Tauber
f460ef7685
UI defaults dumps updated for commits b82ee2ef61 and 93e0496fd2
2022-07-09 10:19:54 +02:00
Karl Tauber
9977bcb468
Window decorations: do not center window title if embedded menu bar is empty or has no menus at left side, but some components at right side (issue #558 )
2022-07-09 00:04:51 +02:00
Karl Tauber
7437d984c7
Theme Editor: accept @ as identifier character, which includes it in selection when double clicking e.g. on @background
2022-07-08 17:53:49 +02:00
Karl Tauber
5cd0b2403c
Theme Editor: find/replace bar improvements:
...
- always use editor selection to search if `Ctrl+F` is pressed
- keep find/replace bar open if switching to another editor
- mark matches when switching to another editor
2022-07-08 17:52:08 +02:00
Karl Tauber
a372da22f3
Extras: FlatInspector:
...
- support embedding into SWT
- added "MigLayout visual padding" to tooltip
fixed typo in MigLayoutVisualPadding.java
2022-07-04 11:09:06 +02:00
Karl Tauber
8b10d3ba5a
Native window decorations: fixed missing top window border in dark themes if window drop shadows are disabled in system settings (issue #554 )
2022-07-02 23:26:34 +02:00
Karl Tauber
a8b15c6a12
MenuItem: fixed sometimes wrapped HTML text on HiDPI screens on Windows
2022-07-02 22:38:37 +02:00
Karl Tauber
23bac7e5fd
Native window decorations: do not use window decorations if system property sun.java2d.opengl is true on Windows 10 (issue #540 )
2022-07-02 00:29:29 +02:00
Karl Tauber
b82ee2ef61
Typography: no longer use Consolas or Courier New as monospaced font on Windows because they have bad vertically placement
2022-07-02 00:25:07 +02:00
Karl Tauber
b7761f4b71
HiDPIUtils: support rotated graphics (issue #557 )
2022-07-01 15:34:04 +02:00
Karl Tauber
f9a4f9771c
Testing: FlatPaintingStringTest:
...
- added "Fonts" combobox to test various fonts
- reworked/fixed text painting/sizing to get correct results
2022-06-07 11:03:34 +02:00
Karl Tauber
d2acb2c98a
HiDPIUtils: reimplemented HiDPIUtils.scale() to make it easier to read and more understandable
...
(no longer re-using dx1 and dy2 variables for different kind of values)
2022-06-05 23:43:13 +02:00
Karl Tauber
d60bd5df14
FlatEmptyBorder: fixed possible NPE if passed component is null
2022-06-05 00:46:43 +02:00
Karl Tauber
73b6ca3762
ComboBox: fixed vertical alignment of text in popup list with text in combo box in IntelliJ/Darcula themes
2022-06-04 20:15:31 +02:00
Karl Tauber
6c18431a30
TableHeader: fixed exception when changing table structure (e.g. removing column) from a table header popup menu action (issue #532 )
2022-05-31 18:56:06 +02:00
Karl Tauber
a49d20249f
Gradle: do not set Multi-Release: true in META-INF/MANIFEST.MF if not needed
2022-05-31 15:35:56 +02:00
Karl Tauber
ad384acd57
updated sigtest for FlatLaf 2.3
...
(generated in clean workspace with gradle task `sigtestGenerate`)
2022-05-28 18:43:37 +02:00
Karl Tauber
69851b7f3a
release 2.3
2.3
2022-05-28 17:53:54 +02:00
Karl Tauber
92b53bf0df
Merge PR #522 : File chooser shortcuts panel
2022-05-28 17:46:12 +02:00
Karl Tauber
93e0496fd2
ToggleButton: button style "tab": added missing foreground colors for hover, focused and selected states (issue #535 )
2022-05-28 15:09:04 +02:00
Karl Tauber
5151951f46
Button and ToggleButton: added missing foreground colors for hover, pressed, focused and selected states (issue #535 )
2022-05-28 14:54:31 +02:00
Karl Tauber
58dbccec2d
Table: optionally paint alternating rows below table if table is smaller than scroll pane (issue #504 )
2022-05-25 11:18:22 +02:00
Karl Tauber
90de14d013
Native library: refactored loading of Windows native library from FlatWindowsNativeWindowBorder to FlatNativeLibrary to make it easier to add native libraries for other platforms (for issues #204 and #482 )
2022-05-17 20:24:28 +02:00
Karl Tauber
5f961618bf
Demo and Theme Editor: updated macOS related comments
2022-05-13 13:54:10 +02:00
Karl Tauber
37c375e2fa
Theme Editor:
...
- support "themes" sub-directory
- added "generate Java class" checkbox to "New" dialog
2022-05-10 11:01:45 +02:00
Karl Tauber
1758c175ed
FlatLafUIKeys.txt: added some missing UI defaults
2022-05-09 23:30:34 +02:00
Karl Tauber
96f2a02cfa
UIDefaultsLoader: added over() color function to convert a translucent color into a solid color based on any background color
2022-05-09 23:28:40 +02:00
Karl Tauber
96d4bda6c8
Demo: hide accent color buttons (instead of disabling them) if not supported by selected theme
2022-05-09 22:51:38 +02:00
Karl Tauber
02cf6050a1
updates for PR #530 :
...
- added @since tags
- changed `FlatToggleButton.setTabUnderlinePlacement()` implementation so that is behaves similar to `FlatTabbedPane.setTabIconPlacement()`
2022-05-09 22:28:34 +02:00
Karl Tauber
38cf32a2e9
Merge PR #530 : ToggleButton: made underline placement configurable
2022-05-09 22:08:42 +02:00
Karl Tauber
2ae7589d14
Merge PR #525 : Create Bundle_es.properties
2022-05-09 21:28:47 +02:00
Julien Fischer
bcb2e1f0a1
ToggleButton: made underline placement configurable
...
Supported values: TOP, LEFT, BOTTOM, or RIGHT
2022-05-06 12:07:50 +02:00
Karl Tauber
14932d3f07
Theme Editor: on macOS use apple.awt.fullWindowContent and apple.awt.transparentTitleBar
2022-05-05 13:20:23 +02:00
Karl Tauber
c3b9dc397d
Demo: on macOS use apple.awt.fullWindowContent and apple.awt.transparentTitleBar
2022-05-01 11:45:36 +02:00
Karl Tauber
58b653f55d
updated sigtest for FlatLaf 2.2
...
(generated in clean workspace with gradle task `sigtestGenerate`)
2022-05-01 11:44:51 +02:00