
import ch.psi.pshell.ui.Plugin;
import java.awt.Color;
import java.util.logging.Level;
import javax.swing.UIManager;

public class DarkTheme implements Plugin{

    @Override
    public void onStart() {
         try {
         
             /*
         //set Nimbus Look And Feel
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
         //to nod display tabs
         UIManager.put("EditorTabDisplayerUI", "icare.ui.tweak.tab.NoTabsTabDisplayerUI");
         //because Nimbus LAF do not use opaque option, force it to allow painting of custom tab.
         //UIManager.put("TabbedPane.tabsOpaque", true);

        //set Nimbus LAF primary colors
         UIManager.put("control", new Color(114,114,114)); 
         UIManager.put("nimbusBase", new Color(64,64,64)); 
         UIManager.put("nimbusFocus", new Color(191,191,191)); 
         UIManager.put("nimbusLightBackground", new Color(176,176,176)); 
         UIManager.put("nimbusSelectionBackground", new Color(90,130,195)); 
         UIManager.put("text", new Color(0,0,0)); 
         */
UIManager.put( "control", new Color( 128, 128, 128) );
UIManager.put( "info", new Color(128,128,128) );
UIManager.put( "nimbusBase", new Color( 18, 30, 49) );
UIManager.put( "nimbusAlertYellow", new Color( 248, 187, 0) );
UIManager.put( "nimbusDisabledText", new Color( 128, 128, 128) );
UIManager.put( "nimbusFocus", new Color(115,164,209) );
UIManager.put( "nimbusGreen", new Color(176,179,50) );
UIManager.put( "nimbusInfoBlue", new Color( 66, 139, 221) );
UIManager.put( "nimbusLightBackground", new Color( 18, 30, 49) );
UIManager.put( "nimbusOrange", new Color(191,98,4) );
UIManager.put( "nimbusRed", new Color(169,46,34) );
UIManager.put( "nimbusSelectedText", new Color( 255, 255, 255) );
UIManager.put( "nimbusSelectionBackground", new Color( 104, 93, 156) );


//nager.put( "TabbedPane:TabbedPaneTab[Enabled+MouseOver].backgroundPainter", new Color( 230, 0, 0) );




         

        } 
         catch (Exception ex) {
            getLogger().log(Level.WARNING, null, ex);
        }

    }

    @Override
    public void onStop() {        
    }
    
}
