fix(menubar): 修正进程退出判断与公网刷新及风扇语言
This commit is contained in:
@@ -28,7 +28,7 @@ nonisolated struct FanRotation {
|
||||
}
|
||||
|
||||
struct FanSpeedIndicator: View {
|
||||
let title: LocalizedStringKey
|
||||
let title: Text
|
||||
let rpm: Double?
|
||||
@Environment(\.accessibilityReduceMotion) private var reduceMotion
|
||||
@State private var rotation = FanRotation()
|
||||
@@ -40,7 +40,7 @@ struct FanSpeedIndicator: View {
|
||||
.rotationEffect(.degrees(rotation.angle(at: context.date.timeIntervalSinceReferenceDate)))
|
||||
.foregroundStyle(.secondary)
|
||||
}.frame(width: 14, height: 14).accessibilityHidden(true)
|
||||
Text(title).foregroundStyle(.secondary)
|
||||
title.foregroundStyle(.secondary)
|
||||
Spacer(minLength: 2)
|
||||
AnimatedMetricText(value: rpm.map { "\(Int($0.rounded())) RPM" } ?? "-- RPM")
|
||||
.monospacedDigit().fontWeight(.medium)
|
||||
|
||||
Reference in New Issue
Block a user