Files
cappuccino/Tools/capp/Resources/Templates/ThemeDescriptor/ThemeDescriptors.j
T
Alexandre Wilhelm 6aece1cf8c 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.
2015-03-03 22:50:39 -08:00

40 lines
942 B
Plaintext

/*
* ThemeDescriptors.j
* __project.name__
*
* Created by __user.name__ on __project.date__
* Copyright __project.year__, __organization.name__. All rights reserved.
*/
@import <BlendKit/BKThemeDescriptor.j>
@implementation __project.nameasidentifier__ThemeDescriptor : BKThemeDescriptor
+ (CPString)themeName
{
return @"__project.name__";
}
+ (CPButton)themedButton
{
var button = [[CPButton alloc] initWithFrame:CGRectMake(0.0, 0.0, 100.0, 20.0)];
var themedButtonValues =
[
[@"text-color", [CPColor redColor]],
[@"text-color", [CPColor yellowColor], CPThemeStateHighlighted],
[@"bezel-color", [CPColor blueColor]],
[@"bezel-color", [CPColor greenColor], CPThemeStateHighlighted],
];
[self registerThemeValues:themedButtonValues forView:button];
[button setTitle:@"Yikes!"];
return button;
}
@end