mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Don’t draw status bar background on window border
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user