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
7c9bbe6aef
Merge branch 'master' into branch 'custom-window-decorations'
2020-06-23 11:11:14 +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
0880a3380c
Window decorations: hide drag border components if frame is maximized
2020-06-07 23:22:57 +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
ff55cc1a2a
Window decorations: do not overwrite maximized bounds if controlled from the application
2020-06-07 11:57:05 +02:00
Karl Tauber
d081b9e182
Window decorations: do not restore maximized bounds in method maximize() because when restoring an iconified frame by clicking on the Windows 10 taskbar the maximize() method is not invoked and the frame size becomes full screen size and overlaps taskbar
2020-06-07 11:31:11 +02:00
Karl Tauber
5e5b9f0990
Window decorations: fixed maximized bounds on Java 15 (issues #47 and #82 )
2020-06-07 11:03:22 +02:00
Karl Tauber
97577e835e
Window decorations: fixed top border when running in JetBrains Runtime (issues #47 and #82 )
2020-06-06 22:16:26 +02:00
Karl Tauber
732ca8be56
FlatLaf.isLafDark() added
2020-06-06 22:00:54 +02:00
Karl Tauber
dd96712c2a
Menu: no longer add 1px to bottom insets of JMenu contained in JMenuBar to fix vertical alignment of JMenu text with FlatTitlePane title text on Java 9+ on HiDPI screens (due to rounding)
...
(this extra 1px was actually not necessary)
2020-06-06 15:31:11 +02:00
Karl Tauber
2ad0aba382
Window decorations: enable dark window appearance on macOS when running in JetBrains Runtime (issues #47 and #82 )
2020-06-06 13:53:22 +02:00
Karl Tauber
8e77eb0519
Window decorations: support resizing window (issues #47 and #82 )
2020-06-06 12:20:33 +02:00
Karl Tauber
049dae6584
Button: support non-square icon-only buttons (issue #110 )
2020-06-03 15:55:14 +02:00
Karl Tauber
1fffc67d13
Window decorations: added border (issues #47 and #82 )
2020-06-02 17:49:30 +02:00
Karl Tauber
8500781cd5
Merge branch 'master' into branch 'custom-window-decorations'
...
# Conflicts:
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatRootPaneUI.java
2020-06-02 16:13:35 +02:00
Karl Tauber
c45a769aa3
update JFrame/JDialog background color when switching Laf
2020-06-02 15:46:36 +02:00
Karl Tauber
16d2e27d05
Window decorations: require Windows 10 (issues #47 and #82 )
2020-05-31 15:31:28 +02:00
Karl Tauber
10c948d33c
Window decorations: nested class FlatRootPaneUI.FlatRootLayout is no longer static (issues #47 and #82 )
2020-05-31 14:53:13 +02:00
Karl Tauber
7ccd32dfbd
Window decorations: fixed menu bar border if embedded (issues #47 and #82 )
2020-05-31 14:45:44 +02:00
Karl Tauber
99c99b9218
Window decorations: support embedding menu bar into title pane (enabled by default) (issues #47 and #82 )
2020-05-31 14:10:58 +02:00
Karl Tauber
e0b0617ad2
macOS Catalina: Use Helvetica Neue font
2020-05-30 21:44:52 +02:00
Karl Tauber
5add723852
Window decorations: support right-to-left component orientation (issues #47 and #82 )
2020-05-30 18:33:22 +02:00
Karl Tauber
436fc545c0
Window decorations: support native Windows 10 custom window decorations with JetBrains Runtime 11 (issues #47 and #82 )
2020-05-29 16:44:33 +02:00
Karl Tauber
023d781daf
Window decorations: set maximized title pane height to 22px (issues #47 and #82 )
2020-05-29 11:17:46 +02:00
Karl Tauber
576c0048d0
Window decorations: make title pane height smaller when frame is maximized (issues #47 and #82 )
2020-05-29 00:26:10 +02:00
Karl Tauber
4f79cdad50
Window decorations: support moving window (issues #47 and #82 )
2020-05-28 23:49:46 +02:00
Karl Tauber
954cae8738
Window decorations: limit size of moximized windows so that they do not overlap the Windows task bar (issues #47 and #82 )
2020-05-28 23:04:43 +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
506a1e6b62
Window decorations: iconify/maximize/restore/close button icons in Windows 10 style (issues #47 and #82 )
2020-05-28 11:35:30 +02:00
Karl Tauber
626601f6aa
Window decorations: added window icon (issues #47 and #82 )
2020-05-27 11:40:41 +02:00
Karl Tauber
9ad32125c0
Window decorations: initial implementation (incomplete) (issues #47 and #82 )
...
TODO
- move window
- resize window
- window icon
- window border
2020-05-26 23:35:05 +02:00