Commit Graph

236 Commits

Author SHA1 Message Date
Karl Tauber
bc10c4e871 Made JComboBox, JProgressBar, JSpinner and JXDatePicker non-opaque.
`JPasswordField`, `JScrollPane` and `JTextField` are non-opaque if they have
an outside focus border (e.g. IntelliJ and Darcula themes).
(issues #20 and #17)
2019-10-25 10:28:18 +02:00
Karl Tauber
8b8d84c2a3 TextField and PasswordField: reduced duplicate code 2019-10-24 20:47:31 +02:00
Karl Tauber
5743b5d59f CheckBox: removed accidentally checked in debug output 2019-10-24 18:07:22 +02:00
Karl Tauber
cfcbf3e61c CheckBox:
- compute focus border arc based on Component.focusWidth
- allow specifying border arc in UI defaults (CheckBox.arc)
2019-10-24 14:28:50 +02:00
Karl Tauber
7f43b3003c TriStateCheckBox component added 2019-10-24 12:36:40 +02:00
Karl Tauber
aeb80f862b build.gradle.kts: depend task "assemble" on "sourcesJar" and "javadocJar" so that they are built on Travic CI to file problems early (previously those tasks were build only just before publishing) 2019-10-23 17:06:25 +02:00
Karl Tauber
1de367e19e moved testing applications from src/test to new project flatlaf-testing (part 2) 2019-10-23 16:44:39 +02:00
Karl Tauber
62895a602f moved testing applications from src/test to new project flatlaf-testing (part 1) 2019-10-23 16:44:19 +02:00
Karl Tauber
7d72b13ac9 made JButton, JCheckBox, JRadioButton, JToggleButton and JSlider non-opaque (#20) 2019-10-23 10:36:33 +02:00
Karl Tauber
a2e21cb07b fixed Java 9 module descriptor (broken since 0.14) 2019-10-23 09:55:55 +02:00
Karl Tauber
06766cb4db Demo: missing SwingUtilities.invokeLater() added 2019-10-23 09:03:08 +02:00
Karl Tauber
0f38af5922 ComboBox: right-to-left fixes (#18) 2019-10-22 12:07:23 +02:00
Karl Tauber
4181759008 right-to-left fixes:
-Slider: colored track (if ticks and labels are hidden) was on the left side of the thumb
- ToolTip: multi-line text was not aligned to the right

(issue #18)
2019-10-21 22:12:51 +02:00
Karl Tauber
fff0e5e946 fixed FlatTestLaf (broken by commit 342b932f9e) 2019-10-21 20:11:35 +02:00
Karl Tauber
342b932f9e ToolTip:
- Improved styling of dark tooltips (darker background, no border).
- increased top and bottom margins
- use brighter color in light theme
- Fixed colors in tooltips of disabled components. (issue #15)
2019-10-21 18:07:43 +02:00
Karl Tauber
964dc14a8a ComboBox: fixed NPE in combobox with custom renderer after switching to FlatLaf (#16; regression in 0.14) 2019-10-21 17:04:23 +02:00
Karl Tauber
714c6e2920 TextField and PasswordField: fixed minimum width if focusWidth > 2 and not having a FlatBorder 2019-10-20 22:17:15 +02:00
Karl Tauber
f9d2312b3a ComboBox: fixed StackOverflowError when switching LaF (#14) 2019-10-20 20:04:10 +02:00
Karl Tauber
41ecbccc76 EditorPane and TextPane: fixed font and text color when using HTML content (#9) 2019-10-20 18:17:47 +02:00
Karl Tauber
0a86d00c1e FlatLaf: allow specifying value type in value for cases where auto-detecting value type from key or value does not work 2019-10-19 13:47:53 +02:00
Karl Tauber
0970dceee2 SwingX: JXDatePicker support (#8) 2019-10-19 09:35:01 +02:00
Karl Tauber
ffef71d6db OptionPane: fixed rendering of longer HTML text (#12) 2019-10-18 18:41:14 +02:00
Karl Tauber
212ff012d6 SwingX: JXTaskPaneContainer and JXTaskPane support (#8) 2019-10-18 10:31:24 +02:00
Karl Tauber
7c77b857f6 SwingX: added test app 2019-10-17 12:09:22 +02:00
Karl Tauber
423c01074a SwingX: flatlaf-swingx subproject created; JXHyperlink support (#8) 2019-10-17 11:21:23 +02:00
Karl Tauber
2dbd584e28 use KeyEventPostProcessor instead of AWTEventListener for listening for Alt key pressed (similar to WindowLookAndFeel) (#4) 2019-10-16 19:42:55 +02:00
Karl Tauber
250f435ceb build.gradle.kts: moved jcenter to root script 2019-10-16 19:39:41 +02:00
Karl Tauber
fa4e409555 ToolBar: disable focusability of buttons in toolbar 2019-10-15 19:00:51 +02:00
Karl Tauber
41df9859ad ComboBox: use small border if used as table editor 2019-10-15 10:41:28 +02:00
Karl Tauber
a8b8cbdf8c FlatTestFrame: reduced duplicate code 2019-10-14 17:55:38 +02:00
Karl Tauber
873e8604ce added developer information to Maven POM for Maven Central publishing 2019-10-13 21:37:49 +02:00
Karl Tauber
b49eff348d Linux: support KDE (#2)
The Swing fonts are not updated when the user changes system font size (System Settings > Fonts > Force Font DPI). A application restart is necessary. This is the same behavior as in native KDE applications.

tested on Kubuntu 19.04
2019-10-13 17:48:46 +02:00
Karl Tauber
42d801f123 Linux:
- allow user scaling mode on Linux even if running in Java 9+
- update fonts (and scaling) when user changes text size or scaling in Gnome settings

(#1)
2019-10-13 14:15:37 +02:00
Karl Tauber
5e33182de3 Windows: update fonts (and scaling) when user changes Windows text size 2019-10-12 20:14:18 +02:00
Karl Tauber
012d86066d UI inspector: fixed NPE and use anti-aliasing for painting line border on Java 9+ for better results when scaled 2019-10-12 13:43:43 +02:00
Karl Tauber
ff510095a3 UIScale: renamed some methods (to avoid confusion) 2019-10-12 13:42:05 +02:00
Karl Tauber
10283d022f Linux: initialize font (#2) 2019-10-12 10:44:11 +02:00
Karl Tauber
87845fc6f5 added Flat*Laf.install() methods 2019-10-10 10:34:40 +02:00
Karl Tauber
49a574a8d7 macOS: use native screen menu bar if system property apple.laf.useScreenMenuBar is true 2019-10-08 23:41:51 +02:00
Karl Tauber
230bc28ddd changed Maven groupId to com.formdev and artifactId to flatlaf 2019-10-08 13:25:59 +02:00
Karl Tauber
8806cc8e93 Button: changed styling of default button in "Flat Light" theme (wide blue border instead of blue background) 2019-10-05 14:58:49 +02:00
Karl Tauber
2da0ca736f hide label, button and tab mnemonics by default and show them only when Alt is pressed (closes #4) 2019-10-05 11:46:22 +02:00
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