|
@@ -14,15 +14,15 @@
|
|
|
[super drawRect:dirtyRect];
|
|
|
|
|
|
CGRect rect = self.bounds;
|
|
|
-// CGRect coverRect = CGRectMake(dirtyRect.size.width-2.5, 0, 0, dirtyRect.size.height);
|
|
|
-// [_color setFill];
|
|
|
+ CGRect coverRect = CGRectMake(dirtyRect.size.width-2.5, 0, 0, dirtyRect.size.height);
|
|
|
+ [_color setFill];
|
|
|
|
|
|
NSBezierPath *be = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:rect.size.width/2 yRadius:rect.size.height/2];
|
|
|
[be fill];
|
|
|
|
|
|
[_color setFill];
|
|
|
-// NSBezierPath *coverpath = [NSBezierPath bezierPathWithRect:coverRect];
|
|
|
-// [coverpath fill];
|
|
|
+ NSBezierPath *coverpath = [NSBezierPath bezierPathWithRect:coverRect];
|
|
|
+ [coverpath fill];
|
|
|
}
|
|
|
|
|
|
@end
|