diff --git a/macosx/FilterBarView.m b/macosx/FilterBarView.m index 62fdb1506..5da8ed28e 100644 --- a/macosx/FilterBarView.m +++ b/macosx/FilterBarView.m @@ -82,7 +82,8 @@ NSRectFillListWithColors(gridRects, colorRects, count); - [fGradient drawInRect: rect angle: 270.0]; + const NSRect gradientRect = NSMakeRect(NSMinX(rect), 1.0, NSWidth(rect), NSHeight([self bounds]) - 1.0 - 1.0); //proper gradient requires the full height of the bar + [fGradient drawInRect: gradientRect angle: 270.0]; } @end diff --git a/macosx/StatusBarView.m b/macosx/StatusBarView.m index dc512e215..04d07f82f 100644 --- a/macosx/StatusBarView.m +++ b/macosx/StatusBarView.m @@ -100,7 +100,10 @@ } if (active) - [fGradient drawInRect: rect angle: 270.0]; + { + const NSRect gradientRect = NSMakeRect(NSMinX(rect), 1.0, NSWidth(rect), NSHeight([self bounds]) - 1.0 - 1.0); //proper gradient requires the full height of the bar + [fGradient drawInRect: gradientRect angle: 270.0]; + } else { gridRects[count] = rect;