Skip to content

Commit

Permalink
WhatsNewKit theming
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mattiello <[email protected]>
  • Loading branch information
JoeMatt committed Jan 9, 2025
1 parent 57a8075 commit fb01c30
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Provenance/Main UI/ProvenanceApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Foundation
import PVLogging
import PVSwiftUI
import PVFeatureFlags
import PVThemes
#if canImport(FreemiumKit)
import FreemiumKit
#endif
Expand Down Expand Up @@ -36,7 +37,8 @@ struct ProvenanceApp: App {
WhatsNewEnvironment(
// Specify in which way the presented WhatsNew Versions are stored.
// In default the `UserDefaultsWhatsNewVersionStore` is used.
versionStore: NSUbiquitousKeyValueWhatsNewVersionStore(), // UserDefaultsWhatsNewVersionStore(),
versionStore: // InMemoryWhatsNewVersionStore(),
NSUbiquitousKeyValueWhatsNewVersionStore(), // UserDefaultsWhatsNewVersionStore(),
// Pass a `WhatsNewCollectionProvider` or an array of WhatsNew instances
whatsNewCollection: self
)
Expand Down Expand Up @@ -158,8 +160,8 @@ extension ProvenanceApp: WhatsNewCollectionProvider {
],
primaryAction: .init(
title: "Continue",
backgroundColor: .accentColor,
foregroundColor: .white,
backgroundColor: ThemeManager.shared.currentPalette.switchON?.swiftUIColor ?? .accentColor,
foregroundColor: ThemeManager.shared.currentPalette.switchThumb?.swiftUIColor ?? .white,
hapticFeedback: .notification(.success)
)
)
Expand Down

0 comments on commit fb01c30

Please sign in to comment.