mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-06 18:57:12 +00:00
34 lines
664 B
Plaintext
34 lines
664 B
Plaintext
/*
|
|
* ThemeDescriptors.j
|
|
* __Product__
|
|
*
|
|
* Created by __Me__ on __Date__.
|
|
* Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
*/
|
|
|
|
@import <Foundation/CPObject.j>
|
|
|
|
|
|
@implementation __Product__ThemeDescriptor : CPObject
|
|
{
|
|
}
|
|
|
|
+ (CPString)themeName
|
|
{
|
|
return @"__Product__";
|
|
}
|
|
|
|
+ (CPTextField)themedTextField
|
|
{
|
|
var textField = [[CPTextField alloc] initWithFrame:CGRectMake(0.0, 0.0, 200.0, 20.0)];
|
|
|
|
[textField setValue:[CPColor blueColor] forThemedAttributeName:@"bezel-color"];
|
|
[textField setValue:[CPColor redColor] forThemedAttributeName:@"text-color"];
|
|
|
|
[textField setStringValue:@"Yikes!"];
|
|
|
|
return textField;
|
|
}
|
|
|
|
@end
|