KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jgoodies > looks > plastic > theme > Colors


1 /*
2  * Copyright (c) 2001-2005 JGoodies Karsten Lentzsch. All Rights Reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are met:
6  *
7  * o Redistributions of source code must retain the above copyright notice,
8  * this list of conditions and the following disclaimer.
9  *
10  * o Redistributions in binary form must reproduce the above copyright notice,
11  * this list of conditions and the following disclaimer in the documentation
12  * and/or other materials provided with the distribution.
13  *
14  * o Neither the name of JGoodies Karsten Lentzsch nor the names of
15  * its contributors may be used to endorse or promote products derived
16  * from this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
27  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  */

30
31 package com.jgoodies.looks.plastic.theme;
32
33 import java.awt.Color JavaDoc;
34
35 import javax.swing.plaf.ColorUIResource JavaDoc;
36
37
38 /**
39  * Consists of base colors useful for building new color themes.
40  * <p>
41  * The field names use the following naming convention:
42  * &lt;color name&gt;_&lt;saturation&gt;_&lt;brightness&gt;,
43  * for example: <code>BLUE_HIGH_LIGHT</code> and <code>GREEN_MEDIUM_LIGHTER</code>.<p>
44  *
45  * The saturation values are: <code>LOW</code>, <code>MEDIUM</code>,
46  * and <code>HIGH</code>. Brightness values are:
47  * <code>DARKEST</code>, <code>DARKER</code>, <code>DARK</code>,
48  * <code>MEDIUM</code>, <code>LIGHT</code>, <code>LIGHTER</code>,
49  * and <code>LIGHTEST</code>.
50  *
51  * @author Karsten Lentzsch
52  * @version $Revision: 1.2 $
53  */

54 final class Colors {
55     
56     // Gray Colors **********************************************************************
57

58     static final ColorUIResource JavaDoc GRAY_DARKEST = new ColorUIResource JavaDoc( 64, 64, 64);
59     static final ColorUIResource JavaDoc GRAY_DARKER = new ColorUIResource JavaDoc( 82, 82, 82);
60     static final ColorUIResource JavaDoc GRAY_DARK = new ColorUIResource JavaDoc( 90, 90, 90);
61     static final ColorUIResource JavaDoc GRAY_MEDIUMDARK = new ColorUIResource JavaDoc(110, 110, 110);
62     static final ColorUIResource JavaDoc GRAY_MEDIUM = new ColorUIResource JavaDoc(128, 128, 128);
63     static final ColorUIResource JavaDoc GRAY_MEDIUMLIGHT = new ColorUIResource JavaDoc(150, 150, 150);
64     static final ColorUIResource JavaDoc GRAY_LIGHT = new ColorUIResource JavaDoc(170, 170, 170);
65     static final ColorUIResource JavaDoc GRAY_LIGHTER = new ColorUIResource JavaDoc(220, 220, 220);
66     static final ColorUIResource JavaDoc GRAY_LIGHTER2 = new ColorUIResource JavaDoc(230, 230, 230);
67     static final ColorUIResource JavaDoc GRAY_LIGHTEST = new ColorUIResource JavaDoc(240, 240, 240);
68
69
70     // Brown Colors *********************************************************************
71

72     static final ColorUIResource JavaDoc BROWN_LIGHTEST = new ColorUIResource JavaDoc(242, 241, 238);
73
74
75     // Blue Colors *********************************************************************
76

77     static final ColorUIResource JavaDoc BLUE_LOW_MEDIUM = new ColorUIResource JavaDoc(166, 202, 240);
78     static final ColorUIResource JavaDoc BLUE_LOW_LIGHTEST = new ColorUIResource JavaDoc(195, 212, 232);
79
80     static final ColorUIResource JavaDoc BLUE_MEDIUM_DARKEST = new ColorUIResource JavaDoc( 44, 73, 135);
81     static final ColorUIResource JavaDoc BLUE_MEDIUM_DARK = new ColorUIResource JavaDoc( 49, 106, 196);
82     static final ColorUIResource JavaDoc BLUE_MEDIUM_MEDIUM = new ColorUIResource JavaDoc( 85, 115, 170); // 58, 110, 165);
83
static final ColorUIResource JavaDoc BLUE_MEDIUM_LIGHTEST = new ColorUIResource JavaDoc(172, 210, 248); //189, 220, 251); //153, 179, 205);
84

85
86     // Green Colors *********************************************************************
87

88     static final ColorUIResource JavaDoc GREEN_LOW_DARK = new ColorUIResource JavaDoc( 75, 148, 75);
89     static final ColorUIResource JavaDoc GREEN_LOW_MEDIUM = new ColorUIResource JavaDoc(112, 190, 112);
90     static final ColorUIResource JavaDoc GREEN_LOW_LIGHTEST = new ColorUIResource JavaDoc(200, 222, 200);
91
92     static final ColorUIResource JavaDoc GREEN_CHECK = new ColorUIResource JavaDoc( 33, 161, 33);
93     
94     
95     // Pink Colors **********************************************************************
96

97     static final ColorUIResource JavaDoc PINK_HIGH_DARK = new ColorUIResource JavaDoc(128, 0, 128); //192, 0, 192);
98
static final ColorUIResource JavaDoc PINK_LOW_DARK = new ColorUIResource JavaDoc(128, 70, 128); //192, 0, 192);
99
static final ColorUIResource JavaDoc PINK_LOW_MEDIUM = new ColorUIResource JavaDoc(190, 150, 190);
100     static final ColorUIResource JavaDoc PINK_LOW_LIGHTER = new ColorUIResource JavaDoc(233, 207, 233);
101     
102     
103     // Red Colors **********************************************************************
104

105     static final ColorUIResource JavaDoc RED_LOW_DARK = new ColorUIResource JavaDoc(128, 70, 70);
106     static final ColorUIResource JavaDoc RED_LOW_MEDIUM = new ColorUIResource JavaDoc(190, 112, 112);
107     static final ColorUIResource JavaDoc RED_LOW_LIGHTER = new ColorUIResource JavaDoc(222, 200, 200);
108     
109     
110     // Yellow Colors *******************************************************************
111

112     static final ColorUIResource JavaDoc YELLOW_LOW_MEDIUMDARK = new ColorUIResource JavaDoc(182, 149, 18);
113     static final ColorUIResource JavaDoc YELLOW_LOW_MEDIUM = new ColorUIResource JavaDoc(244, 214, 96);
114     static final ColorUIResource JavaDoc YELLOW_LOW_LIGHTEST = new ColorUIResource JavaDoc(249, 225, 131);
115
116     // Focus Colors *********************************************************************
117

118     static final ColorUIResource JavaDoc BLUE_FOCUS = BLUE_MEDIUM_LIGHTEST;
119     static final ColorUIResource JavaDoc ORANGE_FOCUS = new ColorUIResource JavaDoc(245, 165, 16);
120     static final ColorUIResource JavaDoc YELLOW_FOCUS = new ColorUIResource JavaDoc(255, 223, 63);
121     static final ColorUIResource JavaDoc GRAY_FOCUS = new ColorUIResource JavaDoc(Color.LIGHT_GRAY);
122     
123
124     
125 }
Popular Tags