Fixed: changed default template for the generate ThemeDescriptor

Previously, the default template generated by capp gen for a new themeDescriptor project was not similar as the themeDescriptor of Aristo1 or 2.
This could confuse new developer who would like to create a new theme.
This commit is contained in:
Alexandre Wilhelm committed 2015-03-03 22:50:39 -08:00
1 parent 63f634af00
commit 6aece1cf8c
1 file changed
+9 -4
@@ -20,11 +20,16 @@
{
var button = [[CPButton alloc] initWithFrame:CGRectMake(0.0, 0.0, 100.0, 20.0)];
[button setValue:[CPColor blueColor] forThemeAttribute:@"bezel-color"];
[button setValue:[CPColor greenColor] forThemeAttribute:@"bezel-color" inState:CPThemeStateHighlighted];
var themedButtonValues =
[
[@"text-color", [CPColor redColor]],
[@"text-color", [CPColor yellowColor], CPThemeStateHighlighted],
[button setValue:[CPColor redColor] forThemeAttribute:@"text-color"];
[button setValue:[CPColor yellowColor] forThemeAttribute:@"text-color" inState:CPThemeStateHighlighted];
[@"bezel-color", [CPColor blueColor]],
[@"bezel-color", [CPColor greenColor], CPThemeStateHighlighted],
];
[self registerThemeValues:themedButtonValues forView:button];
[button setTitle:@"Yikes!"];