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
Karl Tauber
b98b904023
added missing UI defaults to javadoc
2021-09-04 13:24:19 +02:00
Karl Tauber
253df9325d
Extras: FlatAnimatedLafChange: made animated Laf change transition smoother
2021-09-04 13:19:12 +02:00
Karl Tauber
78a9cc1d0c
Theme Editor: fixed: editor was not focused after startup or when switching directory
2021-09-03 17:32:59 +02:00
Karl Tauber
b25fcc3381
OptionPane: fixed rendering of longer HTML text if it is passed as StringBuilder, StringBuffer, or any other object that returns HTML text in method toString() (similar to issue #12 )
2021-09-03 11:26:30 +02:00
Karl Tauber
a2c0df5891
TextField: consider widths of leading and trailing icons for minimum/preferred text field size
2021-09-03 11:01:44 +02:00
Karl Tauber
dc33c26960
TextField: support leading and trailing icons (issue #368 )
2021-09-02 17:45:33 +02:00
Karl Tauber
51d7bc2c37
TextField, FormattedTextField, PasswordField and ComboBox: fixed alignment of placeholder text in right-to-left component orientation
2021-09-02 16:18:53 +02:00
Karl Tauber
cdbdccf1ad
Styling: support styling any component property that has public getter and setter methods
2021-09-01 13:32:31 +02:00
Karl Tauber
397c369114
Styling: renamed class FlatStyleSupport to FlatStylingSupport
2021-09-01 00:21:47 +02:00
Karl Tauber
6f9bbb184a
Styling: support specifying explicit value type for parsing CSS values (for future use)
2021-08-31 23:53:12 +02:00
Karl Tauber
b12c818862
Styling: support styling for recently merged changes
2021-08-31 16:12:03 +02:00
Karl Tauber
9118dcf925
Merge remote-tracking branch 'origin/main' into styling
...
# Conflicts:
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatButtonUI.java
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatInternalFrameUI.java
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTextFieldUI.java
2021-08-31 15:41:46 +02:00
Karl Tauber
d333d0c9e4
Accent color:
...
- Demo: added accent color switching to toolbar
- added `FlatLaf.setGlobalExtraDefaults()` for easy setting accent color at runtime
(issue #233 )
2021-08-31 14:06:41 +02:00
Karl Tauber
7f9cf6f45c
UIDefaultsLoader: added contrast() color function (inspired by Less CSS), which is useful to choose a foreground color that is readable, based on the luma (perceptual brightness) of a background color
2021-08-30 23:58:37 +02:00
Karl Tauber
9b465cb550
Accent color: added FlatLaf.setExtraDefaults() for easy setting accent color at runtime (issue #233 )
2021-08-30 23:06:06 +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
09a18b2305
Theme Editor:
...
- highlight opened directory in history combobox list
- support removing directories from history ('x' button in combobox list)
2021-08-29 18:39:40 +02:00
Karl Tauber
31f2feee2e
Theme Editor:
...
- special renderer for directory history combobox list that dimes path parts
- disable menu items and buttons if no directory or editor is open
- set editor font size when opening new editor if increased/decreased
2021-08-29 16:06:50 +02:00
Karl Tauber
218bb62bfd
Theme Editor:
...
- fixed increasing layout and wrong top border color of find/replace bar when switching Laf
- fixed duplicate keys in reference auto-completion
2021-08-29 14:28:11 +02:00
Karl Tauber
694c2ad767
Theme Editor: preview improvements:
...
- added JSplitPane (contains JList and JTree)
- sort first column in JTable to have preview of sort direction arrow
- fixed background color of JEditorPane and JTextPane when enabling/disabling
- keep first JMenu enabled, but disable the menu items
2021-08-29 11:44:38 +02:00
Karl Tauber
97943fcd38
Theme Editor: changed main class to com.formdev.flatlaf.themeeditor.FlatThemeEditor
2021-08-28 17:38:51 +02:00
Karl Tauber
77f33467d2
Theme Editor: fixed endless look in "replace all" when replacing e.g. "a" with "aa"
2021-08-28 17:37:02 +02:00
Karl Tauber
651454170d
Theme Editor:
...
- fixed duplicate lines action if selection includes line separator at the end
- preview: do not disable internal components of JInternalFrame
2021-08-28 14:30:11 +02:00
Karl Tauber
7ca48bd136
Theme Editor:
...
- support lazy values and icon colors in overlay color preview
- support icon colors in preview
- support icon colors in reference auto-completion
- support changing preview theme when editing FlatLaf.properties via adding `@baseTheme = dark|darcula|intellij`
2021-08-28 14:18:11 +02:00
Karl Tauber
968e508bb5
Theme Editor:
...
- change border color of find field to red if noting found/matches
- update search match highlighting after reloading file on external change
2021-08-27 22:53:04 +02:00