Karl Tauber
7452390614
ToolBar: support non-button components in arrow-keys-only navigation (issue #346 )
2021-10-05 23:11:53 +02:00
Karl Tauber
69042e42b7
ToolBar: support arrow-keys-only navigation within focusable buttons of toolbar:
...
- arrow keys move focus within toolbar (provided by `BasicToolBarUI`)
- tab-key moves focus out of toolbar
- if moving focus into the toolbar, focus recently focused toolbar button
(issue #346 )
2021-10-05 16:36:50 +02:00
Karl Tauber
e34fbcec58
ToolBar: foolbars are no longer floatable by default
2021-10-04 15:31:55 +02:00
Karl Tauber
2e1ef647a9
Theming improvements:
...
- renamed `MenuItemCheckBox.icon.checkmarkColor` to `CheckBoxMenuItem.icon.checkmarkColor`
- renamed `MenuItemCheckBox.icon.disabledCheckmarkColor` to `CheckBoxMenuItem.icon.disabledCheckmarkColor`
(Note: this are incompatible changes!)
2021-10-03 23:28:53 +02:00
Karl Tauber
f0c314df80
Theming improvements:
...
- renamed `@disabledText` to `@disabledForeground`
- renamed `@textComponentBackground` to `@componentBackground`
- renamed `@textComponentMargin` to `@componentMargin`
- added `@disabledBackground`
(Note: this are incompatible changes!)
2021-10-03 23:15:51 +02:00
Karl Tauber
b2d40825ac
Theming improvements:
...
- reworked core themes
- reduced explicit colors by using color functions
- made it easier to create new themes
- avoid using colors from one component type for another component type
(except when useful; e.g. `Separator.foreground` is also used for other separators)
- HelpButton: use colors from Button (instead of from CheckBox.icon)
- ToolBar: improved "docking" and "floating" colors
2021-10-01 23:48:46 +02:00
Karl Tauber
3834d93c9d
ComboBox and Spinner:
...
- added `buttonSeparatorColor` and `buttonDisabledSeparatorColor`
- fixed styling of `borderColor` and `disabledBorderColor`
2021-10-01 13:43:24 +02:00
Karl Tauber
06b3de720a
Merge PR #375 : Accent colors
...
# Conflicts:
# flatlaf-core/src/main/java/com/formdev/flatlaf/FlatLaf.java
# flatlaf-core/src/main/java/com/formdev/flatlaf/UIDefaultsLoader.java
2021-09-28 15:13:25 +02:00
Karl Tauber
bb5c2eea10
Accent color:
...
- added `Component.accentColor`
- dark themes: changed threshold for contrast() from 39% down to 25% for better readability of text
- Demo: added "Default" accent color and changed "Blue" to lighter color
(issue #233 )
2021-09-28 11:12:17 +02:00
Karl Tauber
14a9240c45
FlatUIUtils: joined the 3 component painting methods (for focus border, border and background) into a single method paintOutlinedComponent()
...
- this allows optimized painting if focus color and border color are equal
- avoids duplicate code
- support focusWidthFraction for future animations
2021-09-16 18:09:32 +02:00
Karl Tauber
fd15b63044
Merge PR #378 : TextField: leading and trailing icons
...
# Conflicts:
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPasswordFieldUI.java
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTextFieldUI.java
2021-09-15 23:32:57 +02:00
Karl Tauber
578379fd00
Table and TableHeader: renamed UI keys Table[Header].showLastVerticalLine to Table[Header].showTrailingVerticalLine (issue #332 )
2021-09-14 14:31:17 +02:00
Karl Tauber
85fde46504
Testing: FlatSingleComponentTest: revalidate and repaint when changing component orientation using Alt+R
2021-09-13 10:11:09 +02:00
Karl Tauber
b283178979
Spinner: fixed painting of border corners on left side (issue #382 ; regression since FlatLaf 1.4)
...
ComboBox (editable): fixed wrong border of internal text field under special circumstances
2021-09-10 16:37:07 +02:00
Karl Tauber
824db2e3bd
Table and TableHeader: added UI defaults to show last vertical line (issue #332 )
2021-09-05 11:51:28 +02:00
Karl Tauber
4795fe5687
Theme Editor:
...
- added preview of buttons, checkboxes, radiobuttons, etc in various states (hover, pressed, focused, selected, disabled)
(copied from `FlatComponentStateTest`)
- moved components preview panel from FlatThemePreview.jfd` to FlatThemePreviewAll.jfd`
- added tabs at top of preview area
2021-09-05 10:55:51 +02:00
Karl Tauber
c7054537e7
Testing: FlatSingleComponentTest: support changing component orientation using Alt+R
2021-09-04 13:28:02 +02:00
Karl Tauber
dc33c26960
TextField: support leading and trailing icons (issue #368 )
2021-09-02 17:45:33 +02:00
Karl Tauber
9144b7206e
Accent color:
...
- added @accentXYZ variables that define all blueish accent colors
- all blueish accent colors are calculated based on @accentColor
(issue #233 )
2021-08-30 23:06:06 +02:00
Karl Tauber
dd14843f2e
Accent color: reduced number of individual blueish accent colors with color functions (issue #233 )
2021-08-30 23:06:06 +02:00
Karl Tauber
268fe15004
Tree: improved support for JTree.getPathForLocation(int x, int y) in wide selection (issue #373 )
...
this is experimental and disabled by default; enable with:
`UIManager.put( "FlatLaf.experimental.tree.widePathForLocation", true );`
2021-08-13 00:19:34 +02:00
Karl Tauber
bfb1642284
UIDefaultsDump: dump HSL color values
2021-08-06 10:45:57 +02:00
Karl Tauber
bce58bc97b
SwingX: added search and clear icons to JXSearchField (issue #359 )
2021-08-03 17:52:49 +02:00
Karl Tauber
d373687bc4
Testing: added FlatSingleComponentTest to easier test/debug single components
2021-08-03 15:16:04 +02:00
Karl Tauber
75f76f4875
ComboBox and Spinner: limit arrow button width if component has large preferred height (issue #361 )
2021-08-02 15:27:25 +02:00
Karl Tauber
60e5861de4
InternalFrame: limit internal frame bounds to parent bounds on resize; honor maximum size of internal frame (issue #362 )
2021-07-29 16:44:50 +02:00
Karl Tauber
ca7f5045ae
Popup: fixed incorrectly placed drop shadow for medium-weight popups in maximized windows (issue #358 )
2021-07-29 15:39:16 +02:00
Karl Tauber
8b585deb78
ToolBar: support focusable buttons in toolbar (issue #346 )
...
fixed focusable state when switching to/from other Laf
2021-07-10 13:32:30 +02:00
Karl Tauber
4d8b544aed
UIDefaultsKeysDump: also use FlatTestLaf, which adds missing keys to FlatLafUIKeys.txt
2021-07-10 13:28:02 +02:00
Karl Tauber
1de81d0af5
ComboBox: fixed StackOverflowError when using single renderer instance in multiple comboboxes (regression since commit 4507ce359d)
2021-07-09 11:39:35 +02:00
Karl Tauber
ff9ef21f67
OptionPane: align wrapped lines to the right if component orientation is right-to-left (issue #350 )
2021-07-08 17:53:44 +02:00
Karl Tauber
90282d4436
UI defaults dumps updated for issue #335
2021-07-08 00:02:33 +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
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
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
511dd02107
JIDE: build using latest version of JIDE library com.formdev:jide-oss:3.7.12
2021-06-29 22:58:42 +02:00
Karl Tauber
d557cf5427
FlatTestFrame: do not print stack trace if lafs.properties does not exist
2021-06-27 21:36:49 +02:00
Karl Tauber
39d2941099
removed duplicate ;
2021-06-25 10:48:00 +02:00
Karl Tauber
2a732306a1
ComboBox: renamed UI key ComboBox.popupFocusedBackground to ComboBox.popupBackground
2021-06-22 08:59:11 +02:00
Karl Tauber
ed9cb0f918
Spinner: support Spinner.focusedBackground
...
ComboBox:
- prefer explicit set background color over focusedBackground
- if ComboBox.buttonFocusedBackground is not specified use ComboBox.focusedBackground
- added ComboBox.popupFocusedBackground
(issue #335 )
2021-06-15 11:50:30 +02:00
Karl Tauber
a51294d570
TextComponents:
...
- use focusedBackground only if editable (and enabled)
- prefer explicit set background color over focusedBackground
- added FlatTextFieldUI.getBackground() used by all text components
- support EditorPane.focusedBackground
- support TextPane.focusedBackground
(issue #335 )
2021-06-12 20:46:59 +02:00
Karl Tauber
29e1dc6b55
FlatTitlePaneIcon: use getResolutionVariant(width, height) instead of getResolutionVariants() to allow creation of requested size on demand and to avoids creation of all resolution variants
...
Extras: `FlatSVGUtils.createWindowIconImages()` now returns a single multi-resolution image that creates requested image sizes on demand from SVG
(issue #323 )
2021-05-14 16:43:47 +02:00
Karl Tauber
eea341fb33
Native window decorations: fixed broken maximizing window (under special conditions) when restoring frame state at startup (issue #283 )
2021-05-13 12:10:11 +02:00
Karl Tauber
38a3a0768d
Tree: fill cell background if DefaultTreeCellRenderer.setBackgroundNonSelectionColor(Color) was used (issue #322 )
2021-05-12 15:45:36 +02:00
Karl Tauber
03b42749cd
replaced deprecated (since Java 9) KeyEvent.*_MASK with KeyEvent.*_DOWN_MASK
2021-05-12 14:03:16 +02:00
Karl Tauber
cacf0ea987
ComboBox: support using as cell renderer (e.g. in JTable)
2021-05-04 21:39:08 +02:00
Karl Tauber
e6f72bf343
fixed some deprecation warnings when compiling with Java 11
2021-04-22 15:53:02 +02:00
Karl Tauber
d97146393c
renamed Flat*Laf.install() methods to Flat*Laf.setup() to avoid confusion with UIManager.installLookAndFeel(LookAndFeelInfo info); the old Flat*Laf.install() methods are still there, but marked as deprecated
2021-04-22 14:20:09 +02:00