fix(menubar): 修正进程退出判断与公网刷新及风扇语言

This commit is contained in:
2026-11-03 22:12:44 +08:00
parent ea4d0e7f23
commit c8d7326a80
13 changed files with 238 additions and 49 deletions
+2 -2
View File
@@ -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)