mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Allow _CPWindowView to set its own toolbarItem labelShadowColor.
This commit is contained in:
@@ -185,6 +185,11 @@ var HUD_TITLEBAR_HEIGHT = 26.0;
|
||||
return [CPColor whiteColor];
|
||||
}
|
||||
|
||||
- (CPColor)toolbarLabelShadowColor
|
||||
{
|
||||
return [CPColor blackColor];
|
||||
}
|
||||
|
||||
- (CGSize)toolbarOffset
|
||||
{
|
||||
return CGSizeMake(0.0, HUD_TITLEBAR_HEIGHT);
|
||||
|
||||
@@ -283,6 +283,9 @@ var _CPWindowViewResizeIndicatorImage = nil;
|
||||
{
|
||||
[toolbarView removeFromSuperview];
|
||||
[toolbarView setLabelColor:[self toolbarLabelColor]];
|
||||
|
||||
if ([self respondsToSelector:@selector(toolbarLabelShadowColor)])
|
||||
[toolbarView setLabelShadowColor:[self toolbarLabelShadowColor]];
|
||||
|
||||
[self addSubview:toolbarView];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user