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:
@@ -74,7 +74,10 @@ public struct CPUWidget: Widget {
|
||||
let frame = geometry[anchor]
|
||||
Text("\(Int(value.totalUsage*100))%")
|
||||
.font(.system(size: 16, weight: .regular))
|
||||
.position(x: frame.midX, y: frame.midY)
|
||||
.position(x: frame.midX, y: frame.midY-5)
|
||||
Text("CPU")
|
||||
.font(.system(size: 9, weight: .semibold))
|
||||
.position(x: frame.midX, y: frame.midY+10)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user