Changeset 613


Ignore:
Timestamp:
Jul 16, 2006, 5:12:25 PM (16 years ago)
Author:
livings124
Message:

Better way to determine highlighted color

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.m

    r612 r613  
    4949       
    5050        NSFont * boldFont = [[NSFontManager sharedFontManager] convertFont:
    51                             [NSFont fontWithName: @"Helvetica" size: 28.0] toHaveTrait: NSBoldFontMask];
     51                                [NSFont fontWithName: @"Helvetica" size: 28.0] toHaveTrait: NSBoldFontMask];
    5252       
    5353        fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
  • trunk/macosx/TorrentCell.m

    r595 r613  
    283283- (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) view
    284284{
    285     BOOL highlighted = [self isHighlighted] && [[view window] isKeyWindow];
     285    BOOL highlighted = [self isHighlighted] && [[self highlightColorWithFrame: cellFrame inView: view]
     286                                                        isEqual: [NSColor alternateSelectedControlColor]];
    286287    NSDictionary * nameAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
    287288                    highlighted ? [NSColor whiteColor] : [NSColor blackColor],
Note: See TracChangeset for help on using the changeset viewer.