From 36d4aa5a88fdd68d041cff6f76f8a413f2237fe4 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Mon, 30 Jan 2023 20:15:17 +0100 Subject: [PATCH] feat: removed battery colorizing (<20%) for inside percentage when colorizing is disabled (#1254) --- Kit/Widgets/Battery.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kit/Widgets/Battery.swift b/Kit/Widgets/Battery.swift index 38e1da74..28854c91 100644 --- a/Kit/Widgets/Battery.swift +++ b/Kit/Widgets/Battery.swift @@ -165,7 +165,7 @@ public class BatterykWidget: WidgetWrapper { width: maxWidth, height: batterySize.height - offset*2 - borderWidth*2 - 1 ), xRadius: 1, yRadius: 1) - color.withAlphaComponent(0.65).set() + (self.colorState ? color : NSColor.textColor).withAlphaComponent(0.65).set() innerUnderground.fill() }