Revert back loader color

This commit is contained in:
Marcin Czachurski 2023-10-22 15:59:33 +02:00
parent bfde175aab
commit fc4d6f7f42
2 changed files with 1 additions and 9 deletions

View File

@ -82,7 +82,6 @@ struct VernissageApp: App {
self.theme = newValue.colorScheme()
}
.onChange(of: applicationState.tintColor) { oldValue, newValue in
UIRefreshControl.appearance().tintColor = self.applicationState.tintColor.uiColor()
self.tintColor = newValue.color()
}
.onChange(of: applicationState.account) { oldValue, newValue in
@ -109,7 +108,6 @@ struct VernissageApp: App {
private func onApplicationStart() async {
UIPageControl.appearance().currentPageIndicatorTintColor = UIColor.white.withAlphaComponent(0.7)
UIPageControl.appearance().pageIndicatorTintColor = UIColor.white.withAlphaComponent(0.4)
UIRefreshControl.appearance().tintColor = self.applicationState.tintColor.uiColor()
// Configure TipKit.
try? Tips.configure([.displayFrequency(.daily), .datastoreLocation(.applicationDefault)])

View File

@ -18,13 +18,7 @@ public struct LoadingIndicator: View {
public var body: some View {
ProgressView()
.tint(applicationState.tintColor.color())
.tint(.gray)
.controlSize(self.controlSize)
}
}
struct LoadingIndicator_Previews: PreviewProvider {
static var previews: some View {
LoadingIndicator()
}
}