| 1 |
/* |
| 2 |
* @(#)Office2003Theme.java |
| 3 |
* |
| 4 |
* Copyright 2002 - 2004 JIDE Software Inc. All rights reserved. |
| 5 |
*/ |
| 6 |
package com.jidesoft.plaf.office2003; |
| 7 |
|
| 8 |
import javax.swing.*; |
| 9 |
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", new ColorUIResource(255, 238, 194), // focused |
| 18 |
"selection.RolloverLt", new ColorUIResource(255, 244, 204), |
| 19 |
"selection.RolloverDk", new ColorUIResource(255, 208, 145), |
| 20 |
|
| 21 |
"selection.Selected", new ColorUIResource(255, 192, 111), // selected; |
| 22 |
"selection.SelectedLt", new ColorUIResource(255, 213, 140), |
| 23 |
"selection.SelectedDk", new ColorUIResource(255, 173, 85), |
| 24 |
|
| 25 |
"selection.Pressed", new ColorUIResource(254, 128, 62), // focused and selected; |
| 26 |
"selection.PressedLt", new ColorUIResource(255, 211, 142), |
| 27 |
"selection.PressedDk", new ColorUIResource(254, 145, 78) |
| 28 |
}; |
| 29 |
|
| 30 |
public Office2003Theme(String themeName) { |
| 31 |
_themeName = themeName; |
| 32 |
putDefaults(_uiDefaultsSelection); |
| 33 |
} |
| 34 |
|
| 35 |
public String getThemeName() { |
| 36 |
return _themeName; |
| 37 |
} |
| 38 |
|
| 39 |
public void setThemeName(String themeName) { |
| 40 |
_themeName = themeName; |
| 41 |
} |
| 42 |
} |