mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
when drawing gradients in the status and filter bar, always draw the full height
This commit is contained in:
parent
0a9e2fed45
commit
c9cf99d9cc
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue