Changeset 143


Ignore:
Timestamp:
Mar 10, 2006, 10:12:04 PM (16 years ago)
Author:
titer
Message:

Fixed text color

Location:
branches/new_api/macosx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/new_api/macosx/Controller.m

    r142 r143  
    647647{
    648648    [cell setTorrent: [fTorrents objectAtIndex: rowIndex]];
     649    [cell setTextColor: ( [fWindow isKeyWindow] &&
     650        rowIndex == [fTableView selectedRow] ) ?
     651        [NSColor whiteColor] : [NSColor blackColor]];
    649652}
    650653
  • branches/new_api/macosx/NameCell.h

    r142 r143  
    3030{
    3131    Torrent * fTorrent;
     32    NSColor * fTextColor;
    3233}
    33 - (void) setTorrent: (Torrent *) torrent;
     34- (void) setTorrent:   (Torrent *) torrent;
     35- (void) setTextColor: (NSColor *) color;
    3436@end
    3537
  • branches/new_api/macosx/NameCell.m

    r142 r143  
    3232}
    3333
     34- (void) setTextColor: (NSColor *) color
     35{
     36    fTextColor = color;
     37}
     38
    3439- (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) view
    3540{
     
    5358
    5459    attributes = [NSMutableDictionary dictionaryWithCapacity: 2];
    55     [attributes setObject: /*fWhiteText*/0 ? [NSColor whiteColor] :
    56         [NSColor blackColor] forKey: NSForegroundColorAttributeName];
     60    [attributes setObject: fTextColor
     61        forKey: NSForegroundColorAttributeName];
    5762
    5863    [attributes setObject: [NSFont messageFontOfSize: 12.0]
  • branches/new_api/macosx/ProgressCell.h

    r142 r143  
    3030{
    3131    Torrent * fTorrent;
     32    NSColor * fTextColor;
    3233}
    33 - (void) setTorrent: (Torrent *) torrent;
     34- (void) setTorrent:   (Torrent *) torrent;
     35- (void) setTextColor: (NSColor *) color;
    3436@end
    3537
  • branches/new_api/macosx/ProgressCell.m

    r142 r143  
    8686}
    8787
     88- (void) setTextColor: (NSColor *) color
     89{
     90    fTextColor = color;
     91}
     92
    8893#if 0
    8994/***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.