adium 3823:9ad82fb7564c: Clean up the border drawing, as all sid...
commits at adium.im
commits at adium.im
Fri Apr 1 13:04:02 UTC 2011
details: http://hg.adium.im/adium/rev/9ad82fb7564c
revision: 3823:9ad82fb7564c
branch: FloatingMessageWindowTextField
author: Thijs Alkemade <thijsalkemade at gmail.com>
date: Fri Apr 01 15:03:55 2011 +0200
Clean up the border drawing, as all sides have the same color. Also, leave the shadow on the default color (black with 1/3 alpha, instead of light gray, it looks the same).
diffs (44 lines):
diff -r 311dacbed340 -r 9ad82fb7564c Source/AIMessageEntryScrollView.m
--- a/Source/AIMessageEntryScrollView.m Fri Apr 01 13:02:28 2011 +0200
+++ b/Source/AIMessageEntryScrollView.m Fri Apr 01 15:03:55 2011 +0200
@@ -71,13 +71,12 @@
[super drawRect:dirtyRect];
NSBezierPath *bp = [NSBezierPath bezierPathWithRect:self.bounds];
+
[[self backgroundColor] setFill];
- [bp fill];
- bp = [NSBezierPath bezierPath];
+ [bp fill];
NSShadow *internalShadow = [[NSShadow alloc] init];
- [internalShadow setShadowColor:[NSColor lightGrayColor]];
[internalShadow setShadowBlurRadius:2.0];
[internalShadow setShadowOffset:NSMakeSize(0.0, -1.0)];
@@ -85,24 +84,9 @@
[bp setLineWidth:2.0];
- [bp moveToPoint:NSMakePoint(self.bounds.origin.x, self.bounds.origin.x + self.bounds.size.height)];
- [bp lineToPoint:NSMakePoint(self.bounds.origin.x, self.bounds.origin.y)];
- [bp lineToPoint:NSMakePoint(self.bounds.origin.x + self.bounds.size.width, self.bounds.origin.y)];
- [bp lineToPoint:NSMakePoint(self.bounds.origin.x + self.bounds.size.width, self.bounds.origin.y + self.bounds.size.height)];
-
[[NSColor lightGrayColor] setStroke];
[bp stroke];
-
- bp = [NSBezierPath bezierPath];
- [bp setLineWidth:2.0];
-
- [bp moveToPoint:NSMakePoint(self.bounds.origin.x, self.bounds.origin.y + self.bounds.size.height)];
- [bp lineToPoint:NSMakePoint(self.bounds.origin.x + self.bounds.size.width, self.bounds.origin.y + self.bounds.size.height)];
-
- [[NSColor lightGrayColor] setStroke];
-
- [bp stroke];
}
@end
More information about the commits
mailing list