Mercurial > hg > blitz_stable
comparison src/org/dancres/blitz/tools/dash/BlitzTheme.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 package org.dancres.blitz.tools.dash; | |
2 | |
3 import javax.swing.plaf.ColorUIResource; | |
4 import javax.swing.plaf.FontUIResource; | |
5 import javax.swing.plaf.metal.DefaultMetalTheme; | |
6 | |
7 public class BlitzTheme extends DefaultMetalTheme { | |
8 | |
9 public BlitzTheme() { | |
10 | |
11 } | |
12 | |
13 public String getName() { | |
14 return "Blitz"; | |
15 } | |
16 | |
17 public FontUIResource getControlTextFont() { | |
18 return controlFont; | |
19 } | |
20 | |
21 public FontUIResource getSystemTextFont() { | |
22 return systemFont; | |
23 } | |
24 | |
25 public FontUIResource getUserTextFont() { | |
26 return userFont; | |
27 } | |
28 | |
29 public FontUIResource getMenuTextFont() { | |
30 return controlFont; | |
31 } | |
32 | |
33 public FontUIResource getWindowTitleFont() { | |
34 return controlFont; | |
35 } | |
36 | |
37 public FontUIResource getSubTextFont() { | |
38 return smallFont; | |
39 } | |
40 | |
41 protected ColorUIResource getPrimary2() { | |
42 return primary2; | |
43 } | |
44 | |
45 protected ColorUIResource getPrimary3() { | |
46 return primary3; | |
47 } | |
48 | |
49 private final FontUIResource controlFont = new FontUIResource("Dialog", 0, 11); | |
50 private final FontUIResource systemFont = new FontUIResource("Dialog", 0, 11); | |
51 private final FontUIResource userFont = new FontUIResource("SansSerif", 0, 11); | |
52 private final FontUIResource smallFont = new FontUIResource("Dialog", 0, 10); | |
53 private final ColorUIResource primary2 = new ColorUIResource(68, 126, 183); | |
54 private final ColorUIResource primary3 = new ColorUIResource(153, 180, 255); | |
55 | |
56 | |
57 } |