Karl Tauber
84f7e244f2
Styling:
...
- support ComboBox.padding
- fixed updating of Spinner.padding
2021-07-05 22:36:57 +02:00
Karl Tauber
4a8207f367
Styling: use TestUtils.setup() in unit tests;
2021-07-05 21:58:48 +02:00
Karl Tauber
9cfd4d27e9
Styling: renamed unit tests (so that all unit test classes start with Test)
2021-07-05 21:48:41 +02:00
Karl Tauber
1b23cfd747
Merge remote-tracking branch 'origin/main' into styling
...
# Conflicts:
# flatlaf-core/build.gradle.kts
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatComboBoxUI.java
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPasswordFieldUI.java
2021-07-05 21:38:07 +02:00
Karl Tauber
c708205593
TestFlatComponentSizes: shortened combobox text because unit tests on GitHub Actions use font size 15
2021-07-05 20:06:07 +02:00
Karl Tauber
a22c6c8013
ComboBox (not editable):
...
- increased size of internal renderer pane to the component border so that it can paint within the whole component
- increase combo box size if a custom renderer uses a border with insets that are larger than the default combo box padding (`2,6,2,6`)
2021-07-05 18:41:17 +02:00
Karl Tauber
b576f473e5
fixed component heights at 1.25x, 1.75x and 2.25x scaling factors (Java 8 only) so that Button, ComboBox, Spinner and TextField components (including subclasses) have same heights
2021-07-05 15:15:37 +02:00
Karl Tauber
0b127caa83
ComboBox: fixed minimum width if focusWidth > 0 (to be equal with button minimum width)
...
added some unit tests to compare component sizes
2021-07-05 11:07:32 +02:00
Karl Tauber
5801bf3bdf
Styling: use FlatLightLaf in unit tests and get UI delegates from components
2021-07-04 10:43:08 +02:00
Karl Tauber
4507ce359d
ComboBox: reworked uninstall of CellPaddingBorder, which is temporary used for cell renderers, to make it easier to understand and reliable
...
(tested using FlatCustomBordersTest, FlatNetBeansTest, etc)
2021-07-03 10:43:55 +02:00
Karl Tauber
3e14f28dc2
ComboBox (editable) and Spinner: increased size of internal text field to the component border so that it behaves like plain text field (issue #330 )
2021-07-02 18:43:37 +02:00
Karl Tauber
a9dcf09d13
TextField: support adding extra padding
...
(for #172 , #173 and #330 )
2021-07-02 15:38:45 +02:00
Karl Tauber
c8998c2bcf
PasswordField: UI delegate FlatPasswordFieldUI now extends FlatTextFieldUI (instead of BasicPasswordFieldUI) to avoid duplicate code and for easier extensibility (e.g. for #173 and #341 )
2021-07-02 14:03:54 +02:00
Karl Tauber
731c8962c9
added missing since 1.3
2021-07-02 10:21:55 +02:00
Karl Tauber
4f9b819f48
Spinner: reduced gap between up and down arrows, which was increased by previous commit (issue #329 )
2021-06-30 18:57:54 +02:00
Karl Tauber
5318d5fa8e
ScrollBar: fixed left/top arrow icon location (if visible) (issue #329 )
...
(tested using FlatPaintingTest)
2021-06-30 18:47:16 +02:00
Karl Tauber
98b156bdde
TextComponents: use focusedBackground also if not editable (but enabled)
...
(PR #338 )
2021-06-30 00:01:33 +02:00
Karl Tauber
2b1c55ee67
Styling: support TabbedPane
2021-06-27 17:12:46 +02:00
Karl Tauber
925ddaa63a
Styling: update MigLayout visual padding
2021-06-25 21:40:19 +02:00
Karl Tauber
2b60b18d47
Styling: support ScrollPane
2021-06-25 21:39:52 +02:00
Karl Tauber
d502406fa2
Styling: support borders of ComboBox and Spinner
...
reduced code size of Button, TextField and PasswordField
2021-06-25 21:38:39 +02:00
Karl Tauber
afdbf711f7
Styling: support Help button
2021-06-25 14:27:44 +02:00
Karl Tauber
39d2941099
removed duplicate ;
2021-06-25 10:48:00 +02:00
Karl Tauber
b4f7b1d71d
Styling: support ToolBar and ToolBar.Separator
2021-06-24 20:06:00 +02:00
Karl Tauber
69061cd41c
Styling: support TableHeader
2021-06-24 17:57:12 +02:00
Karl Tauber
8ba7f7f961
Styling: reduce duplicate code in list and table cell borders
2021-06-24 17:53:19 +02:00
Karl Tauber
5e5aa17e14
Styling: add property change listener only for FlatLaf.style (where possible)
2021-06-24 14:05:24 +02:00
Karl Tauber
551f5fc929
Styling: support Label
2021-06-24 14:02:32 +02:00
Karl Tauber
4e7b0d11d0
Styling: support Tree icons
2021-06-24 13:43:19 +02:00
Karl Tauber
06bc53692a
Styling: support cell borders of List and Table
2021-06-24 10:45:48 +02:00
Karl Tauber
007ee38cb4
Styling: support List, Table and Tree
2021-06-22 17:59:55 +02:00
Karl Tauber
2a732306a1
ComboBox: renamed UI key ComboBox.popupFocusedBackground to ComboBox.popupBackground
2021-06-22 08:59:11 +02:00
Karl Tauber
82192bef91
Styling: clear field oldStyleValues on UI delegate uninstall
2021-06-21 21:06:39 +02:00
Karl Tauber
0c51dfe19c
Styling: support ComboBox
2021-06-21 20:58:04 +02:00
Karl Tauber
24a9fa1ccc
Styling: renamed "update" methods
2021-06-21 20:49:31 +02:00
Karl Tauber
14b06507cb
Styling: support Spinner
2021-06-21 19:45:42 +02:00
Karl Tauber
b46233087b
Styling: use FlatStyleSupport.createPropertyChangeListener() where possible/useful
2021-06-21 17:27:46 +02:00
Karl Tauber
28fb2e2a08
Styling: support Menu, MenuItem, CheckBoxMenuItem and RadioButtonMenuItem
2021-06-21 17:24:45 +02:00
DUDSS
943e211cf1
TabbedPane: ActiveTabBorder: Added handling for thick content separators and 0 height selection indicator. Fixed scaling issues (presumably).
2021-06-20 14:01:01 +02:00
DUDSS
ad0a13004e
TabbedPane: Changed name in demo and added separator repaint on focus gained.
2021-06-20 02:56:19 +02:00
DUDSS
04bb6a5275
TabbedPane: Adjustements
2021-06-20 02:14:31 +02:00
DUDSS
4c13271a5b
TabbedPane: Added activeTabBorder option to tabbed panes. Changes the active tab design to more closely resemble classic tabbed pane designs.
2021-06-20 02:13:54 +02:00
Karl Tauber
20027c2db7
Styling: support platform and light/dark theme specific styling with key prefixes [win], [mac], [linux], [light] and [dark]
...
e.g. `mySlider.putClientProperty( "FlatLaf.style", "[light]trackColor: #00f; [dark]trackColor: #f00" );`
2021-06-19 23:24:04 +02:00
Karl Tauber
6affc70a66
Styling: support Button and ToggleButton (including border)
2021-06-19 22:31:21 +02:00
Karl Tauber
ab4c9bdeda
Styling: renamed client property JComponent.style to FlatLaf.style
2021-06-19 11:16:14 +02:00
Karl Tauber
b4a9c9b7f5
Styling: support styling disabledBackground and inactiveBackground of text components
2021-06-19 11:11:57 +02:00
Karl Tauber
5e20d50abf
Styling: support TextArea, TextPane and EditorPane
2021-06-18 14:21:17 +02:00
Karl Tauber
53abbbbe56
Styling: support TextField, FormattedTextField and PasswordField
2021-06-18 13:22:19 +02:00
Karl Tauber
1938cb586d
Styling: support SplitPane
2021-06-17 20:59:09 +02:00
Karl Tauber
50490ece84
Styling: support Separator and PopupMenu.Separator
2021-06-17 15:21:19 +02:00