Karl Tauber
82df2ecfa9
ComboBox: paint focus border if combobox component itself is focused (instead of internal text field) or if client property JComponent.focusOwner is set
...
Theme Editor:
- do not set client property `JComponent.focusOwner` on internal components of combobox and spinner
- repaint preview on window activation (necessary because if something changed in editor and switching to another app, the editor is saved and the preview is updated while the editor window is not-active, which hides all focus indicators)
2021-09-28 19:34:53 +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
b0edd5659f
Accent color: made accent focus border colors lighter/darker in IntelliJ/Darcula themes
...
(issue #233 )
2021-09-28 14:18:34 +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
e31e4dfe3a
Accent color: avoid that @accentXYZ variables depend on other @accentXYZ variables to allow independent modification
...
(issue #233 )
2021-09-27 12:31:49 +02:00
Karl Tauber
caf2cd8487
Accent color: fixed text colors if using light accent color
...
(issue #233 )
2021-09-27 12:24:45 +02:00
Karl Tauber
15c6f11a5e
Accent color:
...
- introduced @accentBaseColor variable that is now used as base for accent colors in Light/Dark/IntelliJ/Darcula themes, which use variations of the accent color
- @accentColor is now `null` by default, but if set to a color, then it is used unmodified for all accents
(issue #233 )
2021-09-26 23:56:56 +02:00
Karl Tauber
a4ea88f4be
UIDefaultsLoader: added if() function (inspired by Less CSS)
2021-09-26 23:54:06 +02:00
Karl Tauber
36d5747fbf
Accent color: changed javadoc since version from 1.6 to 2
2021-09-25 23:53:57 +02:00
Karl Tauber
cce91ea16d
changed multi-line javadoc since tags to single-line
2021-09-25 13:27:26 +02:00
Karl Tauber
d756041b06
Styling: fixed "Illegal reflective access" warning on stdout for BasicMenuItemUI fields when running on Java 9+
2021-09-22 23:40:10 +02:00
Karl Tauber
2d0eb0a05b
Styling: fixed build error on GitHub Actions
2021-09-22 23:15:00 +02:00
Karl Tauber
02f3239669
ComboBox (not editable): fixed background painted outside of border if round edges are enabled (similar to issue #382 ; regression since fixing #330 in FlatLaf 1.4)
2021-09-16 22:55:05 +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
c659638fb4
Styling: support styling for recently merged PR #378
2021-09-15 23:43:41 +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
263e6c34b5
Merge PR #341 : Styling individual components
2021-09-15 20:00:06 +02:00
Karl Tauber
eb62a3dc17
UI defaults inspector: avoid NPE if DerivedColorKeys.properties missing
2021-09-15 19:44:09 +02:00
Karl Tauber
161ee090a8
Tree: Fixed editing cell issue with custom cell renderer and cell editor that use same component for rendering and editing ( fixes #385 )
2021-09-15 19:39:44 +02:00
Karl Tauber
560ec437b9
Styling: avoid duplicate applying styles to buttons, labels and separators (which use shared UI delegates)
2021-09-15 10:57:52 +02:00
Karl Tauber
ccd0597b35
Styling: support styling for recently merged changes
2021-09-14 22:43:44 +02:00
Karl Tauber
c5c0a3768a
Merge remote-tracking branch 'origin/main' into styling
2021-09-14 19:02:21 +02:00
Karl Tauber
5aa2d24d58
added sigtest to flatlaf-core subproject to check for incompatible API changes in packages com.formdev.flatlaf and com.formdev.flatlaf.util
...
added FlatLaf 1.6 API signature (generated in clean workspace with gradle task `sigtestGenerate`)
2021-09-14 18:14:21 +02:00
Karl Tauber
ae28c595f9
release 1.6
1.6
2021-09-14 15:00:29 +02:00
Karl Tauber
1d08ddda60
InternalFrame: added missing since 1.6
2021-09-14 14:56:21 +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
7c9f550d4c
ComboBox: fixed popup location if shown above of combo box (Java 8 only)
2021-09-14 14:16:53 +02:00
Karl Tauber
84d4510d70
ComboBox: fixed popup border painting on HiDPI screens (e.g. at 150% scaling)
2021-09-14 12:46:51 +02:00
Karl Tauber
fa194ec258
TableHeader: fixed missing trailing vertical separator line if used in upper left corner of scroll pane (issue #332 )
2021-09-14 00:52:59 +02:00
Karl Tauber
fd56de403d
Slider: fixed calculation of baseline (see also PR #214 )
2021-09-13 22:05:48 +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
e0dddfceba
Styling: Menu: support top-level underline selection
2021-09-08 14:55:41 +02:00
Karl Tauber
bddef38a7c
Theme Editor: preview: added "editable" check box for text components
2021-09-08 00:22:02 +02:00
Karl Tauber
b5f2f77944
Theme Editor: layout of "All" preview tab improvements:
...
- right align "enabled" and "focused" check boxes
- two columns for controls
- removed help button
- JTextArea, JEditorPane and JTextPane in single line
- reduced some vertical gaps
2021-09-08 00:10:53 +02:00
Karl Tauber
fca0718ed0
Native window decorations: fixed unwanted uninstall of native window border when using JInternalFrame (which has its own JRootPane) and invoking updateUI() on internal frame (e.g. in preview of FlatLaf Theme Editor)
2021-09-07 17:55:45 +02:00
Karl Tauber
0d44ade6ea
Theme Editor: preview improvements:
...
- remember state of "enabled", "focused" and "buttonType" and sync it with all editors
- added "_" button near "JMenuBar" label to test menu underline selection
2021-09-07 14:31:09 +02:00
Karl Tauber
08ca2aa266
Styling:
...
- support references in color functions
- added test for using color functions in styling
2021-09-06 22:53:04 +02:00
Karl Tauber
fe15758e59
Styling: updated "since" javadoc tags
2021-09-06 15:39:19 +02:00
Karl Tauber
674efae184
Styling: Extras: add style getters and setters to component classes
2021-09-06 15:23:15 +02:00
Karl Tauber
4a65bc88d5
Theme Editor: highlight selected editor tab
2021-09-05 23:25:16 +02:00
Karl Tauber
a8f3d59729
Merge remote-tracking branch 'origin/main' into styling
...
# Conflicts:
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatListUI.java
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTableUI.java
2021-09-05 23:12:38 +02:00
Karl Tauber
6018f83a22
Theme Editor: center some labels and help buttons in preview
2021-09-05 22:15:49 +02:00
Karl Tauber
0b6247851b
Theme Editor: fixed preview of focused list and table selection
2021-09-05 22:05:21 +02:00
Karl Tauber
8640dee053
Theme Editor: preview improvements:
...
- added "focused" checkbox to "All" tab to preview focused components
- added "button type" selector to "Buttons" tab
- added "unfocused"/"focused" header labels to "Buttons" and "Switches" tabs
- use local variables instead of fields where possible
2021-09-05 21:08:36 +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
c2c79c4676
Theme Editor:
...
- remember last used preview tab
- sync selected preview tab with all editors
2021-09-05 11:13:29 +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
d508f339c1
TableHeader: do not show resize cursor for last column if resizing last column is not possible because auto resize mode of table is not off (issue #332 )
2021-09-04 18:20:21 +02:00
Karl Tauber
c7054537e7
Testing: FlatSingleComponentTest: support changing component orientation using Alt+R
2021-09-04 13:28:02 +02:00