Karl Tauber
a28f701e6f
OptionPane: do not make child components, which are derived from JPanel, non-opaque (issue #349 )
2021-07-07 10:57:54 +02:00
Karl Tauber
4cdc995a7f
ComboBox: simplified code in configureEditor()
2021-07-05 23:14:05 +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
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
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
8a72b30cbc
Merge pull request #338 from Chrriis/focusedBackground
...
Issue #335 : allow a different background on focus
2021-06-15 11:57:17 +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
7e0915cb9c
FlatBorder: refractored ComboBox, ScrollPane and Spinner focus owner checking to UI delegates (for later usage)
2021-06-13 11:21:55 +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
d962f218a1
ToolTip: fixed positioning of huge tooltips (issue #333 )
2021-06-11 20:53:09 +02:00
Karl Tauber
7b248427f0
fixed white lines at bottom and right side of window (in dark themes on HiDPI screens with scaling enabled)
2021-06-11 16:16:41 +02:00
Christopher Deckers
b99fb8b11f
Use focused background color for combo popups.
2021-06-09 09:56:50 +02:00
Christopher Deckers
26250e790f
Issue #335 : allow a different background on focus.
2021-06-08 10:12:59 +02:00
Karl Tauber
35f97368fa
Native window decorations: double-click at upper-left corner of maximized frame did not close window (issue #326 )
2021-05-18 18:00:53 +02:00
Karl Tauber
09e5c86488
FlatLaf.getDisabledIcon() now returns a instanceof UIResource for disabled SVG icons to allow recreation of disabled icons when switching to another Laf
2021-05-15 17:51:33 +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
439e63b52f
Native window decorations: updated DLLs (issue #283 )
...
built by GitHub Actions:
https://github.com/JFormDesigner/FlatLaf/actions/runs/838543378
2021-05-13 13:43:45 +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
359eedf773
Native window decorations: fixed slow application startup under particular conditions (issue #319 )
2021-05-13 00:54:22 +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
9edaf58929
Linux: fixed/improved detection of user font settings (issue #309 )
2021-05-04 22:41:00 +02:00
Karl Tauber
5000186f85
Linux: enable text anti-aliasing if no Gnome or KDE Desktop properties are available (issue #218 )
2021-05-04 22:11:15 +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
067501cbe7
Native window decorations: avoid double window title bar if enabling native window border failed (issue #315 )
2021-04-23 21:12:40 +02:00
Karl Tauber
9fe0cf496b
Native window decorations: updated DLLs (issue #315 )
...
built by GitHub Actions:
https://github.com/JFormDesigner/FlatLaf/actions/runs/778322373
2021-04-23 18:23:44 +02:00
Karl Tauber
988d171bdd
fixed javadoc warnings/errors when building with Java 15
2021-04-22 16:20:50 +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
Karl Tauber
1c52f1f76c
CheckBox and RadioButton: do not fill background if used as cell renderer, except if cell is selected or has different background color (issue #311 )
2021-04-22 00:14:42 +02:00
Karl Tauber
4f2256f713
TableHeader: Moved table header column border painting from FlatTableHeaderUI to new border FlatTableHeaderBorder to improve compatibility with custom table header implementations (issue #228 )
2021-04-14 19:34:44 +02:00
Karl Tauber
46ac7a9dc7
IntelliJ Themes: fixed background colors of DesktopPane and DesktopIcon in all themes
2021-04-11 19:39:47 +02:00
Karl Tauber
0d86d39217
IntelliJ Themes: minor fixes to text in progress bars for some themes
2021-04-11 18:59:23 +02:00
Karl Tauber
406eeaec96
PopupFactory: fixed occasional NullPointerException in FlatPopupFactory.fixToolTipLocation() (issue #305 )
2021-04-11 16:00:36 +02:00
Karl Tauber
2fe5652bc6
DesktopPane: automatically layout icons in dock (without invoking from DesktopManager), which eliminates the need for FlatDesktopManager
2021-04-11 15:10:59 +02:00
Karl Tauber
39bf68a6bd
DesktopIcon: automatically update preview (without invoking from DesktopManager)
2021-04-11 14:58:20 +02:00
Karl Tauber
a7a4a19824
DesktopIcon: use derived color for icon background, based on background color of JDesktopPane
2021-04-11 14:48:19 +02:00
Karl Tauber
7f906ba0ea
DesktopPane: fixed empty minimized icon when switching LaF (regression since commit ab1ce7fab16597c518dd00a4c4e86320d98410c1; see PR #294 )
2021-04-10 15:53:45 +02:00
Karl Tauber
07bf6e4506
DesktopPane: on HiDPI screens, use high-resolution images for preview of iconified internal frames in dock
2021-04-10 14:36:46 +02:00
Karl Tauber
a331760321
DesktopPane: made private methods/fields protected to allow overriding
2021-04-10 13:36:44 +02:00