- 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" ) );

View File

@@ -14,11 +14,6 @@
# limitations under the License.
#
#---- TabbedPane ----
#TabbedPane.selectedBackground = darken($TabbedPane.background,5%)
#---- FlatThemeEditorPane ----
FlatThemeEditorPane.background = #2b2b2b

View File

@@ -14,11 +14,6 @@
# limitations under the License.
#
#---- TabbedPane ----
#TabbedPane.selectedBackground = lighten($TabbedPane.background,5%)
#---- FlatThemeEditorPane ----
FlatThemeEditorPane.background = #fff