feat(design): 应用明亮指标配色与不透明实色面板

This commit is contained in:
2026-11-03 13:11:57 +08:00
parent df96d6853f
commit 92e8187038
19 changed files with 201 additions and 132 deletions
+1 -8
View File
@@ -15,15 +15,8 @@ struct AnimatedMetricText: View {
struct PanelCardBackground: ViewModifier {
let radius: CGFloat
@Environment(\.accessibilityReduceTransparency) private var reduceTransparency
func body(content: Content) -> some View {
content.background {
if reduceTransparency {
RoundedRectangle(cornerRadius: radius).fill(Color(nsColor: .windowBackgroundColor))
} else {
RoundedRectangle(cornerRadius: radius).fill(Color("PanelCard"))
}
}
content.background(RoundedRectangle(cornerRadius: radius).fill(Color("PanelCard")))
}
}