1 package snow.lookandfeel; 2 3 import snow.utils.storage.AppProperties; 4 import snow.utils.gui.*; 5 6 import java.io.*; 7 import javax.swing.*; 8 import javax.swing.event.*; 9 import javax.swing.plaf.metal.*; 10 import javax.swing.plaf.*; 11 import java.awt.*; 12 import java.awt.event.*; 13 import java.util.*; 14 15 public final class CustomOceanTheme_Snow extends CustomOceanTheme 16 { 17 18 public CustomOceanTheme_Snow(AppProperties props) 19 { 20 super("Snow Theme", props, new ImageIcon(new SnowIcon(120,120).getIconAsImage())); 21 writeDefaults(); 22 } 23 24 26 public void writeDefaults() 27 { 28 this.setDefaultFont(this.FONT_ControlText, new FontUIResource("Dialog", Font.PLAIN, 10)); 29 this.setDefaultFont(this.FONT_System, new FontUIResource("Dialog", Font.PLAIN, 10)); 30 this.setDefaultFont(this.FONT_WindowTitle, new FontUIResource("Dialog", Font.BOLD, 11)); 31 this.setDefaultFont(this.FONT_UserText, new FontUIResource("SansSerif", Font.PLAIN, 10)); 32 this.setDefaultFont(this.FONT_SubText, new FontUIResource("Dialog", Font.PLAIN, 9)); 33 34 this.setDefaultColor(this.COLOR_White, new ColorUIResource(255, 255, 255 )); this.setDefaultColor(this.COLOR_BLACK, new ColorUIResource( 0, 0, 0 )); 38 39 40 55 56 } 58 59 77 78 public static void main(String [] aaa) 79 { 80 ThemesManager.main(aaa); 81 } 82 83 84 85 86 } | Popular Tags |