mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed a long-term battery widget glitch when a black vertical line is visible in the widget preview
This commit is contained in:
@@ -174,7 +174,7 @@ public class BatteryWidget: WidgetWrapper {
|
||||
batteryPointSeparator.line(to: CGPoint(x: bPX, y: batteryFrame.bounds.origin.y + batteryFrame.bounds.height))
|
||||
ctx.saveGState()
|
||||
ctx.setBlendMode(.destinationOut)
|
||||
NSColor.textColor.set()
|
||||
NSColor.white.set()
|
||||
batteryPointSeparator.lineWidth = borderWidth
|
||||
batteryPointSeparator.stroke()
|
||||
ctx.restoreGState()
|
||||
|
||||
Reference in New Issue
Block a user