Use device NS colors consistently

This commit is contained in:
Kevin Sawicki 2017-03-02 09:22:57 -08:00
parent 70d61869a5
commit 93bbe8e70b

View file

@ -175,7 +175,7 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide
- (NSColor*)colorFromHexColorString:(const std::string&)colorString { - (NSColor*)colorFromHexColorString:(const std::string&)colorString {
SkColor color = atom::ParseHexColor(colorString); SkColor color = atom::ParseHexColor(colorString);
return skia::SkColorToCalibratedNSColor(color); return skia::SkColorToDeviceNSColor(color);
} }
- (NSTouchBarItem*)makeButtonForID:(NSString*)id - (NSTouchBarItem*)makeButtonForID:(NSString*)id