Whoops, didn't remove something cleanly. Now I did. Also, the inactive bits of...
authorMatthew Judy <mjudy@ithinksw.com>
Mon, 22 Sep 2003 11:35:07 +0000 (11:35 +0000)
committerMatthew Judy <mjudy@ithinksw.com>
Mon, 22 Sep 2003 11:35:07 +0000 (11:35 +0000)
StatusWindow.m

index 28fca4f..5e1bcfd 100755 (executable)
@@ -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];
 }
 
     _image = [newImage copy];
 }
 
-- (void)setGroupNoun:(NSString *)newNoun;
-{
-    [_groupNoun autorelease];
-    _groupNoun = [newNoun copy];
-}
-
 - (void)setLocked:(BOOL)flag
 {
     _locked = flag;
     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")
         
         if ( active >= activeCount ) {
             [aCell setCastsShadow:YES];
-            [aCell setTextColor:[NSColor whiteColor]];
+            [aCell setTextColor:onColor];
         } else {
             [aCell setCastsShadow:NO];
-            [aCell setTextColor:[NSColor darkGrayColor]];
+            [aCell setTextColor:offColor];
         }
         
     }