mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-09 04:06:57 -04:00
Use system colors
This commit is contained in:
parent
9f3089fbfe
commit
b2f89081d8
@ -26,10 +26,10 @@ struct CircularProgressGaugeStyle: ProgressViewStyle {
|
|||||||
func makeBody(configuration: Configuration) -> some View {
|
func makeBody(configuration: Configuration) -> some View {
|
||||||
ZStack {
|
ZStack {
|
||||||
Circle()
|
Circle()
|
||||||
.stroke(Color.gray, lineWidth: lineWidth)
|
.stroke(Color.secondary, lineWidth: lineWidth)
|
||||||
Circle()
|
Circle()
|
||||||
.trim(from: 0, to: CGFloat(configuration.fractionCompleted ?? 0))
|
.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))
|
.rotationEffect(.degrees(-90))
|
||||||
.animation(.linear, value: configuration.fractionCompleted)
|
.animation(.linear, value: configuration.fractionCompleted)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user