mirror of
https://github.com/ksherlock/ample.git
synced 2024-11-19 02:11:08 +00:00
24 lines
438 B
Mathematica
24 lines
438 B
Mathematica
|
//
|
||
|
// 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
|