@@ -891,7 +891,7 @@ - (void) _drawBadgeWithPressed: (BOOL) pressed
891
891
892
892
CGContextRef context = [ [ NSGraphicsContext currentContext ] graphicsPort ];
893
893
894
- CGContextSetAlpha ( context, pressed ? 0.40 : 0.25 );
894
+ CGContextSetAlpha ( context, pressed ? 0.50 : 0.35 );
895
895
CGContextBeginTransparencyLayer ( context, nil );
896
896
897
897
// Draw everything at full size, centered on the origin.
@@ -900,14 +900,25 @@ - (void) _drawBadgeWithPressed: (BOOL) pressed
900
900
NSRect borderRect = NSMakeRect ( loc.x - kFrameXInset , loc.y - kFrameYInset , w, h );
901
901
902
902
NSBezierPath * fillPath = bezierPathWithRoundedRectCornerRadius ( NSInsetRect ( borderRect, -2 , -2 ), 6 );
903
- [ [ NSColor colorWithCalibratedWhite: 1.0 alpha: 0.25 ] set ];
903
+ [ [ NSColor colorWithCalibratedWhite: 1.0 alpha: 0.45 ] set ];
904
904
[ fillPath fill ];
905
905
906
+ NSUInteger thickLineWidth = 5 ;
906
907
NSBezierPath * path = bezierPathWithRoundedRectCornerRadius ( borderRect, 4 );
907
908
[ [ NSColor blackColor ] set ];
908
- [ path setLineWidth: 3 ];
909
+ [ path setLineWidth: thickLineWidth ];
909
910
[ path stroke ];
910
911
912
+ NSUInteger thinLineWidth = 2 ;
913
+ NSRect thinBorderRect = NSMakeRect ( loc.x - kFrameXInset - thickLineWidth/4 ,
914
+ loc.y - kFrameYInset - thickLineWidth/4 ,
915
+ w + thickLineWidth/2 ,
916
+ h + thickLineWidth/2 );
917
+ NSBezierPath * thinPath = bezierPathWithRoundedRectCornerRadius ( thinBorderRect, 4 );
918
+ [ [ NSColor whiteColor ] set ];
919
+ [ thinPath setLineWidth: thinLineWidth ];
920
+ [ thinPath stroke ];
921
+
911
922
[ str drawAtPoint: loc withAttributes: attrs ];
912
923
913
924
// Now restore the graphics state:
0 commit comments