From fc4d6f7f42c410d843cfca58ab26869f3da2af7d Mon Sep 17 00:00:00 2001 From: Marcin Czachurski Date: Sun, 22 Oct 2023 15:59:33 +0200 Subject: [PATCH] Revert back loader color --- Vernissage/VernissageApp.swift | 2 -- .../Sources/WidgetsKit/Widgets/LoadingIndicator.swift | 8 +------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Vernissage/VernissageApp.swift b/Vernissage/VernissageApp.swift index 2938621..7208cca 100644 --- a/Vernissage/VernissageApp.swift +++ b/Vernissage/VernissageApp.swift @@ -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)]) diff --git a/WidgetsKit/Sources/WidgetsKit/Widgets/LoadingIndicator.swift b/WidgetsKit/Sources/WidgetsKit/Widgets/LoadingIndicator.swift index 8b0c1a4..12deefc 100644 --- a/WidgetsKit/Sources/WidgetsKit/Widgets/LoadingIndicator.swift +++ b/WidgetsKit/Sources/WidgetsKit/Widgets/LoadingIndicator.swift @@ -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() - } -}