01: /*
02: * $RCSfile: VAInstallTheme.java,v $
03: * @modification $Date: 2001/09/28 19:41:42 $
04: * @version $Id: VAInstallTheme.java,v 1.1 2001/09/28 19:41:42 hfalk Exp $
05: *
06: */
07:
08: package com.memoire.vainstall.builder.util;
09:
10: import java.awt.Color;
11:
12: import javax.swing.*;
13: import javax.swing.plaf.*;
14: import javax.swing.plaf.metal.DefaultMetalTheme;
15:
16: /**
17: *
18: * @see
19: *
20: * @author Henrik Falk
21: * @version $Id: VAInstallTheme.java,v 1.1 2001/09/28 19:41:42 hfalk Exp $
22: */
23: public class VAInstallTheme extends DefaultMetalTheme {
24:
25: private final ColorUIResource primary1 = new ColorUIResource(102,
26: 153, 153);
27: private final ColorUIResource primary2 = new ColorUIResource(128,
28: 192, 192);
29: private final ColorUIResource primary3 = new ColorUIResource(159,
30: 235, 235);
31:
32: private static FontUIResource normalPlainFont = new FontUIResource(
33: new java.awt.Font("TimesRoman", java.awt.Font.PLAIN, 14));
34: private static FontUIResource normalBoldFont = new FontUIResource(
35: new java.awt.Font("TimesRoman", java.awt.Font.BOLD, 12));
36:
37: public VAInstallTheme() {
38: super ();
39: // UIManager.put("Panel.background",Color.white);
40: }
41:
42: /**
43: * Name of this Theme
44: */
45: public String getName() {
46: return "VAInstall";
47: }
48:
49: protected ColorUIResource getPrimary1() {
50: return primary1;
51: }
52:
53: protected ColorUIResource getPrimary2() {
54: return primary2;
55: }
56:
57: protected ColorUIResource getPrimary3() {
58: return primary3;
59: }
60:
61: public FontUIResource getControlTextFont() {
62: return normalPlainFont;
63: }
64:
65: public FontUIResource getSystemTextFont() {
66: return normalBoldFont;
67: }
68:
69: public FontUIResource getUserTextFont() {
70: return normalBoldFont;
71: }
72:
73: public FontUIResource getMenuTextFont() {
74: return normalBoldFont;
75: }
76:
77: public FontUIResource getWindowTitleFont() {
78: return normalBoldFont;
79: }
80:
81: public FontUIResource getSubTextFont() {
82: return normalBoldFont;
83: }
84:
85: }
|