1 /* 
2  * Copyright 2005 Paul Hinds
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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 */
16package org.tp23.antinstaller.renderer.swing.plaf;
17
18import javax.swing.plaf.ColorUIResource;
19import 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 */
25public 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        
35        private static final ColorUIResource secondary1 = new ColorUIResource(
36                                  192, 192, 192);
37        private static final ColorUIResource secondary2 = new ColorUIResource(
38                                  213, 213, 213);
39        private static final ColorUIResource secondary3 = new ColorUIResource(
40                                  234, 234, 234);
41
42
43        // these are blue in Metal Default Theme
44        protected ColorUIResource getPrimary1() { return primary1; } 
45        protected ColorUIResource getPrimary2() { return primary2; }
46        protected ColorUIResource getPrimary3() { return primary3; }
47
48        // these are gray in Metal Default Theme
49        protected ColorUIResource getSecondary1() { return secondary1; }
50        protected ColorUIResource getSecondary2() { return secondary2; }
51        protected ColorUIResource getSecondary3() { return secondary3; }
52
53}
54