001: /*
002: * Copyright (c) 2001-2005 JGoodies Karsten Lentzsch. All Rights Reserved.
003: *
004: * Redistribution and use in source and binary forms, with or without
005: * modification, are permitted provided that the following conditions are met:
006: *
007: * o Redistributions of source code must retain the above copyright notice,
008: * this list of conditions and the following disclaimer.
009: *
010: * o Redistributions in binary form must reproduce the above copyright notice,
011: * this list of conditions and the following disclaimer in the documentation
012: * and/or other materials provided with the distribution.
013: *
014: * o Neither the name of JGoodies Karsten Lentzsch nor the names of
015: * its contributors may be used to endorse or promote products derived
016: * from this software without specific prior written permission.
017: *
018: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
019: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
020: * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
021: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
022: * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
023: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
024: * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
025: * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
026: * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
027: * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
028: * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
029: */
030: package com.pagosoft.plaf.themes;
031:
032: import javax.swing.plaf.*;
033: import java.awt.*;
034:
035: /**
036: * Consists of base colors useful for building new color themes.
037: * <p/>
038: * The field names use the following naming convention:
039: * <color name>_<saturation>_<brightness>,
040: * for example: <code>BLUE_HIGH_LIGHT</code> and <code>GREEN_MEDIUM_LIGHTER</code>.<p>
041: * <p/>
042: * The saturation values are: <code>LOW</code>, <code>MEDIUM</code>,
043: * and <code>HIGH</code>. Brightness values are:
044: * <code>DARKEST</code>, <code>DARKER</code>, <code>DARK</code>,
045: * <code>MEDIUM</code>, <code>LIGHT</code>, <code>LIGHTER</code>,
046: * and <code>LIGHTEST</code>.
047: *
048: * @author Karsten Lentzsch
049: * @version $Revision: 1.2 $
050: */
051: final class Colors {
052:
053: // Gray Colors **********************************************************************
054:
055: static final ColorUIResource GRAY_DARKEST = new ColorUIResource(64,
056: 64, 64);
057: static final ColorUIResource GRAY_DARKER = new ColorUIResource(82,
058: 82, 82);
059: static final ColorUIResource GRAY_DARK = new ColorUIResource(90,
060: 90, 90);
061: static final ColorUIResource GRAY_MEDIUMDARK = new ColorUIResource(
062: 110, 110, 110);
063: static final ColorUIResource GRAY_MEDIUM = new ColorUIResource(128,
064: 128, 128);
065: static final ColorUIResource GRAY_MEDIUMLIGHT = new ColorUIResource(
066: 150, 150, 150);
067: static final ColorUIResource GRAY_LIGHT = new ColorUIResource(170,
068: 170, 170);
069: static final ColorUIResource GRAY_LIGHTER = new ColorUIResource(
070: 220, 220, 220);
071: static final ColorUIResource GRAY_LIGHTER2 = new ColorUIResource(
072: 230, 230, 230);
073: static final ColorUIResource GRAY_LIGHTEST = new ColorUIResource(
074: 240, 240, 240);
075:
076: // Brown Colors *********************************************************************
077:
078: static final ColorUIResource BROWN_LIGHTEST = new ColorUIResource(
079: 242, 241, 238);
080:
081: // Blue Colors *********************************************************************
082:
083: static final ColorUIResource BLUE_LOW_MEDIUM = new ColorUIResource(
084: 166, 202, 240);
085: static final ColorUIResource BLUE_LOW_LIGHTEST = new ColorUIResource(
086: 195, 212, 232);
087:
088: static final ColorUIResource BLUE_MEDIUM_DARKEST = new ColorUIResource(
089: 44, 73, 135);
090: static final ColorUIResource BLUE_MEDIUM_DARK = new ColorUIResource(
091: 49, 106, 196);
092: static final ColorUIResource BLUE_MEDIUM_MEDIUM = new ColorUIResource(
093: 85, 115, 170); // 58, 110, 165);
094: static final ColorUIResource BLUE_MEDIUM_LIGHTEST = new ColorUIResource(
095: 172, 210, 248); //189, 220, 251); //153, 179, 205);
096:
097: // Green Colors *********************************************************************
098:
099: static final ColorUIResource GREEN_LOW_DARK = new ColorUIResource(
100: 75, 148, 75);
101: static final ColorUIResource GREEN_LOW_MEDIUM = new ColorUIResource(
102: 112, 190, 112);
103: static final ColorUIResource GREEN_LOW_LIGHTEST = new ColorUIResource(
104: 200, 222, 200);
105:
106: static final ColorUIResource GREEN_CHECK = new ColorUIResource(33,
107: 161, 33);
108:
109: // Pink Colors **********************************************************************
110:
111: static final ColorUIResource PINK_HIGH_DARK = new ColorUIResource(
112: 128, 0, 128); //192, 0, 192);
113: static final ColorUIResource PINK_LOW_DARK = new ColorUIResource(
114: 128, 70, 128); //192, 0, 192);
115: static final ColorUIResource PINK_LOW_MEDIUM = new ColorUIResource(
116: 190, 150, 190);
117: static final ColorUIResource PINK_LOW_LIGHTER = new ColorUIResource(
118: 233, 207, 233);
119:
120: // Red Colors **********************************************************************
121:
122: static final ColorUIResource RED_LOW_DARK = new ColorUIResource(
123: 128, 70, 70);
124: static final ColorUIResource RED_LOW_MEDIUM = new ColorUIResource(
125: 190, 112, 112);
126: static final ColorUIResource RED_LOW_LIGHTER = new ColorUIResource(
127: 222, 200, 200);
128:
129: // Yellow Colors *******************************************************************
130:
131: static final ColorUIResource YELLOW_LOW_MEDIUMDARK = new ColorUIResource(
132: 182, 149, 18);
133: static final ColorUIResource YELLOW_LOW_MEDIUM = new ColorUIResource(
134: 244, 214, 96);
135: static final ColorUIResource YELLOW_LOW_LIGHTEST = new ColorUIResource(
136: 249, 225, 131);
137:
138: // Focus Colors *********************************************************************
139:
140: static final ColorUIResource BLUE_FOCUS = BLUE_MEDIUM_LIGHTEST;
141: static final ColorUIResource ORANGE_FOCUS = new ColorUIResource(
142: 245, 165, 16);
143: static final ColorUIResource YELLOW_FOCUS = new ColorUIResource(
144: 255, 223, 63);
145: static final ColorUIResource GRAY_FOCUS = new ColorUIResource(
146: Color.LIGHT_GRAY);
147: }
|