Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 8 additions & 18 deletions prefpane/MAAttachedWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -330,24 +330,14 @@ - (void)_updateBackground

- (NSColor *)_backgroundColorPatternImage
{
NSImage *bg = [[NSImage alloc] initWithSize:[self frame].size];
NSRect bgRect = NSZeroRect;
bgRect.size = [bg size];

[bg lockFocus];
NSBezierPath *bgPath = [self _backgroundPath];
[NSGraphicsContext saveGraphicsState];
[bgPath addClip];

// Draw background.
[_MABackgroundColor set];
[bgPath fill];
//[bgPath stroke];

[NSGraphicsContext restoreGraphicsState];
[bg unlockFocus];

return [NSColor colorWithPatternImage:[bg autorelease]];
// TODO: Consider restoring old visual style
// using imageWithSize:flipped:drawingHandler e.g.:
/*
NSImage *bg = [NSImage imageWithSize:[self frame].size
flipped:NO
drawingHandler:???];
*/
return [NSColor lightGrayColor]; // Return static color for now.
}


Expand Down