mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-20 21:49:22 +00:00
label are white in CPPopoverTest if popover is HUD
This commit is contained in:
1 parent
916b9a399b
commit
28733ec592
1 file changed
+4
-5
@@ -23,7 +23,7 @@
|
||||
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
|
||||
contentView = [theWindow contentView];
|
||||
|
||||
button = [CPButton buttonWithTitle:@"click"];
|
||||
var button = [CPButton buttonWithTitle:@"click"];
|
||||
[button setTarget:self];
|
||||
[button setAction:@selector(open:)];
|
||||
[button setFrameOrigin:CPPointMake(10, 60)];
|
||||
@@ -35,7 +35,6 @@
|
||||
[button setFrameOrigin:CPPointMake( [contentView frameSize].width - 50, 60)];
|
||||
[contentView addSubview:button];
|
||||
|
||||
|
||||
button = [CPButton buttonWithTitle:@"click"];
|
||||
[button setTarget:self];
|
||||
[button setAction:@selector(open:)];
|
||||
@@ -55,6 +54,7 @@
|
||||
[button setCenter:[contentView center]];
|
||||
[contentView addSubview:button];
|
||||
|
||||
|
||||
buttonGravity = [[CPPopUpButton alloc] initWithFrame:CPRectMake(10, 10, 130, 24)];
|
||||
[buttonGravity addItemWithTitle:"Automatic"];
|
||||
[buttonGravity addItemWithTitle:"Bottom"];
|
||||
@@ -78,7 +78,6 @@
|
||||
[buttonBehaviour addItemWithTitle:"Not managed"];
|
||||
[contentView addSubview:buttonBehaviour];
|
||||
|
||||
|
||||
[theWindow orderFront:self];
|
||||
}
|
||||
|
||||
@@ -122,9 +121,9 @@
|
||||
|
||||
[label setFont:[CPFont boldSystemFontOfSize:30.0]];
|
||||
[label setFrameOrigin:CPPointMake(0, 70)];
|
||||
[label setValue:[CPColor colorWithHexString:@"fff"] forThemeAttribute:@"text-shadow-color"];
|
||||
[label setValue:(a == CPPopoverAppearanceHUD) ? [CPColor colorWithHexString:@"333"] : [CPColor colorWithHexString:@"fff"] forThemeAttribute:@"text-shadow-color"];
|
||||
[label setValue:CGSizeMake(0.0, 1.0) forThemeAttribute:@"text-shadow-offset"];
|
||||
[label setTextColor:[CPColor colorWithHexString:@"444"]];
|
||||
[label setTextColor:(a == CPPopoverAppearanceHUD) ? [CPColor whiteColor] : [CPColor colorWithHexString:@"444"]];
|
||||
[label setFrameSize:CPSizeMake([view frame].size.width, 50)];
|
||||
[label setAlignment:CPCenterTextAlignment];
|
||||
[view addSubview:label];
|
||||
|
||||
Reference in new issue
Block a user