mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-16 08:31:06 +00:00
assure color is in RGB color space vefore calculating inverse
This commit is contained in:
parent
59a0afd3df
commit
6544ff872e
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@
|
|||
[ev setEditable:_isEditable];
|
||||
|
||||
prefs = [[_editorManager projectManager] prefController];
|
||||
bSelCol = [prefs colorForKey:EditorSelectionColor];
|
||||
bSelCol = [prefs colorForKey:EditorSelectionColor defaultValue:[NSColor blackColor]];
|
||||
bSelCol = [bSelCol colorUsingColorSpace:[NSColorSpace deviceRGBColorSpace]];
|
||||
tSelCol = [NSColor colorWithCalibratedRed: 1.0 - [bSelCol redComponent]
|
||||
green: 1.0 - [bSelCol greenComponent]
|
||||
blue: 1.0 - [bSelCol blueComponent]
|
||||
|
|
Loading…
Reference in a new issue