Karl Tauber
1aa339de02
make component outline border wider if focus width is zero
2020-05-17 17:59:26 +02:00
Karl Tauber
800dbf3ba9
support different component border colors to indicate errors, warnings or custom state (set client property JComponent.outline to error, warning or any java.awt.Color)
2020-05-17 13:43:19 +02:00
Karl Tauber
ff545e6ecd
UIDefaultsLoader: support using a derived color function within another derived color function and create a derived color that joins the color functions
2020-05-17 12:14:14 +02:00
Karl Tauber
961fe38c7e
UIDefaultsDump: dump color functions
2020-05-16 22:25:23 +02:00
Karl Tauber
19426394e2
UIDefaultsLoader: added saturate() and desaturate() color functions
2020-05-16 18:59:05 +02:00
Karl Tauber
069a4e8f0b
ToolTip: fixed left/right insets of multi-line tooltips so that they are the same as in single-line tooltips (BasicToolTipUI adds 3 to the left and right)
2020-05-16 14:33:55 +02:00
Karl Tauber
f632c355e8
FileChooser: scale file icons (issue #100 )
2020-05-16 11:03:40 +02:00
Karl Tauber
e75caf5833
FileChooser: use system icons (issue #100 )
2020-05-15 17:20:52 +02:00
Karl Tauber
b0c8f2cefd
TextComponents: reduced duplicate code; fixed parameter order
2020-05-15 15:00:32 +02:00
Karl Tauber
2136d9f13d
PasswordField: do not apply minimum width if columns property > 0
2020-05-15 14:06:33 +02:00
Karl Tauber
83fdeb7e0c
ComboBox, Spinner and TextField: support round border style (set client property JComponent.roundRect to true)
2020-05-15 13:38:45 +02:00
Karl Tauber
26c77b3118
Button, ComboBox, TextField and DatePicker UI delegates now get Component.focusWidth and Button.arc/Component.arc/TextComponent.arc from component border
2020-05-15 11:32:53 +02:00
Karl Tauber
578d445ecb
FlatBorder: moved scaling from getter methods to paintBorder() and getBorderInsets()
2020-05-14 23:35:11 +02:00
Karl Tauber
3bbc9517af
Popup: fixed background flashing effect when drop shadows are disabled (issue #94 )
2020-05-14 14:48:12 +02:00
Karl Tauber
a4d7f278cf
Drop shadows on Windows: fix location of light weight popup in case it has left or top drop shadow (issue #94 )
2020-05-14 11:44:00 +02:00
Karl Tauber
bf0ffc6ac2
Drop shadows: support enabling/disabling drop shadows per component (issue #94 )
2020-05-14 11:39:09 +02:00
Karl Tauber
ace07cd9cb
Drop shadows on Windows: fixed sub-pixel text rendering issue for heavy weight popups (issue #94 )
2020-05-14 11:11:11 +02:00
Amit Mendapara
298f0dfd63
Fix menu background flashing effect
...
When using dark theme on light platform theme, there was a
background flashing effect on popups.
See #94
2020-05-14 11:43:59 +05:30
Karl Tauber
b8f953cd26
Drop shadows on Windows: use light weight popups by default (issue #94 )
...
this fixes the sub-pixel text rendering issue (on Windows) for popups that fit into the owner window
2020-05-13 18:41:26 +02:00
Karl Tauber
a9cfe69ba7
FileChooser: fixed missing labels in file chooser when running on Java 9 or later (issue #98 )
2020-05-13 12:50:41 +02:00
Karl Tauber
b3e0b99e8d
Button and ToggleButton: support round button style (set client property JButton.buttonType to roundRect)
2020-05-13 11:45:01 +02:00
Karl Tauber
d3a70b8bb2
CheckBox and RadioButton: Opaque flag is no longer ignored when checkbox is used as table cell renderer (issue #77 )
...
this fix replaces/improves fix made in commit 3ba8133890
2020-05-12 22:35:05 +02:00
Karl Tauber
71e698603d
ComboBox: fixed painting background outside of border if Component.arc is set to a large value
2020-05-12 22:29:59 +02:00
Karl Tauber
659ead903c
TextField: avoid garbage in corners if TextComponent.arc is set to a large value
2020-05-12 18:58:17 +02:00
Karl Tauber
070c435f40
paint nicely rounded buttons, comboboxes, spinners and text fields when setting Button.arc, Component.arc or TextComponent.arc to a large value (e.g. 1000)
2020-05-12 17:48:35 +02:00
Karl Tauber
b668a526e3
changed "Flat" to "FlatLaf" in look and feel names and descriptions
2020-05-12 16:47:46 +02:00
Karl Tauber
01287d0669
Popup: allow disabling native drop shadows for popups on macOS
2020-05-12 16:42:55 +02:00
Amit Mendapara
71248f1708
Fix popup shadow issue on Linux
...
Linux adds drop shadow to heavy weight popups. So there is no
need to draw shadow manually.
2020-05-10 22:46:57 +05:30
Karl Tauber
0a0f834f23
Drop shadows:
...
- reworked drop shadows implementation to support 4-sided shadows
- use 4-sided shadow for internal frames
- made shadows configurable in UI defaults
- made shadows dark in dark themes
(issue #94 )
2020-05-10 15:38:50 +02:00
Karl Tauber
06cad7ecd8
Popup: make sure that popup background is filled (issue #94 )
2020-05-09 23:50:48 +02:00
Karl Tauber
2656c2dc40
build.gradle.kts: moved publishing related configuration to precompiled script plugin
2020-05-09 13:54:16 +02:00
Karl Tauber
01cfe33865
build.gradle.kts: moved module-info and java9 related configuration to precompiled script plugins
2020-05-09 11:16:40 +02:00
Karl Tauber
d79a31cc79
build.gradle.kts: use withSourcesJar() and withJavadocJar()
...
this adds resources to sources.jar
2020-05-09 02:09:03 +02:00
Karl Tauber
3f45a9a75f
Merge remote-tracking branch 'origin/drop-shadows' into master
2020-05-08 19:02:13 +02:00
Karl Tauber
465dc8a66c
Popup: added drop shadows to all popups (menu, combobox and tooltip) on all platforms (issue #94 )
2020-05-08 11:02:20 +02:00
Karl Tauber
7e5c599cc0
added user scale factor to UI defaults to allow layout managers (e.g. MigLayout) to use it
...
(see https://github.com/mikaelgrev/miglayout/pull/76 )
2020-05-07 23:28:57 +02:00
Karl Tauber
a961001a4b
reorder entries in JAR file to fix issues #13 and #93
2020-05-07 14:45:22 +02:00
Karl Tauber
0a181f6407
InternalFrame: added drop shadows (issue #94 )
...
also made borders of internal frames in dark themes darker
2020-05-07 00:07:02 +02:00
Karl Tauber
27a347db34
PopupMenu on macOS: enabled drop shadows for popup menus and combobox popups (issue #94 )
2020-05-05 19:20:48 +02:00
Karl Tauber
e79880d305
ToolTip: made border darker (to make it better and no longer paint disabled tips (issue #94 )
2020-05-05 18:44:54 +02:00
Karl Tauber
34266761d1
UIDefaultsDump: dump FlatLineBorder parameters because they may be specified in properties files
2020-05-05 16:34:30 +02:00
Karl Tauber
77f17eaa3e
FlatPropertiesLaf class added that allows creating FlatLaf theme from properties (issue #97 )
2020-05-05 15:13:21 +02:00
Karl Tauber
ac70342cb3
Menus: made check background margin smaller (issue #96 )
2020-05-05 13:56:41 +02:00
Karl Tauber
d2f16dcaf3
Menus:
...
- added 1px to menu item top and bottom margin
- changed gap between menu item icon and text from 4 to 6
- improved colors of checked menu items that have a icon
(issue #96 )
2020-05-05 12:31:33 +02:00
Karl Tauber
abcce2bf68
Table: fixed inconsistent table selection / move shortcuts (issue #95 )
2020-05-04 13:30:42 +02:00
Karl Tauber
514487074b
Menus: after Alt+Tab to other window and back, activating menu with Alt key did not always work (issue #43 )
2020-05-04 12:08:47 +02:00
Karl Tauber
f014e2473f
Menus: on Windows, releasing Alt key now activates the menu bar (issue #43 )
2020-05-04 10:57:10 +02:00
Karl Tauber
4bd3b889dc
FlatSVGIcon: support color filtering
2020-05-03 18:21:00 +02:00
Karl Tauber
464787dc1e
FlatSVGIcon: use grayFilter and graphics proxy to paint disabled icons without bitmaps
2020-05-02 23:48:46 +02:00
Karl Tauber
a2541a9659
Menus: added gap between accelerator and arrow in menu items (issue #91 )
2020-05-02 19:16:33 +02:00