View Javadoc

1   package net.sf.mmapps.applications.developer.plaf;
2   
3   import javax.swing.plaf.ColorUIResource;
4   import javax.swing.plaf.metal.DefaultMetalTheme;
5   /***
6    * minimal theme for MMBase developer based on the xmms Helix-Sawfish  theme
7    * @author Kees Jongenburger
8    * @version $Id: HelixTheme.java,v 1.1.1.1 2004/02/06 08:44:08 keesj Exp $
9    **/
10  public class HelixTheme extends DefaultMetalTheme{
11      public String getName() { return "Helix Theme";};
12      private final ColorUIResource primary1     = new ColorUIResource(43, 82, 124);
13      private final ColorUIResource primary2     = new ColorUIResource(182, 207, 237);//active stuff light blue
14      private final ColorUIResource primary3     = new ColorUIResource(189, 218, 189);
15      
16      /***
17      private final ColorUIResource secondary3   = new ColorUIResource(222, 218, 222);
18      private final ColorUIResource secondary2   = new ColorUIResource(156, 178, 205);
19      private final ColorUIResource secondary1   = new ColorUIResource(189, 218, 189);
20      **/
21  
22      private final ColorUIResource secondary1   = new ColorUIResource(0, 0, 0);//borders / default text
23      private final ColorUIResource secondary2   = new ColorUIResource(109, 124, 142);//black (borders)
24      private final ColorUIResource secondary3   = new ColorUIResource(222,218,213);//light grey  (moost backgrounds)
25      
26      // the functions overridden from the base class => DefaultMetalTheme
27      
28      protected ColorUIResource getPrimary1() { return primary1; }
29      protected ColorUIResource getPrimary2() { return primary2; }
30      protected ColorUIResource getPrimary3() { return primary3; }
31      
32      protected ColorUIResource getSecondary1() { return secondary1; }
33      protected ColorUIResource getSecondary2() { return secondary2; }
34      protected ColorUIResource getSecondary3() { return secondary3; }
35  
36      protected ColorUIResource getWhite(){ return new ColorUIResource(217, 249, 217);};
37      //ok
38      //public ColorUIResource getControl() { return new ColorUIResource(156, 178, 205); }
39  }