From: Matthew Judy Date: Mon, 22 Sep 2003 11:35:07 +0000 (+0000) Subject: Whoops, didn't remove something cleanly. Now I did. Also, the inactive bits of... X-Git-Tag: v1.0~52 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/f7736b5ac70d5f4b68c807d06c272fdb65d57b49 Whoops, didn't remove something cleanly. Now I did. Also, the inactive bits of the meter are transparent. We now match Apple's BezelKey windows perfectly. Again. --- diff --git a/StatusWindow.m b/StatusWindow.m index 28fca4f..5e1bcfd 100755 --- a/StatusWindow.m +++ b/StatusWindow.m @@ -28,7 +28,6 @@ backgroundType:backgroundType] ) ) { // Set default values. _image = [[NSImage imageNamed:@"NSApplicationIcon"] retain]; - _groupNoun = [@"Playlist" retain]; _locked = NO; } @@ -38,7 +37,6 @@ - (void)dealloc { [_image release]; - [_groupNoun release]; [super dealloc]; } @@ -54,12 +52,6 @@ _image = [newImage copy]; } -- (void)setGroupNoun:(NSString *)newNoun; -{ - [_groupNoun autorelease]; - _groupNoun = [newNoun copy]; -} - - (void)setLocked:(BOOL)flag { _locked = flag; @@ -168,6 +160,8 @@ NSEnumerator *cellEnum = nil; id aCell = nil; int activeCount = 0; + NSColor *onColor = [NSColor whiteColor]; + NSColor *offColor = [NSColor colorWithCalibratedWhite:0.0 alpha:0.50]; NSMatrix *volMatrix = [[[NSMatrix alloc] initWithFrame:dataRect mode:NSHighlightModeMatrix cellClass:NSClassFromString(@"ITTextFieldCell") @@ -192,10 +186,10 @@ if ( active >= activeCount ) { [aCell setCastsShadow:YES]; - [aCell setTextColor:[NSColor whiteColor]]; + [aCell setTextColor:onColor]; } else { [aCell setCastsShadow:NO]; - [aCell setTextColor:[NSColor darkGrayColor]]; + [aCell setTextColor:offColor]; } }