Changeset 5063


Ignore:
Timestamp:
Feb 19, 2008, 2:59:01 AM (14 years ago)
Author:
livings124
Message:

ensure up and down group arrows are colored correctly

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r5060 r5063  
    24872487        }
    24882488        else if ([ident isEqualToString: @"Color"])
    2489         {
    2490             int group = [[item objectForKey: @"Group"] intValue];
    2491             return [[GroupsWindowController groups] imageForIndex: group isSmall: YES];
    2492         }
     2489            return [[GroupsWindowController groups] imageForIndex: [[item objectForKey: @"Group"] intValue] isSmall: YES];
    24932490        else if ([ident isEqualToString: @"UL Image"])
    24942491            return [NSImage imageNamed: @"UpArrowGroupTemplate.png"];
  • trunk/macosx/TorrentTableView.m

    r5062 r5063  
    157157    else
    158158    {
    159         if (([[tableColumn identifier] isEqualToString: @"UL Image"] || [[tableColumn identifier] isEqualToString: @"DL Image"])
    160             && [NSApp isOnLeopardOrBetter])
    161             [[cell image] setTemplate: [cell backgroundStyle] == NSBackgroundStyleLowered]; //ensure white only when selected
     159        if ([[tableColumn identifier] isEqualToString: @"UL Image"] || [[tableColumn identifier] isEqualToString: @"DL Image"])
     160        {
     161            //ensure white only when selected
     162            NSImage * image = [cell image];
     163            BOOL template = [cell backgroundStyle] == NSBackgroundStyleLowered;
     164            if ([image isTemplate] != template)
     165            {
     166                [image setTemplate: template];
     167                [cell setImage: nil];
     168                [cell setImage: image];
     169            }
     170        }
    162171    }
    163172}
Note: See TracChangeset for help on using the changeset viewer.