Cleanup
This commit is contained in:
parent
a8f0b43c99
commit
b188e77449
@ -2,8 +2,8 @@ import Foundation
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct Colors {
|
struct Colors {
|
||||||
static let accentColor:Color = Color(red: 0.89, green: 0.58, blue: 0.36)
|
static let accent:Color = Color(red: 0.89, green: 0.58, blue: 0.36)
|
||||||
static let offWhiteColor:Color = Color(red: 0.97, green: 0.92, blue: 0.9)
|
static let offWhite:Color = Color(red: 0.97, green: 0.92, blue: 0.9)
|
||||||
static let mediumGrey:Color = Color(red: 0.62, green: 0.6, blue: 0.58)
|
static let mediumGrey:Color = Color(red: 0.62, green: 0.6, blue: 0.58)
|
||||||
static let darkGrey:Color = Color(red: 0.32, green: 0.31, blue: 0.3);
|
static let darkGrey:Color = Color(red: 0.32, green: 0.31, blue: 0.3);
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ struct GaugeProgressStyle: ProgressViewStyle {
|
|||||||
.stroke(Colors.darkGrey, style: StrokeStyle(lineWidth: 2))
|
.stroke(Colors.darkGrey, style: StrokeStyle(lineWidth: 2))
|
||||||
Circle()
|
Circle()
|
||||||
.trim(from: 0, to: fractionCompleted)
|
.trim(from: 0, to: fractionCompleted)
|
||||||
.stroke(Colors.accentColor, style: StrokeStyle(lineWidth: 4, lineCap: .round))
|
.stroke(Colors.accent, style: StrokeStyle(lineWidth: 4, lineCap: .round))
|
||||||
.rotationEffect(.degrees(90))
|
.rotationEffect(.degrees(90))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ struct WonderousWidgetView : View {
|
|||||||
if(showTitle) {
|
if(showTitle) {
|
||||||
Text("Collection")
|
Text("Collection")
|
||||||
.font(.system(size: 15))
|
.font(.system(size: 15))
|
||||||
.foregroundColor(Colors.offWhiteColor)
|
.foregroundColor(Colors.offWhite)
|
||||||
}
|
}
|
||||||
Spacer();
|
Spacer();
|
||||||
if(showIcon) {
|
if(showIcon) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user