mirror of
https://github.com/ksherlock/ample.git
synced 2024-11-15 22:07:28 +00:00
24 lines
438 B
Objective-C
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
|