From 3bc50c1c3bc2c3a981bc73f7d2efb988c167d2fc Mon Sep 17 00:00:00 2001 From: nciagra Date: Tue, 7 Apr 2009 00:02:28 -0400 Subject: [PATCH] Allow _CPWindowView to set its own toolbarItem labelShadowColor. --- AppKit/CPWindow/_CPHUDWindowView.j | 5 +++++ AppKit/CPWindow/_CPWindowView.j | 3 +++ 2 files changed, 8 insertions(+) diff --git a/AppKit/CPWindow/_CPHUDWindowView.j b/AppKit/CPWindow/_CPHUDWindowView.j index 5c2a94630..49a850fd0 100644 --- a/AppKit/CPWindow/_CPHUDWindowView.j +++ b/AppKit/CPWindow/_CPHUDWindowView.j @@ -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); diff --git a/AppKit/CPWindow/_CPWindowView.j b/AppKit/CPWindow/_CPWindowView.j index 66f8d85ca..db9f598e2 100644 --- a/AppKit/CPWindow/_CPWindowView.j +++ b/AppKit/CPWindow/_CPWindowView.j @@ -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]; }