Revision: 5296
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5296&view=rev
Author:   hofman
Date:     2009-04-01 15:07:59 +0000 (Wed, 01 Apr 2009)

Log Message:
-----------
use device instead of calibrated colors for faded highlights, as that's what 
seems to stay constant across color profiles

Modified Paths:
--------------
    trunk/SKThumbnailTableView.m
    trunk/SKTocOutlineView.m

Modified: trunk/SKThumbnailTableView.m
===================================================================
--- trunk/SKThumbnailTableView.m        2009-04-01 13:08:51 UTC (rev 5295)
+++ trunk/SKThumbnailTableView.m        2009-04-01 15:07:59 UTC (rev 5296)
@@ -96,12 +96,12 @@
     NSRect rect;
     
     if ([self respondsToSelector:@selector(setSelectionHighlightStyle:)]) {
-        if ([[self window] isKeyWindow] && [[self window] firstResponder] == 
self)
-            color = [NSColor colorWithCalibratedRed:0.27945 green:0.456809 
blue:0.724422 alpha:1.0];
-        else if ([[self window] isKeyWindow])
-            color = [NSColor colorWithCalibratedRed:0.548913 green:0.604532 
blue:0.727840 alpha:1.0];
+        if ([[self window] isKeyWindow] == NO)
+            color = [NSColor colorWithDeviceRed:40606.0/65535.0 
green:40606.0/65535.0 blue:40606.0/65535.0 alpha:1.0];
+        else if ([[self window] firstResponder] == self)
+            color = [NSColor colorWithDeviceRed:14135.0/65535.0 
green:29298.0/65535.0 blue:48830.0/65535.0 alpha:1.0];
         else
-            color = [NSColor colorWithCalibratedRed:0.623545 green:0.623545 
blue:0.623545 alpha:1.0];
+            color = [NSColor colorWithDeviceRed:34695.0/65535.0 
green:39064.0/65535.0 blue:48316.0/65535.0 alpha:1.0];
     } else {
         if ([[self window] isKeyWindow] && [[self window] firstResponder] == 
self)
             color = [NSColor alternateSelectedControlColor];

Modified: trunk/SKTocOutlineView.m
===================================================================
--- trunk/SKTocOutlineView.m    2009-04-01 13:08:51 UTC (rev 5295)
+++ trunk/SKTocOutlineView.m    2009-04-01 15:07:59 UTC (rev 5296)
@@ -77,12 +77,12 @@
     NSRect rect;
     
     if ([self respondsToSelector:@selector(setSelectionHighlightStyle:)]) {
-        if ([[self window] isKeyWindow] && [[self window] firstResponder] == 
self)
-            color = [NSColor colorWithCalibratedRed:0.27945 green:0.456809 
blue:0.724422 alpha:1.0];
-        else if ([[self window] isKeyWindow])
-            color = [NSColor colorWithCalibratedRed:0.548913 green:0.604532 
blue:0.727840 alpha:1.0];
+        if ([[self window] isKeyWindow] == NO)
+            color = [NSColor colorWithDeviceRed:40606.0/65535.0 
green:40606.0/65535.0 blue:40606.0/65535.0 alpha:1.0];
+        else if ([[self window] firstResponder] == self)
+            color = [NSColor colorWithDeviceRed:14135.0/65535.0 
green:29298.0/65535.0 blue:48830.0/65535.0 alpha:1.0];
         else
-            color = [NSColor colorWithCalibratedRed:0.623545 green:0.623545 
blue:0.623545 alpha:1.0];
+            color = [NSColor colorWithDeviceRed:34695.0/65535.0 
green:39064.0/65535.0 blue:48316.0/65535.0 alpha:1.0];
     } else {
         if ([[self window] isKeyWindow] && [[self window] firstResponder] == 
self)
             color = [NSColor alternateSelectedControlColor];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to