Revision: 11117
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11117&view=rev
Author: hofman
Date: 2007-09-21 09:07:41 -0700 (Fri, 21 Sep 2007)
Log Message:
-----------
Simplify blending splitview divider ends using transparent color.
Modified Paths:
--------------
trunk/bibdesk/BDSKSplitView.m
trunk/bibdesk/CIImage_BDSKExtensions.h
trunk/bibdesk/CIImage_BDSKExtensions.m
Modified: trunk/bibdesk/BDSKSplitView.m
===================================================================
--- trunk/bibdesk/BDSKSplitView.m 2007-09-21 14:48:28 UTC (rev 11116)
+++ trunk/bibdesk/BDSKSplitView.m 2007-09-21 16:07:41 UTC (rev 11117)
@@ -77,15 +77,6 @@
return self;
}
-- (void)drawBlendedJoinEndAtLeftInRect:(NSRect)rect {
- // this blends us smoothly with the a vertical divider on our left
- Class svClass = [self class];
- [[NSBezierPath bezierPathWithRect:rect] fillPathWithColor:[svClass
startColor]
- blendedAtRight:NO
- ofVerticalGradientFromColor:[svClass
startColor]
- toColor:[svClass
endColor]];
-}
-
- (void)drawBlendedJoinEndAtBottomInRect:(NSRect)rect {
// this blends us smoothly with the status bar
[[NSBezierPath bezierPathWithRect:rect]
fillPathWithHorizontalGradientFromColor:[[self class] startColor]
@@ -105,7 +96,7 @@
[self drawBlendedJoinEndAtBottomInRect:endRect];
} else {
NSDivideRect(aRect, &endRect, &ignored, END_JOIN_WIDTH,
NSMinXEdge);
- [self drawBlendedJoinEndAtLeftInRect:endRect];
+ [[NSBezierPath bezierPathWithRect:endRect]
fillPathVertically:[self isVertical] withStartColor:[CIColor clearColor]
endColor:[[self class] startColor]];
}
}
// Draw dimple
Modified: trunk/bibdesk/CIImage_BDSKExtensions.h
===================================================================
--- trunk/bibdesk/CIImage_BDSKExtensions.h 2007-09-21 14:48:28 UTC (rev
11116)
+++ trunk/bibdesk/CIImage_BDSKExtensions.h 2007-09-21 16:07:41 UTC (rev
11117)
@@ -79,4 +79,6 @@
+ (CIColor *)colorWithNSColor:(NSColor *)color;
++ (CIColor *)clearColor;
+
@end
Modified: trunk/bibdesk/CIImage_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/CIImage_BDSKExtensions.m 2007-09-21 14:48:28 UTC (rev
11116)
+++ trunk/bibdesk/CIImage_BDSKExtensions.m 2007-09-21 16:07:41 UTC (rev
11117)
@@ -244,4 +244,9 @@
return [CIColor colorWithRed:[color redComponent] green:[color
greenComponent] blue:[color blueComponent] alpha:[color alphaComponent]];
}
++ (CIColor *)clearColor;
+{
+ return [self colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0];
+}
+
@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit