Karl Tauber
7a2808243c
Typography: Demo: make typography/fonts visible in "screen shot" mode; hide password fields and labels
2021-11-04 14:54:01 +01:00
Karl Tauber
1be84de26b
Typography: added thin/light/semibold fonts to demo
2021-11-04 12:48:46 +01:00
Karl Tauber
78e37f7ab4
Typography: since there is no thin font available on Windows, use "Segoe UI Light" (which looks thin IMHO) for thin.font and "Segoe UI Semilight" for light.font
2021-11-04 12:16:11 +01:00
Karl Tauber
f742f83834
Typography: added thin font/style
2021-10-26 13:16:52 +02:00
Karl Tauber
e6e4e53a73
Typography: added light and semibold font/style
2021-10-25 13:27:40 +02:00
Karl Tauber
7c594ba7a9
Typography: UIDefaultsDump: dumps updated on macOS Big Sur
2021-10-25 13:06:34 +02:00
Karl Tauber
d34619824c
Typography: support deriving font from any other font (was always from defaultFont) (issue #384 )
2021-10-17 16:54:05 +02:00
Karl Tauber
80297f113f
UIDefaultsLoader: detect string values, that start and end with '"', after determining value type from key to allow font values like "Roboto Mono"
2021-10-17 14:59:18 +02:00
Karl Tauber
80f51bfe1e
Theme Editor: fixed StackOverflowError when setting "defaultFont" to non-font value (e.g. defaultFont = #fff)
2021-10-17 14:43:12 +02:00
Karl Tauber
587f431ef4
Typography: added FlatFontsTest to quickly view all available fonts on the current system
2021-10-16 18:56:53 +02:00
Karl Tauber
e560f9cbd6
Typography: added typography/fonts preview to theme editor
2021-10-13 15:47:55 +02:00
Karl Tauber
80235d53f4
Typography: added FlatTypographyTest, which was used to compare various typography systems
2021-10-13 14:29:57 +02:00
Karl Tauber
892b9a732e
Typography: added typography/fonts to demo
2021-10-13 14:17:40 +02:00
Karl Tauber
d8a0a015e4
Typography: Extras: add labelType property to FlatLabel
2021-10-13 13:48:03 +02:00
Karl Tauber
e60e3b9fae
Typography: added monospaced font/style
2021-10-13 13:46:43 +02:00
Karl Tauber
6715f01b8c
Typography: use typography styles in demo, theme editor, etc
2021-10-13 11:48:28 +02:00
Karl Tauber
465af9bc41
Typography: added fonts/styles for headings and various text sizes
2021-10-13 10:53:37 +02:00
Karl Tauber
d10bcfc72f
Theme Editor: fixed StackOverflowError when adding "defaultFont" key to properties file
2021-10-12 23:50:45 +02:00
Karl Tauber
942e5b9cd1
IntelliJ Themes: do not ignore UI keys prefixed with [style] to allow using styles
2021-10-12 22:29:38 +02:00
Karl Tauber
51a90d32f8
support defining "defaultFont" in FlatLaf properties files (issue #384 )
2021-10-12 11:13:40 +02:00
Karl Tauber
ac46632e73
UIDefaultsLoader: do not detect string values that start and end with '"', but also contain ", as string (e.g. font value "Roboto Mono", "Ubuntu Mono")
2021-10-10 17:59:00 +02:00
Karl Tauber
1192bef1ae
Styling: use cache for parsed fonts, which is mostly used for fonts in CSS styles (e.g. font: bold +4) (issue 384)
2021-10-08 22:08:37 +02:00
Karl Tauber
b9ec382589
support defining fonts in FlatLaf properties files (issue #384 )
2021-10-08 20:23:54 +02:00
Karl Tauber
5ecf19ef4f
Styling: added styling properties that are likewise to client properties
...
(e.g. `buttonType: help` on `JButton` does the same as setting client property `JButton.buttonType` to `help`)
2021-10-07 14:22:47 +02:00
Karl Tauber
9636809b4d
CHANGELOG.md: added PR #388 (style classes)
2021-10-06 12:25:17 +02:00
Karl Tauber
ba1c1ed952
ToolBar: added arrowKeysOnlyNavigation to unit tests (issue #346 )
2021-10-06 00:04:49 +02:00
Karl Tauber
7452390614
ToolBar: support non-button components in arrow-keys-only navigation (issue #346 )
2021-10-05 23:11:53 +02:00
Karl Tauber
69042e42b7
ToolBar: support arrow-keys-only navigation within focusable buttons of toolbar:
...
- arrow keys move focus within toolbar (provided by `BasicToolBarUI`)
- tab-key moves focus out of toolbar
- if moving focus into the toolbar, focus recently focused toolbar button
(issue #346 )
2021-10-05 16:36:50 +02:00
Karl Tauber
1e93deab2a
ToolBar: fixed focus moving to next button when switching Laf and focusable buttons are enabled via CSS style focusableButtons: true
...
also avoid unnecessary invokation of `c.setFocusable()`
2021-10-05 15:34:23 +02:00
Karl Tauber
16ea809bb3
ToolBar: skip components with empty input map (e.g. JLabel) when using arrow keys to navigate in focusable buttons (related to issue #346 )
2021-10-05 12:15:51 +02:00
Karl Tauber
78aa4343b7
ColorFunctions: added lighten(), darken(), saturate(), desaturate() and spin()
2021-10-04 22:56:10 +02:00
Karl Tauber
6815109e15
ColorFunctions: moved methods applyFunctions() and clamp() down to nested classes
2021-10-04 22:41:32 +02:00
Karl Tauber
e34fbcec58
ToolBar: foolbars are no longer floatable by default
2021-10-04 15:31:55 +02:00
Karl Tauber
bb2a21270b
Theme Editor: added "Pick Color from Screen" action to "Edit" menu that allows picking a color from anywhere on screen and insert/change it at caret position
2021-10-04 12:44:03 +02:00
Karl Tauber
49b9ec9025
Theming improvements: updated CHANGELOG.md
2021-10-04 12:00:29 +02:00
Karl Tauber
a2e896e102
Merge PR #390 : Theming improvements
2021-10-04 11:55:18 +02:00
Karl Tauber
2e1ef647a9
Theming improvements:
...
- renamed `MenuItemCheckBox.icon.checkmarkColor` to `CheckBoxMenuItem.icon.checkmarkColor`
- renamed `MenuItemCheckBox.icon.disabledCheckmarkColor` to `CheckBoxMenuItem.icon.disabledCheckmarkColor`
(Note: this are incompatible changes!)
2021-10-03 23:28:53 +02:00
Karl Tauber
f0c314df80
Theming improvements:
...
- renamed `@disabledText` to `@disabledForeground`
- renamed `@textComponentBackground` to `@componentBackground`
- renamed `@textComponentMargin` to `@componentMargin`
- added `@disabledBackground`
(Note: this are incompatible changes!)
2021-10-03 23:15:51 +02:00
Karl Tauber
4db39828ef
Theming improvements: reordered variables and added comments
2021-10-02 00:53:54 +02:00
Karl Tauber
b2d40825ac
Theming improvements:
...
- reworked core themes
- reduced explicit colors by using color functions
- made it easier to create new themes
- avoid using colors from one component type for another component type
(except when useful; e.g. `Separator.foreground` is also used for other separators)
- HelpButton: use colors from Button (instead of from CheckBox.icon)
- ToolBar: improved "docking" and "floating" colors
2021-10-01 23:48:46 +02:00
Karl Tauber
6df5d3334e
Styling: test if() and contrast() functions in unit tests
2021-10-01 15:08:17 +02:00
Karl Tauber
0e982df90c
Styling:
...
- check for duplicate keys in StyleableInfos to find "overlapping" fields/properties (e.g. `borderColor` in `FlatBorder` and in `FlatComboBoxUI`)
- Button and ToggleButton: fixed styling `toolbar.spacingInsets`
2021-10-01 13:49:38 +02:00
Karl Tauber
3834d93c9d
ComboBox and Spinner:
...
- added `buttonSeparatorColor` and `buttonDisabledSeparatorColor`
- fixed styling of `borderColor` and `disabledBorderColor`
2021-10-01 13:43:24 +02:00
Karl Tauber
16920a5b82
Styling: added slider properties to tests
2021-09-30 11:39:02 +02:00
Karl Tauber
d66e35fdde
Styling: support enums
2021-09-30 10:40:43 +02:00
Karl Tauber
d93dde0a03
StringUtils:
...
- use new StringUtils.split(..., boolean trim, boolean excludeEmpty) where possible
- added substringTrimmed() and isTrimmedEmpty() to avoid temporary string allocation
2021-09-30 01:14:45 +02:00
Karl Tauber
2d232124dd
Merge PR #388 : Styling: basic support for "classes" (similar to CSS classes)
2021-09-30 00:06:34 +02:00
Karl Tauber
ac6702fcf7
Styling: Extras: add styleClass getter and setter to component classes
2021-09-29 23:56:41 +02:00
Karl Tauber
c4b016c9c8
Styling: support specifying multiple style classes in single string
2021-09-29 23:49:40 +02:00
Karl Tauber
6baa583a28
ColorFunctions: improved performance of mix(), tint() and shade() color functions
...
(used UIDefaultsDump to verify whether results are the same as before)
2021-09-28 19:48:54 +02:00