01: package net.sourceforge.squirrel_sql.client.gui.laf;
02:
03: /*
04: * Copyright (c) 2002 Karsten Lentzsch. All Rights Reserved.
05: *
06: * This software is the proprietary information of Karsten Lentzsch.
07: * Use is subject to license terms.
08: *
09: * From an email from Karsten Lentzsch "I have attached a class for my theme
10: * "All Blues - Bold" and grant you a license to use it in Squirrel."
11: */
12: import javax.swing.plaf.ColorUIResource;
13: import javax.swing.plaf.metal.DefaultMetalTheme;
14:
15: import net.sourceforge.squirrel_sql.fw.util.StringManager;
16: import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
17:
18: public class AllBluesBoldMetalTheme extends DefaultMetalTheme {
19: private static final StringManager s_stringMgr = StringManagerFactory
20: .getStringManager(AllBluesBoldMetalTheme.class);
21:
22: // light blue colors
23: private final ColorUIResource primary1 = new ColorUIResource(44,
24: 73, 135);
25: private final ColorUIResource primary2 = new ColorUIResource(85,
26: 115, 170); // 58, 110, 165);
27: private final ColorUIResource primary3 = new ColorUIResource(172,
28: 210, 248); //189, 220, 251); //153, 179, 205);
29:
30: private final ColorUIResource secondary1 = new ColorUIResource(110,
31: 110, 110);
32: private final ColorUIResource secondary2 = new ColorUIResource(170,
33: 170, 170);
34: private final ColorUIResource secondary3 = new ColorUIResource(220,
35: 220, 220);
36:
37: public String getName() {
38: // i18n[AllBluesBoldMetalTheme.name=All Blues - Bold]
39: return s_stringMgr.getString("AllBluesBoldMetalTheme.name");
40: }
41:
42: public ColorUIResource getMenuItemSelectedBackground() {
43: return getPrimary2();
44: }
45:
46: public ColorUIResource getMenuItemSelectedForeground() {
47: return getWhite();
48: }
49:
50: public ColorUIResource getMenuSelectedBackground() {
51: return getSecondary2();
52: }
53:
54: protected ColorUIResource getPrimary1() {
55: return primary1;
56: }
57:
58: protected ColorUIResource getPrimary2() {
59: return primary2;
60: }
61:
62: protected ColorUIResource getPrimary3() {
63: return primary3;
64: }
65:
66: protected ColorUIResource getSecondary1() {
67: return secondary1;
68: }
69:
70: protected ColorUIResource getSecondary2() {
71: return secondary2;
72: }
73:
74: protected ColorUIResource getSecondary3() {
75: return secondary3;
76: }
77:
78: }
|