when drawing gradients in the status and filter bar, always draw the full height

This commit is contained in:
Mitchell Livingston 2011-09-14 03:15:58 +00:00
parent 0a9e2fed45
commit c9cf99d9cc
2 changed files with 6 additions and 2 deletions

View File

@ -82,7 +82,8 @@
NSRectFillListWithColors(gridRects, colorRects, count);
[fGradient drawInRect: rect angle: 270.0];
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
[fGradient drawInRect: gradientRect angle: 270.0];
}
@end

View File

@ -100,7 +100,10 @@
}
if (active)
[fGradient drawInRect: rect angle: 270.0];
{
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
[fGradient drawInRect: gradientRect angle: 270.0];
}
else
{
gridRects[count] = rect;