parent
0dc31808e7
commit
d3256f3c54
|
@ -555,7 +555,7 @@ static AppController *kAppController = nil;
|
||||||
NSData *barColor = [colorToValueTransformer reverseTransformedValue:[NSColor colorWithSRGBRed:1.0 green:0.5 blue:0 alpha:1.0]];
|
NSData *barColor = [colorToValueTransformer reverseTransformedValue:[NSColor colorWithSRGBRed:1.0 green:0.5 blue:0 alpha:1.0]];
|
||||||
NSData *dotColor = [colorToValueTransformer reverseTransformedValue:[NSColor systemRedColor]];
|
NSData *dotColor = [colorToValueTransformer reverseTransformedValue:[NSColor systemRedColor]];
|
||||||
|
|
||||||
[userDefaultsValuesDict setObject:@(YES) forKey:@"spectrumSceneKit"];
|
[userDefaultsValuesDict setObject:@(YES) forKey:@"spectrumSceneKit"];
|
||||||
[userDefaultsValuesDict setObject:barColor forKey:@"spectrumBarColor"];
|
[userDefaultsValuesDict setObject:barColor forKey:@"spectrumBarColor"];
|
||||||
[userDefaultsValuesDict setObject:dotColor forKey:@"spectrumDotColor"];
|
[userDefaultsValuesDict setObject:dotColor forKey:@"spectrumDotColor"];
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,8 @@ extern NSString *CogPlaybackDidStopNotficiation;
|
||||||
@implementation SpectrumViewSK
|
@implementation SpectrumViewSK
|
||||||
|
|
||||||
+ (SpectrumViewSK *)createGuardWithFrame:(NSRect)frame {
|
+ (SpectrumViewSK *)createGuardWithFrame:(NSRect)frame {
|
||||||
if (![NSUserDefaults.standardUserDefaults boolForKey:@"spectrumSceneKit"])
|
if (![NSUserDefaults.standardUserDefaults boolForKey:@"spectrumSceneKit"])
|
||||||
return nil;
|
return nil;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if(@available(macOS 11.0, *)) {
|
if(@available(macOS 11.0, *)) {
|
||||||
|
|
Loading…
Reference in New Issue