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
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
Karl Tauber
a6d318a197
Theme Editor: fixed missing keys (e.g. Button.foreground) in reference auto-completion, which are defined as wildcards or have some prefix
2021-08-27 22:32:59 +02:00
Karl Tauber
cd20f4086b
Theme Editor: fixed preview of focused button in FlatDarkLaf (and probably other null value related issues)
2021-08-27 18:32:42 +02:00
Karl Tauber
ebd5905947
Theme Editor: preview improvements:
...
- added JToolBar, JProgressBar with string painted, JDesktopPane and JInternalFrame
- placed text components side-by-side to save vertical space
- changed button texts and removed tooltips
- fixed painting of table cell focus border
- added missing add.svg
2021-08-27 16:10:10 +02:00
Karl Tauber
817a3c62bb
Theme Editor: preview improvements:
...
- fixed table header borders (runWithUIDefaultsGetter() in paint())
- cache lazy values
- use runWithUIDefaultsGetter() in layout(), validateTree() and paint()
2021-08-24 22:32:48 +02:00
Karl Tauber
f8f58400fe
Theme Editor: added list, tree and table to preview
2021-08-24 21:49:09 +02:00
Karl Tauber
ef06840649
Theme Editor: basic README.md with shapshot download link
2021-08-24 18:38:21 +02:00
Karl Tauber
b17c14d62e
Theme Editor: use UTF-8 encoding to load properties files
2021-08-24 17:50:03 +02:00
Karl Tauber
601e24f9e7
Theme Editor: fixed "..." in menus
2021-08-24 16:52:45 +02:00
Karl Tauber
c7f323ee13
Theme Editor: added window icon
2021-08-24 16:49:55 +02:00
Karl Tauber
e4522f3af4
Theme Editor: added "About" dialog
...
Demo: updated "About" dialog
2021-08-24 16:40:17 +02:00
Karl Tauber
79af461a5b
Theme Editor: instead of creating empty FlatLightLaf.properties and FlatDarkLaf.properties, add some how-to-use description to those files
2021-08-24 15:38:15 +02:00
Karl Tauber
2e8e07faf6
Theme Editor: auto-completion for keys improved:
...
- now also contains variables and keys defined in current and base themes
- appended " = "
- removes some unsupported keys (fonts and input maps)
2021-08-24 15:13:30 +02:00
Karl Tauber
ecdb000818
Theme Editor: avoid changing editor text (and adding item to undo history) when simply pressing OK button in "Insert Color" dialog without changing anything
2021-08-23 23:56:27 +02:00
Karl Tauber
999fd0d4da
Theme Editor: generate .java file when creating new theme
2021-08-23 23:52:22 +02:00
Karl Tauber
705dd9558f
Theme Editor:
...
- added "New Properties File" action to "File" menu
- added "+" button to tabbed pane
- ask to create .properties files when opening a directory that does not contain .properties files
- fixed Darcula baseTheme/preview
2021-08-23 23:02:41 +02:00
Karl Tauber
543b977db7
updated SVG icons from IntelliJ IDEA Community Edition to latest versions that include license header; added license header to SVGs where it were missing
2021-08-23 15:57:26 +02:00
Karl Tauber
ebb8a6d025
Theme Editor: ignore custom UI delegates in preview
2021-08-23 15:00:28 +02:00
Karl Tauber
506543281e
Theme Editor: "Insert Color" dialog now immediately updates editor with new color, which updates "live" preview; also save/restore location of dialog
2021-08-23 14:41:53 +02:00
Karl Tauber
60322be22a
Theme Editor: added "Insert Color" action to "Edit" menu that opens a color chooser dialog and inserts/edits a color at caret position
2021-08-23 14:06:18 +02:00
Karl Tauber
e1f30f24a8
Theme Editor: to toggle comment, add Ctrl+7 for German keyboards where Ctrl+/ does not work
2021-08-22 17:34:18 +02:00
Karl Tauber
1759f6b25c
Theme Editor: increment/decrement color parts (red, green, blue or alpha) at caret using Ctrl+UP/Ctrl+DOWN
2021-08-22 17:26:29 +02:00
Karl Tauber
8c26e0323f
Theme Editor: increment/decrement numbers at caret using Ctrl+UP/Ctrl+DOWN
2021-08-22 15:33:29 +02:00
Karl Tauber
a5575894ab
Theme Editor:
...
- update preview after 300ms (was 500ms)
- added separator between editor and preview
2021-08-22 14:26:18 +02:00
Karl Tauber
357823a027
Theme Editor: added "Show HSL/RGB colors" menu items to "View" menu to control display of color models in overlay color preview
2021-08-22 12:34:48 +02:00
Karl Tauber
a6d3f6b3eb
Theme Editor: added menu components to preview
2021-08-22 11:19:47 +02:00
Karl Tauber
ae4c69e75c
Theme Editor: fixed preview when switching Laf
2021-08-22 11:13:05 +02:00
Karl Tauber
31cadc532b
Theme Editor:
...
- F12 now activates editor if focus is in preview or in find/replace
- changed accelerators for light/dark themes from F11/F12 to Alt+F1/F2
2021-08-22 00:33:34 +02:00
Karl Tauber
6e8443473b
Theme Editor: special order for tabs: first core themes, then other themes
2021-08-21 23:27:43 +02:00
Karl Tauber
cca4ab3cd8
Theme Editor: fixed tabbed pane "more tabs" popup in preview
2021-08-21 18:24:57 +02:00
Karl Tauber
dab0ee3306
Theme Editor: added "live" preview
2021-08-21 18:09:59 +02:00