Commit Graph

190 Commits

Author SHA1 Message Date
Karl Tauber
5288e0f54e introduced Component.innerFocusWidth UI default to allow "inner" focus border (e.g. if outer focus border width is zero)
currently zero in all themes because:
- undecided whether it is necessary
- not useful for "Flat IntelliJ" and "Flat Darcula" themes
- focused buttons in "Flat Light" theme already have light blue background
- does not work for components in scrollpanes (e.g. textarea)
2019-10-05 11:14:23 +02:00
Karl Tauber
c87f5cb05f Button: use bold font for default buttons in "Flat IntelliJ" and "Flat Darcula" themes 2019-10-05 11:03:18 +02:00
Karl Tauber
43429ddc39 hide label and button mnemonics on Mac (#4) 2019-10-04 19:26:09 +02:00
Karl Tauber
7ef598ded6 ComboBox: if not editable, then hover highlight arrow even if mouse is not in arrow button 2019-10-04 18:55:13 +02:00
Karl Tauber
37c70f6c9e Button: make icon-only buttons square (no minimum width, smaller left/right insets) 2019-10-04 18:18:53 +02:00
Karl Tauber
26a2446a4d FlatTestFrame: use same F-keys as in demo 2019-10-03 15:03:12 +02:00
Karl Tauber
771c949d74 Demo: update scale factor in info label when moving window to another screen 2019-10-03 14:49:11 +02:00
Karl Tauber
23d448d4fc FlatTestFrame: added scale factor combobox (Java 8 only) 2019-10-03 14:26:03 +02:00
Karl Tauber
86577c5fef FlatTestFrame: show scale factor in window title 2019-10-03 11:27:11 +02:00
Karl Tauber
3a69b41646 support specifying custom scale factor in system properties flatlaf.uiScale or sun.java2d.uiScale. E.g. -Dflatlaf.uiScale=1.5. (Java 8 only) 2019-10-03 10:23:15 +02:00
Karl Tauber
2d26b6fa94 SplitPane: scale one-touch buttons 2019-10-02 23:28:05 +02:00
Karl Tauber
144f79f0f9 chevron arrows implemented (closes #7)
use chevron arrows in "Flat Light" and "Flat Dark" themes, but keep triangle arrows in "Flat IntelliJ" and "Flat Darcula" themes
2019-10-02 19:13:47 +02:00
Karl Tauber
8ea23fc533 removed ModuleDepsTest.java 2019-10-01 19:39:25 +02:00
Karl Tauber
ae714502fb temporary added ModuleDepsTest.java, which uses module java.sql, to test whether compiler reports errors on Travis CI 2019-10-01 19:34:45 +02:00
Karl Tauber
07d6755ddb JPMS: compile main sources with module-info.java to make sure that compiler reports errors if classes are used from other modules that are not specified in module dependencies (#1) 2019-10-01 19:31:43 +02:00
Karl Tauber
3847b14033 support Java Platform Module System (JPMS) (issue #1) 2019-10-01 17:34:18 +02:00
Karl Tauber
1ea9ac84dd FlatBorder: fixed javadoc error 2019-09-28 11:19:06 +02:00
Karl Tauber
fbfde043b3 ComboBox: made popup list wider if list item texts are longer than combo box width 2019-09-26 10:45:39 +02:00
Karl Tauber
84dc96d41a ComboBox: union padding and renderer border in popup list, which vertically aligns text in popup list with text in combobox 2019-09-26 10:27:51 +02:00
Karl Tauber
abe5b5cc08 ComboBox: add empty border to popup list renderer 2019-09-25 23:52:41 +02:00
Karl Tauber
95d6d68629 ComboBox: fixed vertical text alignment (with other components) and component height (when scaled) 2019-09-25 11:33:20 +02:00
Karl Tauber
d3ada57a50 UI inspector: show EmptyBorder insets 2019-09-25 11:17:17 +02:00
Karl Tauber
c782ed8adc UI inspector: show JMenuBar margins 2019-09-25 09:11:07 +02:00
Karl Tauber
c5ab5d636e added simple UI inspector to FlatTestFrame 2019-09-23 10:48:41 +02:00
Karl Tauber
e004401772 multi-line ToolTip 2019-09-21 18:12:58 +02:00
Karl Tauber
c4e0ef198f CheckBox: fixed background arc of checkmark 2019-09-18 11:53:00 +02:00
Karl Tauber
90af8c0ce8 Menus: scale defaultTextIconGap again if iconTextGap property has changed 2019-09-15 23:50:45 +02:00
Karl Tauber
b4b914de52 Label: scale iconTextGap 2019-09-15 23:14:30 +02:00
Karl Tauber
89b6a4e453 CheckBox and RadioButton: the icon size no longer includes the focusWidth and paints the outline focus border outside of the icon; this change makes sure that the check/radio icons are painted at the same position independent of the focusWidth 2019-09-15 23:05:15 +02:00
Karl Tauber
eff9c50571 Buttons: made iconTextGap configurable in properties files and scale it 2019-09-15 22:25:49 +02:00
Karl Tauber
bf03f57055 CheckBox and RadioButton: no longer extend Metal UI delegates 2019-09-15 18:59:08 +02:00
Karl Tauber
e7d1522434 FlatLaf: use constant for optional prefix 2019-09-15 16:57:09 +02:00
Karl Tauber
60d493d4ce Demo: improved layout of tabbed pane options 2019-09-15 16:55:27 +02:00
Karl Tauber
0015a48ceb SystemInfo: support larger maximum version numbers (was 255; now ‭65535‬) 2019-09-14 22:51:42 +02:00
Karl Tauber
af3367a119 Demo: register F9 key for Mac Aqua LaF; changed Fx keys for Metal and Nimbus 2019-09-14 22:36:51 +02:00
Karl Tauber
f7c8028243 List: fixed endless repainting if table is not focused 2019-09-14 22:19:42 +02:00
Karl Tauber
76f80b6bdf Table: fixed endless repainting if table is not focused 2019-09-14 22:18:17 +02:00
Karl Tauber
a09592cb0d Table: fixed wrong UI defaults 2019-09-14 21:40:39 +02:00
Karl Tauber
7aaf700d34 get UI defaults in shared instances only once (same as used in e.g. MetalRadioButtonUI)
Note: this optimization does not work when switching from one Flat LaF to another Flat LaF because UI uninstall/install is done per component
2019-09-14 21:23:33 +02:00
Karl Tauber
d8a9e3e3f0 support MigLayout visualPadding 2019-09-14 21:22:08 +02:00
Karl Tauber
938244e3cf Mac: default button should not follow focus 2019-09-13 23:57:13 +02:00
Karl Tauber
4c3f45a786 Spinner: hide editor border on Mac 2019-09-13 23:40:24 +02:00
Karl Tauber
9367e082a8 PasswordField: use other echoChar on Mac because the default is too large in SF font 2019-09-13 23:33:39 +02:00
Karl Tauber
1050acbb95 Mac: fixed margins and rollover 2019-09-13 23:31:19 +02:00
Karl Tauber
627cf1260f Mac: use Aqua as base LaF; initialize font to San Francisco 2019-09-13 23:10:26 +02:00
Karl Tauber
0acd633d3d List: use same mechanism as in FlatTableUI for inactive selection background/foreground 2019-09-13 15:37:06 +02:00
Karl Tauber
1cd30d42ad List: reduce painted cell width to preferred width in JFileChooser 2019-09-13 15:31:51 +02:00
Karl Tauber
b5dd25be5c Table: use inactive selection background/foreground if table is not focused 2019-09-13 15:23:58 +02:00
Karl Tauber
995a71e87b Tree: use inactive selection background/foreground if tree is not focused 2019-09-13 14:33:55 +02:00
Karl Tauber
09d84a12ae List: use inactive selection background/foreground if list is not focused 2019-09-13 14:32:50 +02:00