mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 21:27:56 -05:00
Only fill with “clear color” for transparent themes
This commit is contained in:
@@ -581,8 +581,11 @@ static std::string shell_quote (std::vector<std::string> paths)
|
||||
|
||||
- (void)drawRect:(NSRect)aRect
|
||||
{
|
||||
[[NSColor clearColor] set];
|
||||
NSRectFill(aRect); // Only necessary when theme uses a transparent background.
|
||||
if(theme && theme->is_transparent())
|
||||
{
|
||||
[[NSColor clearColor] set];
|
||||
NSRectFill(aRect);
|
||||
}
|
||||
|
||||
CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
|
||||
if(!antiAlias)
|
||||
|
||||
Reference in New Issue
Block a user