- support references in color functions
- added test for using color functions in styling
This commit is contained in:
Karl Tauber
2021-09-06 22:48:39 +02:00
parent fe15758e59
commit 08ca2aa266
7 changed files with 99 additions and 12 deletions

View File

@@ -131,7 +131,9 @@ class FlatThemeFileEditor
darkLafMenuItem.setSelected( true );
// highlight selected tab
tabbedPane.setStyle( "[light]selectedBackground: #fff; [dark]selectedBackground: #303234" );
tabbedPane.setStyle(
"[light]selectedBackground: lighten($TabbedPane.background,5%);" +
" [dark]selectedBackground: darken($TabbedPane.background,5%)" );
// add "+" button to tabbed pane
newButton = new JButton( new FlatSVGIcon( "com/formdev/flatlaf/themeeditor/icons/add.svg" ) );