Revision: 18243
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18243&view=rev
Author:   hofman
Date:     2011-11-26 18:41:52 +0000 (Sat, 26 Nov 2011)
Log Message:
-----------
draw gradient in opposite direction in non-flipped view

Modified Paths:
--------------
    trunk/bibdesk/BDSKAddressTextFieldCell.m

Modified: trunk/bibdesk/BDSKAddressTextFieldCell.m
===================================================================
--- trunk/bibdesk/BDSKAddressTextFieldCell.m    2011-11-26 18:26:06 UTC (rev 
18242)
+++ trunk/bibdesk/BDSKAddressTextFieldCell.m    2011-11-26 18:41:52 UTC (rev 
18243)
@@ -64,7 +64,7 @@
                gradient = [[NSGradient alloc] initWithStartingColor:[NSColor 
colorWithCalibratedWhite:0.24 alpha:1.0] endingColor:[NSColor 
colorWithCalibratedWhite:0.374 alpha:1.0]];
        else
                gradient = [[NSGradient alloc] initWithStartingColor:[NSColor 
colorWithCalibratedWhite:0.55 alpha:1.0] endingColor:[NSColor 
colorWithCalibratedWhite:0.558 alpha:1.0]];
-       [gradient drawInBezierPath:[NSBezierPath 
bezierPathWithRoundedRect:outlineRect xRadius:3.6 yRadius:3.6] angle:90];
+       [gradient drawInBezierPath:[NSBezierPath 
bezierPathWithRoundedRect:outlineRect xRadius:3.6 yRadius:3.6] 
angle:[controlView isFlipped] ? 90.0 : 270.0];
        [gradient release];
     
        [[NSColor colorWithCalibratedWhite:0.88 alpha:1.0] set];

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to