Revision: 22650
http://sourceforge.net/p/bibdesk/svn/22650
Author: hofman
Date: 2018-09-22 14:15:17 +0000 (Sat, 22 Sep 2018)
Log Message:
-----------
use calibrated colors for complex or inherited values, system colors sometimes
fail
Modified Paths:
--------------
trunk/bibdesk/BDSKComplexStringFormatter.m
Modified: trunk/bibdesk/BDSKComplexStringFormatter.m
===================================================================
--- trunk/bibdesk/BDSKComplexStringFormatter.m 2018-09-22 06:30:50 UTC (rev
22649)
+++ trunk/bibdesk/BDSKComplexStringFormatter.m 2018-09-22 14:15:17 UTC (rev
22650)
@@ -88,20 +88,20 @@
if ([obj isComplex]) {
if ([obj isInherited]) {
if (highlighted)
- color = [[NSColor blueColor]
blendedColorWithFraction:0.5 ofColor:[NSColor controlBackgroundColor]];
+ color = [NSColor colorWithCalibratedRed:0.5 green:0.5 blue:1.0
alpha:1.0];
else
- color = [[NSColor blueColor]
blendedColorWithFraction:0.4 ofColor:[NSColor controlBackgroundColor]];
+ color = [NSColor colorWithCalibratedRed:0.4 green:0.4 blue:1.0
alpha:1.0];
} else {
if (highlighted)
- color = [[NSColor blueColor]
blendedColorWithFraction:0.8 ofColor:[NSColor controlBackgroundColor]];
+ color = [NSColor colorWithCalibratedRed:0.8 green:0.8 blue:1.0
alpha:1.0];
else
- color = [NSColor blueColor];
+ color = [NSColor colorWithCalibratedRed:0.0 green:0.0 blue:1.0
alpha:1.0];
}
} else if ([obj isInherited]) {
if (highlighted)
- color = [NSColor lightGrayColor];
+ color = [NSColor colorWithCalibratedWhite:0.6 alpha:1.0];
else
- color = [NSColor disabledControlTextColor];
+ color = [NSColor colorWithCalibratedWhite:0.4 alpha:1.0];
}
if (color)
[attrs setObject:color forKey:NSForegroundColorAttributeName];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit