001: package snow.lookandfeel;
002:
003: import snow.utils.storage.AppProperties;
004: import snow.utils.gui.*;
005:
006: import java.io.*;
007: import javax.swing.*;
008: import javax.swing.event.*;
009: import javax.swing.plaf.metal.*;
010: import javax.swing.plaf.*;
011: import java.awt.*;
012: import java.awt.event.*;
013: import java.util.*;
014:
015: public class CustomOceanTheme_Forest extends CustomOceanTheme {
016: public static final String name = "Forest Theme";
017:
018: public CustomOceanTheme_Forest(AppProperties props) {
019: super ("Forest Theme", props, null); //new SnowIcon(200,200));
020: writeDefaults();
021: }
022:
023: /** Writes the defaults in the inifile.
024: */
025: @Override
026: public void writeDefaults() {
027: this .setDefaultFont(this .FONT_ControlText, new FontUIResource(
028: "Dialog", Font.PLAIN, 10));
029: this .setDefaultFont(this .FONT_System, new FontUIResource(
030: "Dialog", Font.PLAIN, 10));
031: this .setDefaultFont(this .FONT_WindowTitle, new FontUIResource(
032: "Dialog", Font.BOLD, 11));
033: this .setDefaultFont(this .FONT_UserText, new FontUIResource(
034: "SansSerif", Font.PLAIN, 10));
035: this .setDefaultFont(this .FONT_SubText, new FontUIResource(
036: "Dialog", Font.PLAIN, 9));
037:
038: // Colors
039: //
040:
041: // textfield background
042: this .setDefaultColor(this .COLOR_White, new ColorUIResource(15,
043: 120, 15)); // dark green
044: this .setDefaultColor(this .COLOR_BLACK, new ColorUIResource(10,
045: 00, 10));
046:
047: // Title back2, ext frame borders
048: this .setDefaultColor(this .COLOR_Primary1, new ColorUIResource(
049: 84, 103, 83));
050: // Combobox selections, table, tree selections
051: this .setDefaultColor(this .COLOR_Primary2, new ColorUIResource(
052: 50, 67, 58));
053: // title back, border of buttons when mouse over, tree selections
054: this .setDefaultColor(this .COLOR_Primary3, new ColorUIResource(
055: 3, 165, 33));
056:
057: // all components border
058: this .setDefaultColor(this .COLOR_Secondary1,
059: new ColorUIResource(15, 63, 15));
060: // clicked background, focus checkbox, second button gradient
061: this .setDefaultColor(this .COLOR_Secondary2,
062: new ColorUIResource(48, 63, 48));
063: // panel background
064: this .setDefaultColor(this .COLOR_Secondary3,
065: new ColorUIResource(40, 130, 55));
066:
067: this .setDefaultColor(this .COLOR_DesktopColor,
068: new ColorUIResource(5, 55, 5)); // dark green
069:
070: this .setDefaultColor(this .COLOR_ControlText,
071: new ColorUIResource(0, 0, 0)); // black
072:
073: }
074:
075: /*
076: public void addCustomEntriesToTable(UIDefaults table)
077: {
078:
079: super.addCustomEntriesToTable(table);
080:
081: java.util.List buttonGradient = Arrays.asList(
082: new Object[] { new Float(.3f), new Float(0f),
083: new ColorUIResource(0xDDE8F3),
084: this.getSecondary3(),
085: getSecondary2() }); // default: white & secondary2 !!!
086:
087: UIManager.put("Button.gradient", buttonGradient);
088: UIManager.put("CheckBox.gradient", buttonGradient);
089: //UIManager.put("CheckBox.foreground", new ColorUIResource(Color.red));
090: //UIManager.put("Tree.rightChildIndent", 15);
091:
092: } */
093:
094: @Override
095: public void addCustomEntriesToTable(UIDefaults table) {
096: super .addCustomEntriesToTable(table);
097: }
098: /*
099: public static void main(String[] aaa)
100: {
101: ThemesManager.main(aaa);
102: }*/
103: }
|