mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added module label to the macOS widgets
This commit is contained in:
@@ -72,7 +72,10 @@ public struct DiskWidget: Widget {
|
||||
let frame = geometry[anchor]
|
||||
Text("\(Int((100*(value.size-value.free))/value.size))%")
|
||||
.font(.system(size: 16, weight: .regular))
|
||||
.position(x: frame.midX, y: frame.midY)
|
||||
.position(x: frame.midX, y: frame.midY-5)
|
||||
Text("Disk")
|
||||
.font(.system(size: 9, weight: .semibold))
|
||||
.position(x: frame.midX, y: frame.midY+10)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user