mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-26 21:40:44 +00:00
Convert hexadecimal color values to CGFloat literals.
This commit is contained in:
parent
a72e58188c
commit
d6c5c1c8b3
@ -592,10 +592,10 @@ static NSDictionary *modeInfoToDictionary(const XRRModeInfo *mi, int depth) {
|
||||
if ([colorName isEqual: @"windowFrameColor"])
|
||||
return [NSColor lightGrayColor];
|
||||
if ([colorName isEqual: @"selectedTextBackgroundColor"])
|
||||
return [NSColor colorWithCalibratedRed: 0x33
|
||||
green: 0x8f
|
||||
blue: 0xff
|
||||
alpha: 1.0f];
|
||||
return [NSColor colorWithCalibratedRed: 0.20f
|
||||
green: 0.55f
|
||||
blue: 1.00f
|
||||
alpha: 1.00f];
|
||||
|
||||
NSLog(@"missing color for %@", colorName);
|
||||
return [NSColor redColor];
|
||||
|
Loading…
Reference in New Issue
Block a user