Changeset 5923
- Timestamp:
- May 23, 2008, 8:18:14 PM (14 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/TorrentTableView.m
r5920 r5923 702 702 - (void) highlightSelectionInClipRect: (NSRect) clipRect 703 703 { 704 NS Array * colors = [NSColor controlAlternatingRowBackgroundColors];704 NSColor * altColor = [[NSColor controlAlternatingRowBackgroundColors] objectAtIndex: 1]; 705 705 706 706 NSRect visibleRect = clipRect; … … 736 736 } 737 737 738 NSColor * color = start ? [colors objectAtIndex: 0] : [colors objectAtIndex: 1]; 739 [color set]; 740 NSRectFill([self rectOfRow: i]); 738 if (!start) 739 { 740 [altColor set]; 741 NSRectFill([self rectOfRow: i]); 742 } 741 743 742 744 start = !start; … … 754 756 while (rowRect.origin.y < NSMaxY(visibleRect)) 755 757 { 756 NSColor * color = start ? [colors objectAtIndex: 0] : [colors objectAtIndex: 1]; 757 [color set]; 758 NSRectFill(rowRect); 758 if (!start) 759 { 760 [altColor set]; 761 NSRectFill(rowRect); 762 } 759 763 760 764 start = !start; -
trunk/macosx/TrackerTableView.m
r5921 r5923 35 35 - (void) highlightSelectionInClipRect: (NSRect) clipRect 36 36 { 37 NS Array * colors = [NSColor controlAlternatingRowBackgroundColors];37 NSColor * altColor = [[NSColor controlAlternatingRowBackgroundColors] objectAtIndex: 1]; 38 38 39 39 NSRect visibleRect = clipRect; … … 69 69 } 70 70 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 } 74 76 75 77 start = !start; … … 87 89 while (rowRect.origin.y < NSMaxY(visibleRect)) 88 90 { 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 } 92 96 93 97 start = !start;
Note: See TracChangeset
for help on using the changeset viewer.