mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
manual test
This commit is contained in:
@@ -37,7 +37,8 @@
|
||||
[contentView addSubview:textField];
|
||||
|
||||
var shadowLabel = [CPTextField labelWithTitle:@"This text should have a shadow."],
|
||||
championOfLightLabel = [CPTextField labelWithTitle:@"This text should have no shadow."];
|
||||
championOfLightLabel = [CPTextField labelWithTitle:@"This text should have no shadow."],
|
||||
redLabel = [CPTextField labelWithTitle:@"This text should be white on a red background."];
|
||||
|
||||
[shadowLabel setTextColor:[CPColor blackColor]];
|
||||
[shadowLabel setTextShadowOffset:CGSizeMake(0, 1)];
|
||||
@@ -47,11 +48,16 @@
|
||||
[championOfLightLabel setTextShadowOffset:CGSizeMake(0, 1)];
|
||||
[championOfLightLabel setTextShadowColor:[CPColor clearColor]];
|
||||
|
||||
[redLabel setTextColor:[CPColor whiteColor]];
|
||||
[redLabel setTextFieldBackgroundColor:[CPColor redColor]];
|
||||
|
||||
[shadowLabel setFrame:CGRectMake(15, CGRectGetMaxY([textField frame]) + 10, 300, 18)];
|
||||
[championOfLightLabel setFrame:CGRectMake(15, CGRectGetMaxY([shadowLabel frame]) + 2, 300, 18)];
|
||||
[redLabel setFrame:CGRectMake(15, CGRectGetMaxY([championOfLightLabel frame]) + 10, 300, 18)];
|
||||
|
||||
[contentView addSubview:shadowLabel];
|
||||
[contentView addSubview:championOfLightLabel];
|
||||
[contentView addSubview:redLabel];
|
||||
|
||||
var jumpLabel = [CPTextField labelWithTitle:@"The text of these text fields should not move ('jump') when a field becomes the first responder. Labels on the right should replicate the input."];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user