01: /*
02: * Copyright 2005 Paul Hinds
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.tp23.antinstaller.renderer.swing.plaf;
17:
18: import javax.swing.plaf.ColorUIResource;
19: import javax.swing.plaf.metal.DefaultMetalTheme;
20:
21: /**
22: * @author Paul Hinds
23: * @version $Id: ModMetalTheme.java,v 1.4 2006/12/21 00:03:03 teknopaul Exp $
24: */
25: public class ModMetalTheme extends DefaultMetalTheme {
26:
27: private static final ColorUIResource primary1 = new ColorUIResource(
28: 102, 102, 102);
29: private static final ColorUIResource primary2 = new ColorUIResource(
30: 153, 153, 153);
31: private static final ColorUIResource primary3 = new ColorUIResource(
32: 204, 204, 204);
33:
34: private static final ColorUIResource secondary1 = new ColorUIResource(
35: 192, 192, 192);
36: private static final ColorUIResource secondary2 = new ColorUIResource(
37: 213, 213, 213);
38: private static final ColorUIResource secondary3 = new ColorUIResource(
39: 234, 234, 234);
40:
41: // these are blue in Metal Default Theme
42: protected ColorUIResource getPrimary1() {
43: return primary1;
44: }
45:
46: protected ColorUIResource getPrimary2() {
47: return primary2;
48: }
49:
50: protected ColorUIResource getPrimary3() {
51: return primary3;
52: }
53:
54: // these are gray in Metal Default Theme
55: protected ColorUIResource getSecondary1() {
56: return secondary1;
57: }
58:
59: protected ColorUIResource getSecondary2() {
60: return secondary2;
61: }
62:
63: protected ColorUIResource getSecondary3() {
64: return secondary3;
65: }
66:
67: }
|