mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
Theme Editor: highlight selected editor tab
This commit is contained in:
@@ -52,6 +52,7 @@ import java.util.prefs.Preferences;
|
|||||||
import javax.lang.model.SourceVersion;
|
import javax.lang.model.SourceVersion;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import net.miginfocom.swing.*;
|
import net.miginfocom.swing.*;
|
||||||
|
import com.formdev.flatlaf.FlatClientProperties;
|
||||||
import com.formdev.flatlaf.FlatDarculaLaf;
|
import com.formdev.flatlaf.FlatDarculaLaf;
|
||||||
import com.formdev.flatlaf.FlatDarkLaf;
|
import com.formdev.flatlaf.FlatDarkLaf;
|
||||||
import com.formdev.flatlaf.FlatIntelliJLaf;
|
import com.formdev.flatlaf.FlatIntelliJLaf;
|
||||||
@@ -130,6 +131,10 @@ class FlatThemeFileEditor
|
|||||||
if( UIManager.getLookAndFeel() instanceof FlatDarkLaf )
|
if( UIManager.getLookAndFeel() instanceof FlatDarkLaf )
|
||||||
darkLafMenuItem.setSelected( true );
|
darkLafMenuItem.setSelected( true );
|
||||||
|
|
||||||
|
// highlight selected tab
|
||||||
|
tabbedPane.putClientProperty( FlatClientProperties.STYLE,
|
||||||
|
"[light]selectedBackground: #fff; [dark]selectedBackground: #303234" );
|
||||||
|
|
||||||
// add "+" button to tabbed pane
|
// add "+" button to tabbed pane
|
||||||
newButton = new JButton( new FlatSVGIcon( "com/formdev/flatlaf/themeeditor/icons/add.svg" ) );
|
newButton = new JButton( new FlatSVGIcon( "com/formdev/flatlaf/themeeditor/icons/add.svg" ) );
|
||||||
newButton.setToolTipText( "New Properties File" );
|
newButton.setToolTipText( "New Properties File" );
|
||||||
|
|||||||
Reference in New Issue
Block a user