really make scroller background transparent.

This commit is contained in:
Kelvin Sherlock 2021-05-28 21:29:27 -04:00
parent 6468ee2629
commit 3bf2f63bf6
3 changed files with 8 additions and 2 deletions

View File

@ -800,7 +800,8 @@ static void DrawString(NSString *str, NSDictionary *attr, CGRect rect) {
-(void)drawRect:(NSRect)dirtyRect { -(void)drawRect:(NSRect)dirtyRect {
[[NSColor windowBackgroundColor] set]; //[[NSColor windowBackgroundColor] set];
[[NSColor clearColor] set];
NSRectFill(dirtyRect); NSRectFill(dirtyRect);
[self drawKnob]; [self drawKnob];
} }

View File

@ -19,7 +19,7 @@
<scrollView focusRingType="none" borderType="none" autohidesScrollers="YES" horizontalLineScroll="27" horizontalPageScroll="10" verticalLineScroll="27" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" horizontalScrollElasticity="none" id="D45-lv-6Fv"> <scrollView focusRingType="none" borderType="none" autohidesScrollers="YES" horizontalLineScroll="27" horizontalPageScroll="10" verticalLineScroll="27" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" horizontalScrollElasticity="none" id="D45-lv-6Fv">
<rect key="frame" x="0.0" y="0.0" width="316" height="386"/> <rect key="frame" x="0.0" y="0.0" width="316" height="386"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<clipView key="contentView" autoresizesSubviews="NO" focusRingType="none" copiesOnScroll="NO" id="8x1-xN-a7c"> <clipView key="contentView" autoresizesSubviews="NO" focusRingType="none" drawsBackground="NO" copiesOnScroll="NO" id="8x1-xN-a7c">
<rect key="frame" x="0.0" y="0.0" width="316" height="386"/> <rect key="frame" x="0.0" y="0.0" width="316" height="386"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>

View File

@ -12,11 +12,16 @@
- (void)drawRect:(NSRect)dirtyRect { - (void)drawRect:(NSRect)dirtyRect {
//[super drawRect:dirtyRect]; //[super drawRect:dirtyRect];
[[NSColor clearColor] set];
NSRectFill(dirtyRect);
#if 0
NSColor *color = _backgroundColor; NSColor *color = _backgroundColor;
if (color) { if (color) {
[color setFill]; [color setFill];
NSRectFill(dirtyRect); NSRectFill(dirtyRect);
} }
#endif
[self drawKnob]; [self drawKnob];
} }