mirror of
https://github.com/transmission/transmission
synced 2025-02-22 14:10:34 +00:00
always draw the top white line on the filter bar
This commit is contained in:
parent
4b190aa0c2
commit
7760be2c45
1 changed files with 6 additions and 9 deletions
|
@ -55,8 +55,6 @@
|
||||||
NSColor * colorRects[2];
|
NSColor * colorRects[2];
|
||||||
|
|
||||||
NSRect lineBorderRect = NSMakeRect(NSMinX(rect), NSHeight([self bounds]) - 1.0, NSWidth(rect), 1.0);
|
NSRect lineBorderRect = NSMakeRect(NSMinX(rect), NSHeight([self bounds]) - 1.0, NSWidth(rect), 1.0);
|
||||||
if ([[self window] isMainWindow])
|
|
||||||
{
|
|
||||||
if (NSIntersectsRect(lineBorderRect, rect))
|
if (NSIntersectsRect(lineBorderRect, rect))
|
||||||
{
|
{
|
||||||
gridRects[count] = lineBorderRect;
|
gridRects[count] = lineBorderRect;
|
||||||
|
@ -65,7 +63,6 @@
|
||||||
|
|
||||||
rect.size.height -= 1.0;
|
rect.size.height -= 1.0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
lineBorderRect.origin.y = 0.0;
|
lineBorderRect.origin.y = 0.0;
|
||||||
if (NSIntersectsRect(lineBorderRect, rect))
|
if (NSIntersectsRect(lineBorderRect, rect))
|
||||||
|
|
Loading…
Reference in a new issue