ample/Ample/TransparentScroller.m
2020-09-04 19:22:18 -04:00

24 lines
438 B
Objective-C

//
// 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 *color = _backgroundColor;
if (color) {
[color setFill];
NSRectFill(dirtyRect);
}
[self drawKnob];
}
@end