feat(menubar): 支持固定居中面板与独立刷新频率及图表浮层
This commit is contained in:
@@ -15,11 +15,11 @@ struct ResourceCard<Content: View>: View {
|
||||
Image(systemName: symbol).foregroundStyle(color)
|
||||
}.font(.system(size: 13, weight: .semibold)).fixedSize()
|
||||
Spacer(minLength: 0)
|
||||
VStack(alignment: .trailing, spacing: 0) {
|
||||
HStack(alignment: .firstTextBaseline, spacing: 6) {
|
||||
AnimatedMetricText(value: value)
|
||||
.font(.system(size: 20, weight: .semibold, design: .rounded))
|
||||
.font(.system(size: 13, weight: .semibold))
|
||||
if let secondaryValue {
|
||||
AnimatedMetricText(value: secondaryValue).font(.system(size: 11, weight: .semibold))
|
||||
AnimatedMetricText(value: secondaryValue).font(.system(size: 13, weight: .semibold))
|
||||
}
|
||||
}.foregroundStyle(color).lineLimit(1).minimumScaleFactor(0.65)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user