Skip to content

Commit 35a2b5d

Browse files
committed
should address #258
1 parent 8f04de8 commit 35a2b5d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MenuMetersMenuExtraBase.m

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
@implementation MenuMetersMenuExtraBase
2020
-(NSColor*)colorByAdjustingForLightDark:(NSColor*)c
2121
{
22+
if(@available(macOS 10.13,*)){
23+
if(c.type==NSColorTypeCatalog){
24+
return c;
25+
}
26+
}
2227
return [c blendedColorWithFraction:[[NSUserDefaults standardUserDefaults] floatForKey:@"tintPercentage"]/100 ofColor:self.isDark?[[NSColor whiteColor] colorWithAlphaComponent:[c alphaComponent]]:[[NSColor blackColor] colorWithAlphaComponent:[c alphaComponent]]];
2328
}
2429
-(instancetype)initWithBundleID:(NSString*)bundleID

0 commit comments

Comments
 (0)