mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: change value type from Double to ColorValue in the BarChart (#441)
This commit is contained in:
@@ -200,7 +200,7 @@ public class Disk: Module {
|
||||
self.widgets.filter{ $0.isActive }.forEach { (w: Widget) in
|
||||
switch w.item {
|
||||
case let widget as Mini: widget.setValue(percentage)
|
||||
case let widget as BarChart: widget.setValue([percentage])
|
||||
case let widget as BarChart: widget.setValue([[ColorValue(percentage)]])
|
||||
case let widget as MemoryWidget: widget.setValue((DiskSize(free).getReadableMemory(), DiskSize(usedSpace).getReadableMemory()))
|
||||
default: break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user