Revision: 5339
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5339&view=rev
Author:   hofman
Date:     2009-04-29 17:07:16 +0000 (Wed, 29 Apr 2009)

Log Message:
-----------
use shadow

Modified Paths:
--------------
    trunk/SKSideWindow.m

Modified: trunk/SKSideWindow.m
===================================================================
--- trunk/SKSideWindow.m        2009-04-29 16:55:54 UTC (rev 5338)
+++ trunk/SKSideWindow.m        2009-04-29 17:07:16 UTC (rev 5339)
@@ -253,6 +253,7 @@
 - (void)drawRect:(NSRect)aRect {
     NSRect ignored, topRect, bottomRect, rect = [self bounds];
     NSPoint startPoint, endPoint;
+    NSShadow *shade = [[[NSShadow alloc] init] autorelease];
     
     NSDivideRect(rect, &topRect, &ignored, 2.0 * CORNER_RADIUS, NSMaxYEdge);
     NSDivideRect(rect, &bottomRect, &ignored, 2.0 * CORNER_RADIUS, NSMinYEdge);
@@ -275,22 +276,19 @@
         [NSBezierPath fillLeftRoundRectInRect:NSInsetRect(rect, 0.0, 1.5) 
radius:CORNER_RADIUS];
     }
     
+    [shade setShadowBlurRadius:0.0];
+    [shade setShadowOffset:NSMakeSize(1.0, 0.0)];
+    [shade setShadowColor:[NSColor colorWithCalibratedWhite:0.9 alpha:1.0]];
     rect = [self resizeHandleRect];
     startPoint = NSMakePoint(NSMidX(rect) - 1.5, NSMidY(rect) - 10.0);
     endPoint = NSMakePoint(startPoint.x, startPoint.y + 20.0);
     [NSBezierPath setDefaultLineWidth:1.0];
     [[NSColor colorWithCalibratedWhite:0.5 alpha:1.0] set];
+    [shade set];
     [NSBezierPath strokeLineFromPoint:startPoint toPoint:endPoint];
     startPoint.x += 2.0;
     endPoint.x += 2.0;
     [NSBezierPath strokeLineFromPoint:startPoint toPoint:endPoint];
-    [[NSColor colorWithCalibratedWhite:0.9 alpha:1.0] set];
-    startPoint.x -= 1.0;
-    endPoint.x -= 1.0;
-    [NSBezierPath strokeLineFromPoint:startPoint toPoint:endPoint];
-    startPoint.x += 2.0;
-    endPoint.x += 2.0;
-    [NSBezierPath strokeLineFromPoint:startPoint toPoint:endPoint];
     
     [NSGraphicsContext restoreGraphicsState];
 }


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
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to