feat: added module label to the macOS widgets

This commit is contained in:
Serhiy Mytrovtsiy
2024-07-30 19:46:14 +02:00
parent 2f3a19a589
commit d7cb4f5ddc
4 changed files with 18 additions and 6 deletions

View File

@@ -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)
}
}
}