feat: removed battery colorizing (<20%) for inside percentage when colorizing is disabled (#1254)

This commit is contained in:
Serhiy Mytrovtsiy
2023-01-30 20:15:17 +01:00
parent 7939fac3ce
commit 36d4aa5a88

View File

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