Revision: 15227
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15227&view=rev
Author:   hofman
Date:     2009-04-29 10:09:37 +0000 (Wed, 29 Apr 2009)

Log Message:
-----------
only use white text color on Tiger when the text cell is highlighted

Modified Paths:
--------------
    trunk/bibdesk/BDSKMainTableView.m
    trunk/bibdesk/BDSKTextWithIconCell.m

Modified: trunk/bibdesk/BDSKMainTableView.m
===================================================================
--- trunk/bibdesk/BDSKMainTableView.m   2009-04-29 10:06:55 UTC (rev 15226)
+++ trunk/bibdesk/BDSKMainTableView.m   2009-04-29 10:09:37 UTC (rev 15227)
@@ -734,8 +734,8 @@
 
 // Tiger inverts the text color based on the highlight color, which is lame
 - (NSColor *)textColor {
-    if ([self respondsToSelector:@selector(backgroundStyle)] == NO && 
-        [[[self controlView] window] isKeyWindow] && [[[self controlView] 
window] firstResponder] == [self controlView])
+    if ([self respondsToSelector:@selector(backgroundStyle)] == NO && [self 
isHighlighted] && 
+        [[[self controlView] window] isKeyWindow] && [[[[self controlView] 
window] firstResponder] isEqual:[self controlView]])
         return [NSColor textBackgroundColor];
     return [super textColor];
 }

Modified: trunk/bibdesk/BDSKTextWithIconCell.m
===================================================================
--- trunk/bibdesk/BDSKTextWithIconCell.m        2009-04-29 10:06:55 UTC (rev 
15226)
+++ trunk/bibdesk/BDSKTextWithIconCell.m        2009-04-29 10:09:37 UTC (rev 
15227)
@@ -100,9 +100,8 @@
         if ([self respondsToSelector:@selector(backgroundStyle)]) {
             if (hasDarkHighlight && [self isHighlighted])
                 return [NSColor textBackgroundColor];
-        } else {
-            if ((hasDarkHighlight && [self isHighlighted]) ||
-                ([[[self controlView] window] isKeyWindow] && [[[self 
controlView] window] firstResponder] == [self controlView]))
+        } else if ([self isHighlighted]) {
+            if (hasDarkHighlight || ([[[self controlView] window] isKeyWindow] 
&& [[[[self controlView] window] firstResponder] isEqual:[self controlView]]))
                 return [NSColor textBackgroundColor];
         }
     }


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

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to