Don’t mark parent views as opaque

The reason for this is that NSTextField will draw itself in the “faded” state (for non-key windows) unless some of its parent views are marked opaque.

The previous problem with not having the parent views opaque (see da3a91a7bb) seems to have been solved by setting the autohidesScrollers property to YES.
This commit is contained in:
Allan Odgaard
2013-02-06 14:50:04 +01:00
parent 642b009ec9
commit fbb2f972f9
2 changed files with 0 additions and 10 deletions

View File

@@ -314,11 +314,6 @@ NSString* const kUserDefaultsHTMLOutputSizeKey = @"htmlOutputSize";
[self addCursorRect:[self htmlOutputResizeRect] cursor:_htmlOutputOnRight ? [NSCursor resizeLeftRightCursor] : [NSCursor resizeUpDownCursor]];
}
- (BOOL)isOpaque
{
return YES;
}
- (NSView*)hitTest:(NSPoint)aPoint
{
if(NSMouseInRect([self convertPoint:aPoint fromView:[self superview]], [self fileBrowserResizeRect], [self isFlipped]))

View File

@@ -371,11 +371,6 @@ private:
}
}
- (BOOL)isOpaque
{
return YES;
}
- (IBAction)toggleLineNumbers:(id)sender
{
D(DBF_OakDocumentView, bug("show line numbers %s\n", BSTR([gutterView visibilityForColumnWithIdentifier:GVLineNumbersColumnIdentifier])););