Use system colors

This commit is contained in:
Balazs Perlaki-Horvath 2025-02-02 22:31:23 +01:00 committed by Kelson
parent 9f3089fbfe
commit b2f89081d8

View File

@ -26,10 +26,10 @@ struct CircularProgressGaugeStyle: ProgressViewStyle {
func makeBody(configuration: Configuration) -> some View {
ZStack {
Circle()
.stroke(Color.gray, lineWidth: lineWidth)
.stroke(Color.secondary, lineWidth: lineWidth)
Circle()
.trim(from: 0, to: CGFloat(configuration.fractionCompleted ?? 0))
.stroke(Color.white, style: StrokeStyle(lineWidth: lineWidth, lineCap: .round, miterLimit: 0))
.stroke(Color.primary, style: StrokeStyle(lineWidth: lineWidth, lineCap: .round, miterLimit: 0))
.rotationEffect(.degrees(-90))
.animation(.linear, value: configuration.fractionCompleted)
}