fix: fixed a long-term battery widget glitch when a black vertical line is visible in the widget preview

This commit is contained in:
Serhiy Mytrovtsiy
2025-12-01 21:29:41 +01:00
parent f34042b3c2
commit a96232b0c1

View File

@@ -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()