Don’t draw status bar background on window border

This commit is contained in:
Allan Odgaard
2013-02-14 11:31:20 +01:00
parent e96dc916ef
commit 43fa57ae22
2 changed files with 12 additions and 6 deletions

View File

@@ -105,8 +105,11 @@ static NSImageView* OakCreateImageView (NSImage* image)
- (void)drawRect:(NSRect)aRect
{
[[NSColor windowBackgroundColor] set];
NSRectFill(aRect);
[super drawRect:aRect];
if([self.window contentBorderThicknessForEdge:NSMinYEdge] < NSMaxY(self.frame))
{
[[NSColor windowBackgroundColor] set];
NSRectFill(aRect);
[super drawRect:aRect];
}
}
@end

View File

@@ -166,9 +166,12 @@ static NSImageView* OakCreateImageView (NSImage* image)
- (void)drawRect:(NSRect)aRect
{
[[NSColor windowBackgroundColor] set];
NSRectFill(aRect);
[super drawRect:aRect];
if([self.window contentBorderThicknessForEdge:NSMinYEdge] < NSMaxY(self.frame))
{
[[NSColor windowBackgroundColor] set];
NSRectFill(aRect);
[super drawRect:aRect];
}
}
- (void)updateMacroRecordingAnimation:(NSTimer*)aTimer