Karl Tauber
a1b0c0bbd4
ComboBox: increase maximum row count of popup list to 20 (was 8)
2020-06-25 17:00:10 +02:00
Karl Tauber
46d3204bc3
MenuBar:
...
- use derived colors for menu bar hover
- use derived colors for menu item selected background
- top-level JMenu now uses foreground color from parent JMenuBar
This allows changing menu bar background to dark with:
UIManager.put( "MenuBar.background", Color.DARK_GRAY );
UIManager.put( "MenuBar.foreground", Color.WHITE );
or
menuBar.setBackground( Color.DARK_GRAY );
menuBar.setForeground( Color.WHITE );
(issue #117 )
2020-06-25 11:36:36 +02:00
Karl Tauber
c25ff57b61
Button, CheckBox, RadioButton and ToggleButton: do not paint focus indicator if AbstractButton.isFocusPainted() returns false
2020-06-24 16:45:41 +02:00
Karl Tauber
71e61f8f27
made class FlatCaret public for subclassing (issue #113 )
2020-06-24 13:02:25 +02:00
Karl Tauber
6914a6132c
Button: prefer explicitly set background/foreground over focused background and "default" background/foreground (issue #116 )
2020-06-24 12:43:49 +02:00
Karl Tauber
b72916187a
Button: invoke FlatButtonUI.getForeground(c) also if component is disabled to be consistent with getBackground(c)
2020-06-23 12:45:25 +02:00
Karl Tauber
cf436962f8
fixed/improved vertical position of HTML text when scaled on HiDPI screens on Windows
2020-06-22 23:31:01 +02:00
Karl Tauber
7fb7a1ac85
fixed/improved vertical position of text when scaled on HiDPI screens on Windows when running on Java 8
2020-06-22 21:05:11 +02:00
Karl Tauber
15a714faed
fixed/improved vertical position of text when scaled on HiDPI screens on Windows when running on Java 9 or later
2020-06-22 13:45:56 +02:00
Karl Tauber
ea2412d3a7
Improved subclassing:
...
- reviewed all private methods and made them protected/public where it might be useful for subclasses
- ComboBox and Spinner: added protected getBackground() and getForeground() methods to allow subclasses to change colors
- TabbedPane: moved tab separator painting to own method
(issue #113 )
2020-06-20 10:46:56 +02:00
Karl Tauber
262ae7865b
ComboBox and Spinner: support changing arrow button style (issue #114 )
2020-06-19 18:12:23 +02:00
Karl Tauber
84cc86bef7
CheckBox and RadioButton: support changing selected icon style from outline to filled
...
renamed CheckBox.icon.focusedColor to CheckBox.icon.focusColor
2020-06-19 15:36:49 +02:00
Karl Tauber
5496a60f62
CheckBox: reordered icon colors (grouped by state) to make it easier to maintain
...
(nothing else changed)
2020-06-18 18:09:32 +02:00
Karl Tauber
5c7378cf94
Button and ToggleButton: paint disabled background by default (issue #112 )
2020-06-18 12:02:02 +02:00
Karl Tauber
fe15f44e96
ScrollBar: support pressed track, thumb and button colors (issue #115 )
2020-06-18 11:04:38 +02:00
Karl Tauber
273d762cd3
ScrollBar: avoid continuous repainting scrollbar when moving mouse pointer over track and ScrollBar.hoverThumbWithTrack is enabled (regression in fd208a3879)
2020-06-17 23:53:06 +02:00
Karl Tauber
211030b5b6
TableHeader: support top/bottom/left positioned sort arrow when using Glazed Lists (issue #113 )
2020-06-16 18:52:59 +02:00
Karl Tauber
dffe4f4451
Button and ToggleButton: support disabled background color (issue #112 )
2020-06-15 23:34:21 +02:00
Karl Tauber
fd99af5fe6
added Java code style formatter profile 'FlatLaf' for Eclipse projects ( #71 )
2020-06-10 00:25:19 +02:00
Karl Tauber
1838174678
added "use" tab to javadoc
2020-06-08 12:53:48 +02:00
Karl Tauber
2aad301938
Spinner: fixed arrow positions
2020-06-07 18:27:55 +02:00
Karl Tauber
e18e8e3158
Popup: made Popup.show(), hide() and component listener more robust when used in unusual ways (issue #106 )
2020-06-07 15:25:11 +02:00
Karl Tauber
049dae6584
Button: support non-square icon-only buttons (issue #110 )
2020-06-03 15:55:14 +02:00
Karl Tauber
c45a769aa3
update JFrame/JDialog background color when switching Laf
2020-06-02 15:46:36 +02:00
Karl Tauber
e0b0617ad2
macOS Catalina: Use Helvetica Neue font
2020-05-30 21:44:52 +02:00
Karl Tauber
a560be11ed
InternalFrame: renamed FlatInternalFrameMinimizeIcon to FlatInternalFrameRestoreIcon; added some missing @uiDefault to internal frame icons
2020-05-28 11:50:34 +02:00
Karl Tauber
ebd6375672
Spinner: optimized up/down chevron arrow positions
2020-05-25 13:05:59 +02:00
Karl Tauber
502731d3b0
Spinner: optimized up/down arrow positions
2020-05-24 19:05:28 +02:00
Karl Tauber
e9e1e350eb
Spinner:
...
- repaint if JSpinner component gained/lost focus
- paint focus border if JSpinner component is focused
- if spinner gained focus, transfer it to the editor text field
2020-05-24 14:44:36 +02:00
Karl Tauber
566e42cc40
revalidate layout when minimum width client property is changed
2020-05-23 22:57:39 +02:00
Karl Tauber
0abfb5922a
ComboBox: minimum width is now 72 pixels (was ~50 for non-editable and ~130 for editable comboboxes)
2020-05-23 22:25:18 +02:00
Karl Tauber
4af8d2f1c5
ComboBox: support custom borders in combobox editors (issue #102 )
2020-05-23 18:26:59 +02:00
Karl Tauber
d2d4f73834
ScrollBar: use derived colors for track and thumb (issue #103 )
2020-05-23 16:40:09 +02:00
Karl Tauber
53fce4e81d
ScrollBar: rotate track/thumb insets for horizontal orientation because they are given for vertical orientation (issue #103 )
2020-05-23 14:16:12 +02:00
Karl Tauber
08c439b46e
ScrollBar: use rounded thumb on macOS (issue #103 )
2020-05-23 13:58:05 +02:00
Karl Tauber
934eb9fc1d
ScrollBar: use rounded thumb on Linux (issue #103 )
2020-05-23 13:51:25 +02:00
Karl Tauber
fd208a3879
ScrollBar: made styling more flexible by supporting insets and arc for track and thumb (issue #103 )
2020-05-23 13:32:31 +02:00
Karl Tauber
c4c6faa943
Ubuntu Linux: fixed poorly rendered font (2nd attempt) (issue #105 )
2020-05-23 11:06:24 +02:00
Karl Tauber
c7a8d1e1b7
Linux: changing system font did not update FlatLaf font
2020-05-22 18:22:46 +02:00
Karl Tauber
bc6cb492f1
Ubuntu Linux: fixed poorly rendered font (issue #105 )
2020-05-21 17:11:58 +02:00
Karl Tauber
c900c9cc82
reduce derived colors calculations
2020-05-20 14:49:56 +02:00
Karl Tauber
87b73f26f5
replaced FlatUIUtils.setColor() with deriveColor() for more flexibility
2020-05-20 14:24:22 +02:00
Karl Tauber
be529655d6
UIDefaultsLoader: on color functions use "autoInverse" option by default if "derived" option is set
2020-05-20 00:40:05 +02:00
Karl Tauber
2a0403a988
support CompoundBorder as component border with FlatBorder on the outside
2020-05-19 23:24:00 +02:00
Karl Tauber
815e23b930
ScrollBar: make hoverTrack and hoverThumb fields protected to allow subclasses implement own painting (issue #103 )
2020-05-19 19:24:48 +02:00
Karl Tauber
16d51fe6b4
ComboBox and Spinner: move arrow slightly to the left if round borders are used on the component
2020-05-18 23:26:34 +02:00
Karl Tauber
8c0ccdd227
Drop shadows on Windows: support medium-weight popups (issue #94 )
2020-05-18 13:13:57 +02:00
Karl Tauber
dc098025b6
FileChooser: make top-right buttons look like toolbar buttons
2020-05-18 10:51:23 +02:00
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