Karl Tauber
397c369114
Styling: renamed class FlatStyleSupport to FlatStylingSupport
2021-09-01 00:21:47 +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
b12c818862
Styling: support styling for recently merged changes
2021-08-31 16:12:03 +02:00
Karl Tauber
9118dcf925
Merge remote-tracking branch 'origin/main' into styling
...
# Conflicts:
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatButtonUI.java
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatInternalFrameUI.java
# flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTextFieldUI.java
2021-08-31 15:41:46 +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
19dba94064
IntelliJ Themes: removed deprecated install() methods
...
but keep them in the flatlaf-core for API compatibility in NetBeans plugin
2021-08-24 17:38:19 +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
97ca866ffa
OptionPane: fixed OptionPane.sameSizeButtons, which did not work as expected when setting to false
2021-08-23 16:53:23 +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
6578f25cc9
GitHub Actions: upload theme editor
2021-08-22 16:10: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
Karl Tauber
c6d1ed91a7
Menus: fixed missing modifiers flags in ActionEvent (issue #371 ; regression since FlatLaf 1.3)
2021-08-13 20:32:07 +02:00
Karl Tauber
a613a244f4
InternalFrame: double-click on icon in internal frame title bar now closes the internal frame (issue #374 )
2021-08-13 19:11:03 +02:00
Karl Tauber
268fe15004
Tree: improved support for JTree.getPathForLocation(int x, int y) in wide selection (issue #373 )
...
this is experimental and disabled by default; enable with:
`UIManager.put( "FlatLaf.experimental.tree.widePathForLocation", true );`
2021-08-13 00:19:34 +02:00
Karl Tauber
7bc9be686f
FlatLaf: use larger initial capacity for UI defaults table to avoid resizing hash table and to save some memory
2021-08-13 00:13:54 +02:00