Karl Tauber
e31e4dfe3a
Accent color: avoid that @accentXYZ variables depend on other @accentXYZ variables to allow independent modification
...
(issue #233 )
2021-09-27 12:31:49 +02:00
Karl Tauber
caf2cd8487
Accent color: fixed text colors if using light accent color
...
(issue #233 )
2021-09-27 12:24:45 +02:00
Karl Tauber
15c6f11a5e
Accent color:
...
- introduced @accentBaseColor variable that is now used as base for accent colors in Light/Dark/IntelliJ/Darcula themes, which use variations of the accent color
- @accentColor is now `null` by default, but if set to a color, then it is used unmodified for all accents
(issue #233 )
2021-09-26 23:56:56 +02:00
Karl Tauber
a4ea88f4be
UIDefaultsLoader: added if() function (inspired by Less CSS)
2021-09-26 23:54:06 +02:00
Karl Tauber
36d5747fbf
Accent color: changed javadoc since version from 1.6 to 2
2021-09-25 23:53:57 +02:00
Karl Tauber
d333d0c9e4
Accent color:
...
- Demo: added accent color switching to toolbar
- added `FlatLaf.setGlobalExtraDefaults()` for easy setting accent color at runtime
(issue #233 )
2021-08-31 14:06:41 +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
9b465cb550
Accent color: added FlatLaf.setExtraDefaults() for easy setting accent color at runtime (issue #233 )
2021-08-30 23:06:06 +02:00
Karl Tauber
9144b7206e
Accent color:
...
- added @accentXYZ variables that define all blueish accent colors
- all blueish accent colors are calculated based on @accentColor
(issue #233 )
2021-08-30 23:06:06 +02:00
Karl Tauber
dd14843f2e
Accent color: reduced number of individual blueish accent colors with color functions (issue #233 )
2021-08-30 23:06:06 +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