mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-03-14 22:22:41 +00:00
Add colorScheme in URL
This commit is contained in:
parent
7e4b974728
commit
24131ffc25
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ struct PremiumAcccountSubsciptionSheetView: View {
|
|||
@Environment(Theme.self) private var theme: Theme
|
||||
@Environment(\.openURL) private var openURL
|
||||
@Environment(AppAccountsManager.self) private var appAccount: AppAccountsManager
|
||||
@Environment(\.colorScheme) private var colorScheme
|
||||
|
||||
@State private var isSubscibeSelected: Bool = false
|
||||
|
||||
|
@ -123,7 +124,7 @@ struct PremiumAcccountSubsciptionSheetView: View {
|
|||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
||||
if let accountName = appAccount.currentAccount.accountName,
|
||||
let premiumUsername = account.premiumUsername,
|
||||
let url = URL(string: "https://\(AppInfo.premiumInstance)/@\(premiumUsername)/subscribe?callback=icecubesapp://subclub&id=@\(accountName)&amount=\(500)¤cy=USD") {
|
||||
let url = URL(string: "https://\(AppInfo.premiumInstance)/@\(premiumUsername)/subscribe?callback=icecubesapp://subclub&id=@\(accountName)&amount=\(500)¤cy=USD&theme=\(colorScheme)") {
|
||||
openURL(url)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue