when drawing gradients in the status and filter bar, always draw the full height
This commit is contained in:
parent
0a9e2fed45
commit
c9cf99d9cc
|
@ -82,7 +82,8 @@
|
||||||
|
|
||||||
NSRectFillListWithColors(gridRects, colorRects, count);
|
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
|
@end
|
||||||
|
|
|
@ -100,7 +100,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (active)
|
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
|
else
|
||||||
{
|
{
|
||||||
gridRects[count] = rect;
|
gridRects[count] = rect;
|
||||||
|
|
Loading…
Reference in New Issue