diff --git a/Plugin/Plugin.m b/Plugin/Plugin.m index 5ce2c385..9e014017 100644 --- a/Plugin/Plugin.m +++ b/Plugin/Plugin.m @@ -532,7 +532,7 @@ - (void) _drawBadgeWithPressed: (BOOL) pressed CGContextRef context = [ [ NSGraphicsContext currentContext ] graphicsPort ]; - CGContextSetAlpha( context, pressed ? 0.60 : 0.45 ); + CGContextSetAlpha( context, pressed ? 0.40 : 0.25 ); CGContextBeginTransparencyLayer( context, nil ); // Draw everything at full size, centered on the origin. @@ -541,7 +541,7 @@ - (void) _drawBadgeWithPressed: (BOOL) pressed NSRect borderRect = NSMakeRect( loc.x - kFrameXInset, loc.y - kFrameYInset, w, h ); NSBezierPath* fillPath = bezierPathWithRoundedRectCornerRadius( NSInsetRect( borderRect, -2, -2 ), 6 ); - [ [ NSColor colorWithCalibratedWhite: 1.0 alpha: 0.45 ] set ]; + [ [ NSColor colorWithCalibratedWhite: 1.0 alpha: 0.25 ] set ]; [ fillPath fill ]; NSBezierPath* path = bezierPathWithRoundedRectCornerRadius( borderRect, 4 ); @@ -560,7 +560,7 @@ - (void) _drawBadgeWithPressed: (BOOL) pressed NSImage *gearImage = [NSImage imageNamed:@"NSActionTemplate"]; NSColor *startingColor = [NSColor colorWithDeviceWhite:1.0 alpha:1.0]; - NSColor *endingColor = [NSColor colorWithDeviceWhite:1.0 alpha:0.20]; + NSColor *endingColor = [NSColor colorWithDeviceWhite:1.0 alpha:0.0]; NSGradient *gradient = [[NSGradient alloc] initWithStartingColor:startingColor endingColor:endingColor]; NSPoint gearImageCenter = NSMakePoint(0 - viewWidth/2 + margin + gearImage.size.height/2, @@ -597,8 +597,8 @@ - (void) _drawBackground NSRect fillRect = NSInsetRect(selfBounds, 1.0, 1.0); NSRect strokeRect = selfBounds; - NSColor *startingColor = [NSColor colorWithDeviceWhite:1.0 alpha:0.35]; - NSColor *endingColor = [NSColor colorWithDeviceWhite:0.0 alpha:0.35]; + NSColor *startingColor = [NSColor colorWithDeviceWhite:1.0 alpha:0.15]; + NSColor *endingColor = [NSColor colorWithDeviceWhite:0.0 alpha:0.15]; NSGradient *gradient = [[NSGradient alloc] initWithStartingColor:startingColor endingColor:endingColor]; // When the mouse is up or outside the view, we want a convex look, so we draw the gradient downward (90+180=270 degrees).