Changeset 12864
- Timestamp:
- Sep 14, 2011, 3:31:34 AM (12 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/FilterBarView.m
r12863 r12864 81 81 } 82 82 83 if (!NSIsEmptyRect(rect)) 84 { 85 const NSRect gradientRect = NSMakeRect(NSMinX(rect), 1.0, NSWidth(rect), NSHeight([self bounds]) - 1.0 - 1.0); //proper gradient requires the full height of the bar 86 [fGradient drawInRect: gradientRect angle: 270.0]; 87 } 88 83 89 NSRectFillListWithColors(gridRects, colorRects, count); 84 85 const NSRect gradientRect = NSMakeRect(NSMinX(rect), 1.0, NSWidth(rect), NSHeight([self bounds]) - 1.0 - 1.0); //proper gradient requires the full height of the bar86 [fGradient drawInRect: gradientRect angle: 270.0];87 90 } 88 91 -
trunk/macosx/StatusBarView.m
r12863 r12864 100 100 } 101 101 102 if ( active)102 if (!NSIsEmptyRect(rect)) 103 103 { 104 const NSRect gradientRect = NSMakeRect(NSMinX(rect), 1.0, NSWidth(rect), NSHeight([self bounds]) - 1.0 - 1.0); //proper gradient requires the full height of the bar 105 [fGradient drawInRect: gradientRect angle: 270.0]; 106 } 107 else 108 { 109 gridRects[count] = rect; 110 colorRects[count] = [NSColor colorWithCalibratedWhite: 0.85 alpha: 1.0]; 111 ++count; 104 if (active) 105 { 106 const NSRect gradientRect = NSMakeRect(NSMinX(rect), 1.0, NSWidth(rect), NSHeight([self bounds]) - 1.0 - 1.0); //proper gradient requires the full height of the bar 107 [fGradient drawInRect: gradientRect angle: 270.0]; 108 } 109 else 110 { 111 gridRects[count] = rect; 112 colorRects[count] = [NSColor colorWithCalibratedWhite: 0.85 alpha: 1.0]; 113 ++count; 114 } 112 115 } 113 116
Note: See TracChangeset
for help on using the changeset viewer.