01: /*
02: * @(#)Office2003Theme.java
03: *
04: * Copyright 2002 - 2004 JIDE Software Inc. All rights reserved.
05: */
06: package com.jidesoft.plaf.office2003;
07:
08: import javax.swing.*;
09: import javax.swing.plaf.ColorUIResource;
10:
11: /**
12: */
13: public class Office2003Theme extends UIDefaults {
14: private String _themeName;
15:
16: public final Object[] _uiDefaultsSelection = new Object[] {
17: "selection.Rollover",
18: new ColorUIResource(255, 238, 194), // focused
19: "selection.RolloverLt", new ColorUIResource(255, 244, 204),
20: "selection.RolloverDk", new ColorUIResource(255, 208, 145),
21:
22: "selection.Selected",
23: new ColorUIResource(255, 192, 111), // selected;
24: "selection.SelectedLt", new ColorUIResource(255, 213, 140),
25: "selection.SelectedDk", new ColorUIResource(255, 173, 85),
26:
27: "selection.Pressed",
28: new ColorUIResource(254, 128, 62), // focused and selected;
29: "selection.PressedLt", new ColorUIResource(255, 211, 142),
30: "selection.PressedDk", new ColorUIResource(254, 145, 78) };
31:
32: public Office2003Theme(String themeName) {
33: _themeName = themeName;
34: putDefaults(_uiDefaultsSelection);
35: }
36:
37: public String getThemeName() {
38: return _themeName;
39: }
40:
41: public void setThemeName(String themeName) {
42: _themeName = themeName;
43: }
44: }
|