mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +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,16 +55,13 @@
|
|||
NSColor * colorRects[2];
|
||||
|
||||
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;
|
||||
colorRects[count] = [NSColor whiteColor];
|
||||
++count;
|
||||
|
||||
rect.size.height -= 1.0;
|
||||
}
|
||||
gridRects[count] = lineBorderRect;
|
||||
colorRects[count] = [NSColor whiteColor];
|
||||
++count;
|
||||
|
||||
rect.size.height -= 1.0;
|
||||
}
|
||||
|
||||
lineBorderRect.origin.y = 0.0;
|
||||
|
|
Loading…
Reference in a new issue