01: /*
02: * JGoodiesThemes.java
03: *
04: * Created on 10. April 2005, 11:16
05: */
06:
07: package com.pagosoft.plaf.themes;
08:
09: import com.pagosoft.plaf.PgsTheme;
10:
11: import javax.swing.plaf.*;
12: import javax.swing.plaf.metal.*;
13: import java.awt.*;
14:
15: /**
16: * @author pago
17: */
18: public class JGoodiesThemes {
19: private JGoodiesThemes() {
20: }
21:
22: private static MetalTheme[] themes = new MetalTheme[21];
23:
24: public static MetalTheme getBrownSugar() {
25: if (themes[0] == null) {
26: themes[0] = new PgsTheme("Brown Sugar",
27: new ColorUIResource(83, 83, 61),
28: new ColorUIResource(115, 107, 82),
29: new ColorUIResource(156, 156, 123),
30:
31: new ColorUIResource(35, 33, 29),
32: new ColorUIResource(105, 99, 87),
33: new ColorUIResource(92, 87, 76),
34:
35: Color.WHITE, Color.BLACK);
36: }
37: return themes[0];
38: }
39:
40: public static MetalTheme getDarkStar() {
41: if (themes[1] == null) {
42: themes[1] = new PgsTheme("Dark Star", new ColorUIResource(
43: 83, 83, 61), new ColorUIResource(115, 107, 82),
44: new ColorUIResource(156, 156, 123),
45:
46: new ColorUIResource(32, 32, 32),
47: new ColorUIResource(96, 96, 96),
48: new ColorUIResource(84, 84, 84),
49:
50: Color.WHITE, Color.BLACK);
51: }
52: return themes[1];
53: }
54:
55: public static MetalTheme getDesertBlue() {
56: if (themes[2] == null) {
57: themes[2] = new PgsTheme("Desert Blue", Colors.GRAY_DARK,
58: Colors.BLUE_LOW_MEDIUM, Colors.BLUE_LOW_LIGHTEST,
59:
60: Colors.GRAY_MEDIUM, new ColorUIResource(148, 144,
61: 140), new ColorUIResource(211, 210, 204),
62:
63: Color.BLACK, Color.WHITE,
64:
65: new Object[] { "ScrollBar.thumbHighlight",
66: Colors.BLUE_LOW_LIGHTEST,
67: "ScrollBar.thumb", Colors.BLUE_MEDIUM_DARK,
68:
69: "ProgressBar.innerGradientStart",
70: Colors.BLUE_LOW_LIGHTEST,
71: "ProgressBar.innerGradientEnd",
72: Colors.BLUE_MEDIUM_DARK });
73: }
74: return themes[2];
75: }
76: }
|