Karl Tauber
d67cfc911b
CheckBox and RadioButton:
...
- added `CheckBox.icon.selectedBorderWidth`
- added `CheckBox.icon.disabledSelectedBorderWidth`
- added `CheckBox.icon.disabledSelectedBorderColor`
- added `CheckBox.icon.disabledSelectedBackground`
- changed `CheckBox.icon.focusWidth` from `int` `float`
2021-11-03 10:59:39 +01:00
Karl Tauber
1d39d34d7c
CheckBox and RadioButton:
...
- added `CheckBox.icon.hoverCheckmarkColor`
- added `CheckBox.icon.selectedHoverBorderColor`
- added `CheckBox.icon.pressedBorderColor`
- added `CheckBox.icon.selectedPressedBorderColor`
- added `CheckBox.icon.pressedCheckmarkColor`
- renamed `CheckBox.icon.selectedFocusedBorderColor` to `CheckBox.icon.focusedSelectedBorderColor`
- renamed `CheckBox.icon.selectedFocusedBackground` to `CheckBox.icon.focusedSelectedBackground`
- renamed `CheckBox.icon.selectedFocusedCheckmarkColor` to `CheckBox.icon.focusedCheckmarkColor`
- renamed `CheckBox.icon.selectedHoverBackground` to `CheckBox.icon.hoverSelectedBackground`
- renamed `CheckBox.icon.selectedPressedBackground` to `CheckBox.icon.pressedSelectedBackground`
- renamed `CheckBox.icon[filled].selectedFocusedBorderColor` to `CheckBox.icon[filled].focusedSelectedBorderColor`
- renamed `CheckBox.icon[filled].selectedFocusedBackground` to `CheckBox.icon[filled].focusedSelectedBackground`
- renamed `CheckBox.icon[filled].selectedFocusedCheckmarkColor` to `CheckBox.icon[filled].focusedCheckmarkColor`
- renamed `CheckBox.icon[filled].selectedHoverBackground` to `CheckBox.icon[filled].hoverSelectedBackground`
- renamed `CheckBox.icon[filled].selectedPressedBackground` to `CheckBox.icon[filled].pressedSelectedBackground`
(Note: this are incompatible changes!)
2021-10-31 17:39:48 +01:00
Karl Tauber
5f6013edd4
Theme Editor: Switches" preview:
...
- show indeterminate state for checkboxes
- removed "text" from checkboxes and radio buttons
2021-10-31 11:17:37 +01:00
Karl Tauber
dd80614465
ComboBox, Spinner, TextField and subclasses, CheckBox, RadioButton and Slider: support specifying width of borders
2021-10-30 14:02:49 +02:00
Karl Tauber
0e4fe4e9bb
Theme Editor: support platform and light/dark specific properties in preview
2021-10-26 18:46:08 +02:00
Karl Tauber
0156a9a9d5
Merge PR #401 : Text components: double/triple-click-and-drag selection improvements
2021-10-24 20:06:06 +02:00
Karl Tauber
3facbc0900
macOS: improved macOS support of Demo and Theme Editor:
...
- set application name that is used in screen menu bar
- enable dark window title bars if macOS is in dark mode
2021-10-24 17:05:50 +02:00
Karl Tauber
78cef1b3c7
Theme Editor:
...
- use class `FlatDesktop`
- hide "File > Exit" and "Help > About" on macOS
- enable macOS screen menu bar
2021-10-24 11:49:48 +02:00
Karl Tauber
d907c469ed
Theme Editor: renamed class FlatThemeEditor to FlatLafThemeEditor because this name is shown in macOS screen menu bar (and to be consistent with FlatLafDemo)
2021-10-24 11:43:28 +02:00
Karl Tauber
8fa1eae352
TextComponents: triple-click-and-drag now extends selection by whole lines
...
triple-click-and-drag does not work in theme editor because drag is enabled, anyway a triple-click now selects the whole line before dragging starts
2021-10-22 13:14:01 +02:00
Karl Tauber
e36f942129
TextComponents: double-click-and-drag now extends selection by whole words
2021-10-21 13:24:07 +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
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
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
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
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
3834d93c9d
ComboBox and Spinner:
...
- added `buttonSeparatorColor` and `buttonDisabledSeparatorColor`
- fixed styling of `borderColor` and `disabledBorderColor`
2021-10-01 13:43:24 +02:00
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
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
a4ea88f4be
UIDefaultsLoader: added if() function (inspired by Less CSS)
2021-09-26 23:54:06 +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
c5c0a3768a
Merge remote-tracking branch 'origin/main' into styling
2021-09-14 19:02: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
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
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
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
78a9cc1d0c
Theme Editor: fixed: editor was not focused after startup or when switching directory
2021-09-03 17:32:59 +02:00
Karl Tauber
dc33c26960
TextField: support leading and trailing icons (issue #368 )
2021-09-02 17:45:33 +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
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
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