diff --git a/Kit/Widgets/NetworkChart.swift b/Kit/Widgets/NetworkChart.swift index fa9269c0..5919e327 100644 --- a/Kit/Widgets/NetworkChart.swift +++ b/Kit/Widgets/NetworkChart.swift @@ -209,23 +209,25 @@ public class NetworkChart: WidgetWrapper { context.saveGState() var underLinePath = topLinePath.copy() as! NSBezierPath - underLinePath.line(to: CGPoint(x: columnXPoint(points.count), y: zero)) + underLinePath.line(to: CGPoint(x: columnXPoint(points.count - 1), y: zero)) underLinePath.line(to: CGPoint(x: columnXPoint(0), y: zero)) underLinePath.close() underLinePath.addClip() bottomColor?.withAlphaComponent(0.5).setFill() - NSBezierPath(rect: self.frame).fill() + let topFillRect = NSRect(x: chartFrame.origin.x - lineWidth, y: chartFrame.origin.y, width: chartFrame.width + (lineWidth*3), height: chartFrame.height) + NSBezierPath(rect: topFillRect).fill() context.restoreGState() context.saveGState() underLinePath = bottomLinePath.copy() as! NSBezierPath - underLinePath.line(to: CGPoint(x: columnXPoint(points.count), y: zero)) + underLinePath.line(to: CGPoint(x: columnXPoint(points.count - 1), y: zero)) underLinePath.line(to: CGPoint(x: columnXPoint(0), y: zero)) underLinePath.close() underLinePath.addClip() topColor?.withAlphaComponent(0.5).setFill() - NSBezierPath(rect: self.frame).fill() + let bottomFillRect = NSRect(x: chartFrame.origin.x - lineWidth, y: chartFrame.origin.y, width: chartFrame.width + (lineWidth*3), height: chartFrame.height) + NSBezierPath(rect: bottomFillRect).fill() context.restoreGState() diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index 931f9099..d6d74b25 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 699 + 701 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType diff --git a/Widgets/Supporting Files/Info.plist b/Widgets/Supporting Files/Info.plist index d5b33f9f..492f9e44 100644 --- a/Widgets/Supporting Files/Info.plist +++ b/Widgets/Supporting Files/Info.plist @@ -13,7 +13,7 @@ CFBundleShortVersionString 2.11.43 CFBundleVersion - 699 + 701 NSExtension NSExtensionPointIdentifier