2020-09-04 23:22:18 +00:00
|
|
|
//
|
|
|
|
// TransparentScroller.m
|
|
|
|
// Ample
|
|
|
|
//
|
|
|
|
// Created by Kelvin Sherlock on 9/4/2020.
|
|
|
|
// Copyright © 2020 Kelvin Sherlock. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "TransparentScroller.h"
|
|
|
|
|
|
|
|
@implementation TransparentScroller
|
|
|
|
|
|
|
|
- (void)drawRect:(NSRect)dirtyRect {
|
|
|
|
//[super drawRect:dirtyRect];
|
2021-05-29 01:29:27 +00:00
|
|
|
[[NSColor clearColor] set];
|
|
|
|
NSRectFill(dirtyRect);
|
|
|
|
|
|
|
|
#if 0
|
2020-09-04 23:22:18 +00:00
|
|
|
NSColor *color = _backgroundColor;
|
|
|
|
if (color) {
|
|
|
|
[color setFill];
|
|
|
|
NSRectFill(dirtyRect);
|
|
|
|
}
|
2021-05-29 01:29:27 +00:00
|
|
|
#endif
|
2020-09-04 23:22:18 +00:00
|
|
|
[self drawKnob];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|