Karl Tauber
e8ee037d09
RootPane: uninstall background, foreground and font because not all Lafs set them
2022-01-10 11:58:49 +01:00
Karl Tauber
e768791eba
Native window decorations: updated hover and pressed colors of iconify/maximize/close buttons for Windows 11 style
2022-01-09 12:59:08 +01:00
Karl Tauber
a1395a5490
TextField: leading/trailing components (PR #386 ):
...
- set cursor only on button and toolbar
- do not replace cursor on if already set (issue #461 )
- updated client properties javadoc
2022-01-06 15:17:20 +01:00
Karl Tauber
6beda53238
Button: if boolbar button is in leading/trailing component of a text field, increase toolbar button corner arc to match text field corner arc (issue #451 )
2022-01-05 18:46:00 +01:00
Karl Tauber
941441d7e1
TextField: clear button has now component name TextField.clearButton
...
PasswordField: reveals button has now component name `PasswordField.revealButton` and additional style class `revealButton` (issue #173 )
SwingUtils: added `getComponentByName()` for easy getting clear or reveal buttons
2022-01-05 18:32:05 +01:00
Karl Tauber
831b3d851a
ColorFunctions: javadoc added; do not mix colors if they are equal
2022-01-03 19:04:28 +01:00
Karl Tauber
5c4706cbc9
Merge remote-tracking branch 'origin/main' into main
2022-01-03 17:05:37 +01:00
Karl Tauber
db66a6c4f0
Unit tests: re-enable testing scaled UI
...
avoid using UI_SCALE_ENABLED = false because if this test is executed first, class UIScale does not register listeners to UIManager, which prevents updating user scale factor on font changes and testing scaled UI fails
2022-01-03 16:52:43 +01:00
Karl Tauber
0517e4fc02
Native window decorations: updated maximize and restore icons for Windows 11 style
...
(requires Java 8u321, 11.0.14, 17.0.2 or 18+)
2021-12-31 17:57:02 +01:00
Karl Tauber
dd7fa4a87d
Slider: fixed/improved focused indicator color when changing accent color (PR #375 )
2021-12-31 15:33:27 +01:00
Karl Tauber
e5956900ea
FileChooser: use Windows system icons in Java 18+ 32bit (issue #403 )
...
only Java 17 32bit does not use Windows system icons because of:
https://bugs.openjdk.java.net/browse/JDK-8277299
2021-12-31 12:59:22 +01:00
Karl Tauber
3755593c14
Windows 11: Native window decorations: do not paint top window border because Windows 11 now paints it (issue #431 )
...
(requires Java 8u321, 11.0.14, 17.0.2 or 18+)
2021-12-31 10:35:19 +01:00
Karl Tauber
8ddd3b6d68
Native window decorations: fixed blurry iconify/maximize/close button hover rectangles at 125%, 150% or 175% scaling (issue #431 )
2021-12-31 10:28:34 +01:00
Karl Tauber
840083940d
Use FlatLaf native window decorations by default when running in
...
[JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime/wiki )
(instead of using JetBrains custom decorations). System variable
`flatlaf.useJetBrainsCustomDecorations` is now `false` by default (was `true` in FlatLaf 1.x). (issue #454 )
2021-12-30 12:04:22 +01:00
Karl Tauber
bb32c727b6
TextField:
...
- improved hover/pressed/selected colors of leading/trailing buttons
(e.g. "reveal" button in password field) (issue #452 )
- clear button no longer paints over round border (issue #451 )
2021-12-28 20:24:43 +01:00
Karl Tauber
f978c04750
PasswordField: reveal button did not show password if JPasswordField.setEchoChar() was invoked from application (PR #442 ; issue #173 )
2021-12-27 22:53:07 +01:00
Karl Tauber
5fae367fab
PasswordField: preserve reveal button state when switching theme (issue #173 )
2021-12-27 20:07:27 +01:00
Karl Tauber
6e807f44b2
Search/clear icons: fixed colors for some IntelliJ themes (e.g. "Dark Flat") that use translucent color for Actions.GreyInline
2021-12-27 18:22:31 +01:00
Karl Tauber
221e801561
support relative path in system property flatlaf.nativeLibraryPath (PR #453 )
2021-12-23 22:19:29 +01:00
Karl Tauber
90edbe23d7
Merge PR #453 : Add a system property to load pre-extracted native libraries from a directory
2021-12-23 22:10:11 +01:00
Karl Tauber
5b16a814c8
fixed "endless recursion in font" exception in FlatLaf$ActiveFont.createValue() if UIManager.getFont() is invoked from multiple threads (issue #456 )
2021-12-23 21:16:07 +01:00
Ingo Kegel
ef01721464
Added the system property flatlaf.nativeLibraryPath to specify a directory where the native libraries have been extracted.
...
Avoiding extraction at runtime to the temporary directory is useful in order to prevent anti-virus software from blocking the library loading.
2021-12-21 11:13:40 +01:00
Karl Tauber
cae02d31db
IntelliJ Themes: updated themes to newest versions (used IJThemesUpdater)
2021-12-16 00:51:03 +01:00
Karl Tauber
96c78cbc16
ComboBox: fixed wrong popup border when using in theme editor preview
2021-12-15 23:39:16 +01:00
Karl Tauber
f8c769644d
SwingX: fixed NullPointerException in FlatCaret when using org.jdesktop.swingx.prompt.PromptSupport.setPrompt() on a text field and then switching theme
2021-12-15 11:37:35 +01:00
Karl Tauber
0bd1e413b0
Native window decorations: fixed UnsatisfiedLinkError on Windows 11 for ARM processors (issue #443 )
2021-12-15 00:49:08 +01:00
Karl Tauber
07c9ad484a
MenuBar: do not fill background if non-opaque and having custom background color (issue #409 )
2021-12-15 00:29:37 +01:00
Karl Tauber
5fd5b1206e
InternalFrame: fill background to avoid that parent may shine through internal frame if it contains non-opaque components (better fix for issue #274 )
2021-12-15 00:27:20 +01:00
Karl Tauber
12b7389376
TextField: added "clear" callback
2021-12-14 11:28:03 +01:00
Karl Tauber
02a9d4e31d
PasswordField: support "reveal" button to show password (issue #173 )
2021-12-14 01:09:21 +01:00
Karl Tauber
a4377e81cb
TextField: support "clear" (or "cancel") button to empty text field
2021-12-13 22:10:21 +01:00
Karl Tauber
8d2ed3faf6
Merge PR #386 : TextField: leading and trailing components
2021-12-13 17:50:38 +01:00
Karl Tauber
e7dacb8fef
Unit tests: (temporary) disable testing scaled UI until it is clear why it fails now on GitHub Actions (but worked yesterday)
2021-12-13 17:45:46 +01:00
Karl Tauber
60e2ffac5f
Demo: added text field leading/trailing components example
2021-12-13 17:27:36 +01:00
Karl Tauber
73c37b2018
Search/clear icons: option to ignore button state (hover/pressed) for usage where button background changes color on hover/pressed
2021-12-13 00:47:23 +01:00
Karl Tauber
1b3cc223da
TextField: added styles for buttons and toolbars in leading and trailing components (smaller margins/insets, better hover/pressed/selected colors)
2021-12-12 18:43:29 +01:00
Karl Tauber
51be7ad832
TextField: require JComponent for leading and trailing components (to allow setting a style class client property)
2021-12-12 00:50:56 +01:00
Karl Tauber
f93d035e4e
TextField: support leading and trailing components
2021-12-11 14:29:56 +01:00
Karl Tauber
bbf2331766
ComboBox and Spinner: made buttonBackground optional
2021-12-11 12:19:10 +01:00
Karl Tauber
2164bd363b
Styling: MenuItem: support styling acceleratorFont
...
Theme Editor:
- support font keys in auto-completion
- ignore Menu.acceleratorFont, CheckBoxMenuItem.acceleratorFont and RadioButtonMenuItem.acceleratorFont because they are never used (keep UI values for backward compatibility)
2021-12-11 11:39:31 +01:00
Karl Tauber
6205e18c45
Styling: FlatMenuItemArrowIcon no longer extends FlatMenuArrowIcon because it does not paint anything and therefore should not inherit styling properties from FlatMenuArrowIcon
2021-12-11 01:06:23 +01:00
Karl Tauber
959b3e46fa
Styling: fixes and added missing @since tags
2021-12-11 00:50:05 +01:00
Karl Tauber
09d8d09aad
Theme Editor: Preview: support usage of variables in styles
2021-12-10 23:14:19 +01:00
Karl Tauber
600e0f3d67
Panel: support painting background with rounded corners (issue #367 )
...
FlatLineBorder: support rounded corners
2021-12-10 22:40:17 +01:00
Karl Tauber
023e356057
MenuItem: vertically align text if icons have different widths (issue #437 )
2021-12-08 11:45:17 +01:00
Karl Tauber
e52e72c5a8
Merge PR #415 : MenuItem: paint the selected icon when the item is selected
2021-12-07 22:52:25 +01:00
Karl Tauber
802dd08ce7
MenuItem: use isArmedOrSelected() instead of MenuSelectionManager to detect selected item
2021-12-07 22:46:39 +01:00
Karl Tauber
405e3df1f0
Merge remote-tracking branch 'origin/develop-1.x' into main
...
# Conflicts:
# CHANGELOG.md
2021-12-07 16:05:31 +01:00
Karl Tauber
f7126d154f
Window decorations: left indent was lost when icon is hidden and switching Laf (regression in commit 005c9f471e6bc3ea5d708a08e8fb0b087b2c3382; PR #429 )
2021-12-07 16:00:38 +01:00
Karl Tauber
f61a7288eb
fixed updating (embedded) menu bar layout when window is narrow and changing TitlePane.menuBarEmbedded
2021-12-07 11:52:33 +01:00