ample/Ample/TransparentScroller.m

29 lines
511 B
Mathematica
Raw Normal View History

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];
[[NSColor clearColor] set];
NSRectFill(dirtyRect);
#if 0
2020-09-04 23:22:18 +00:00
NSColor *color = _backgroundColor;
if (color) {
[color setFill];
NSRectFill(dirtyRect);
}
#endif
2020-09-04 23:22:18 +00:00
[self drawKnob];
}
@end