01: /*
02: * ElegantGrayTheme.java
03: *
04: * Created on 7. Mai 2005, 13:42
05: */
06:
07: package com.pagosoft.plaf.themes;
08:
09: import com.pagosoft.plaf.PgsTheme;
10:
11: import java.awt.*;
12:
13: /**
14: * @author Patrick Gotthardt
15: */
16: public class ElegantGrayTheme extends PgsTheme {
17: private static ElegantGrayTheme INSTANCE;
18:
19: public ElegantGrayTheme(String themeName, Color p1, Color p2,
20: Color p3, Color s1, Color s2, Color s3, Color bl, Color wh,
21: Object[] d) {
22: super (themeName, p1, p2, p3, s1, s2, s3, bl, wh, d);
23: }
24:
25: public static PgsTheme getInstance() {
26: if (INSTANCE == null) {
27: Color s1 = new Color(0x636363);
28: Color s2 = new Color(0x999999);
29: Color s3 = new Color(0xd4d0c8);
30: Color p1 = new Color(0x8795a1);
31: Color p2 = new Color(0x92bad9);
32: Color p3 = new Color(0xc1d6e6);
33:
34: Object[] d = new Object[] { "ToolBar.gradientStart", s3,
35: "ToolBar.gradientEnd", s2,
36: "ToolBarButton.rolloverBackground", s2,
37: "ToolBarButton.rolloverBorderColor", s1,
38: "ToolBarButton.isFlat", Boolean.FALSE,
39: "ToolBarButton.rolloverGradientStart", s2,
40: "ToolBarButton.rolloverGradientEnd", s2,
41: "ToolBarButton.selectedGradientStart", s2,
42: "ToolBarButton.selectedGradientEnd", s3 };
43:
44: INSTANCE = new ElegantGrayTheme("Elegant Gray", p1, p2, p3,
45: s1, s2, s3, Color.black, Color.white, d);
46: }
47: return INSTANCE;
48: }
49: }
|