Ignore:
Timestamp:
May 23, 2008, 8:18:14 PM (14 years ago)
Author:
livings124
Message:

don't draw the white rows - this is already performed before hand

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TrackerTableView.m

    r5921 r5923  
    3535- (void) highlightSelectionInClipRect: (NSRect) clipRect
    3636{
    37     NSArray * colors = [NSColor controlAlternatingRowBackgroundColors];
     37    NSColor * altColor = [[NSColor controlAlternatingRowBackgroundColors] objectAtIndex: 1];
    3838   
    3939    NSRect visibleRect = clipRect;
     
    6969            }
    7070           
    71             NSColor * color = start ? [colors objectAtIndex: 0] : [colors objectAtIndex: 1];
    72             [color set];
    73             NSRectFill([self rectOfRow: i]);
     71            if (!start)
     72            {
     73                [altColor set];
     74                NSRectFill([self rectOfRow: i]);
     75            }
    7476           
    7577            start = !start;
     
    8789    while (rowRect.origin.y < NSMaxY(visibleRect))
    8890    {
    89         NSColor * color = start ? [colors objectAtIndex: 0] : [colors objectAtIndex: 1];
    90         [color set];
    91         NSRectFill(rowRect);
     91        if (!start)
     92        {
     93            [altColor set];
     94            NSRectFill(rowRect);
     95        }
    9296       
    9397        start = !start;
Note: See TracChangeset for help on using the changeset viewer.