feat(design): 应用明亮指标配色与不透明实色面板
This commit is contained in:
@@ -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")))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user