mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: added Based on utilization color option for Bar chart widget in the Battery module (#865)
This commit is contained in:
@@ -54,7 +54,6 @@
|
||||
</dict>
|
||||
<key>Unsupported colors</key>
|
||||
<array>
|
||||
<string>utilization</string>
|
||||
<string>pressure</string>
|
||||
</array>
|
||||
<key>Order</key>
|
||||
|
||||
@@ -117,7 +117,9 @@ public class Battery: Module {
|
||||
case let widget as Mini:
|
||||
widget.setValue(abs(value.level))
|
||||
widget.setColorZones((0.15, 0.3))
|
||||
case let widget as BarChart: widget.setValue([[ColorValue(value.level)]])
|
||||
case let widget as BarChart:
|
||||
widget.setValue([[ColorValue(value.level)]])
|
||||
widget.setColorZones((0.15, 0.3))
|
||||
case let widget as BatterykWidget:
|
||||
widget.setValue(
|
||||
percentage: value.level ,
|
||||
|
||||
Reference in New Issue
Block a user