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:
@@ -71,8 +71,11 @@ public struct GPUWidget: Widget {
|
||||
if let anchor = chartProxy.plotFrame {
|
||||
let frame = geometry[anchor]
|
||||
Text("\(Int((value.utilization ?? 0)*100))%")
|
||||
.font(.system(size: 16, weight: .regular))
|
||||
.position(x: frame.midX, y: frame.midY)
|
||||
.font(.system(size: 14, weight: .regular))
|
||||
.position(x: frame.midX, y: frame.midY-5)
|
||||
Text("GPU")
|
||||
.font(.system(size: 8, weight: .semibold))
|
||||
.position(x: frame.midX, y: frame.midY+8)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user