Changeset 178


Ignore:
Timestamp:
Apr 2, 2006, 7:46:10 PM (17 years ago)
Author:
titer
Message:

Use white text for the highlighted row only on >= 10.3 (background of
highlighted cells isn't dark on 10.2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/compat-10.2/macosx/Controller.m

    r177 r178  
    679679{
    680680    [cell setTorrent: [fTorrents objectAtIndex: rowIndex]];
    681     [cell setTextColor: ( [fWindow isKeyWindow] &&
    682         rowIndex == [fTableView selectedRow] ) ?
    683         [NSColor whiteColor] : [NSColor blackColor]];
     681
     682    if( OSX_VERSION >= 10.3 && [fWindow isKeyWindow] &&
     683            rowIndex == [fTableView selectedRow] )
     684        [cell setTextColor: [NSColor whiteColor]];
     685    else
     686        [cell setTextColor: [NSColor blackColor]];
    684687}
    685688
Note: See TracChangeset for help on using the changeset viewer.