mirror of
https://github.com/ksherlock/ample.git
synced 2025-02-18 17:30:37 +00:00
really make scroller background transparent.
This commit is contained in:
parent
6468ee2629
commit
3bf2f63bf6
@ -800,7 +800,8 @@ static void DrawString(NSString *str, NSDictionary *attr, CGRect rect) {
|
||||
|
||||
|
||||
-(void)drawRect:(NSRect)dirtyRect {
|
||||
[[NSColor windowBackgroundColor] set];
|
||||
//[[NSColor windowBackgroundColor] set];
|
||||
[[NSColor clearColor] set];
|
||||
NSRectFill(dirtyRect);
|
||||
[self drawKnob];
|
||||
}
|
||||
|
@ -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">
|
||||
<rect key="frame" x="0.0" y="0.0" width="316" height="386"/>
|
||||
<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"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
|
@ -12,11 +12,16 @@
|
||||
|
||||
- (void)drawRect:(NSRect)dirtyRect {
|
||||
//[super drawRect:dirtyRect];
|
||||
[[NSColor clearColor] set];
|
||||
NSRectFill(dirtyRect);
|
||||
|
||||
#if 0
|
||||
NSColor *color = _backgroundColor;
|
||||
if (color) {
|
||||
[color setFill];
|
||||
NSRectFill(dirtyRect);
|
||||
}
|
||||
#endif
|
||||
[self drawKnob];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user