About new stuff

This commit is contained in:
lumaa-dev 2024-09-26 01:32:17 +02:00
parent fbf4b48ce3
commit 50a8458416
2 changed files with 69 additions and 14 deletions

View File

@ -125,6 +125,38 @@
} }
} }
}, },
"about.other" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Third-parties"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Services tiers"
}
}
}
},
"about.subclub" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "About sub.club"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "À propos de sub.club"
}
}
}
},
"about.version-%@" : { "about.version-%@" : {
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -5185,4 +5217,4 @@
} }
}, },
"version" : "1.0" "version" : "1.0"
} }

View File

@ -28,20 +28,43 @@ struct AboutView: View {
} }
.listRowThreaded() .listRowThreaded()
} }
Toggle("setting.experimental.activate", isOn: $userPreferences.showExperimental) Section {
.listRowThreaded() Text("about.other")
.tint(Color(uiColor: UIColor.label)) .textCase(.lowercase)
.disabled(!AppDelegate.premium) .font(.callout.lowercaseSmallCaps())
.onAppear { .foregroundStyle(Color.gray)
do { .listRowBackground(Color.appBackground)
let oldPreferences = try UserPreferences.loadAsCurrent() ?? UserPreferences.defaultPreferences
Button {
userPreferences.showExperimental = oldPreferences.showExperimental && AppDelegate.premium UniversalNavigator.static.presentedSheet = .aboutSubclub
} catch { } label: {
print(error) Text("about.subclub")
}
} }
.listRowThreaded()
}
Section {
Text(String("Bubble+"))
.textCase(.lowercase)
.font(.callout.lowercaseSmallCaps())
.foregroundStyle(Color.gray)
.listRowBackground(Color.appBackground)
Toggle("setting.experimental.activate", isOn: $userPreferences.showExperimental)
.listRowThreaded()
.tint(Color(uiColor: UIColor.label))
.disabled(!AppDelegate.premium)
.onAppear {
do {
let oldPreferences = try UserPreferences.loadAsCurrent() ?? UserPreferences.defaultPreferences
userPreferences.showExperimental = oldPreferences.showExperimental && AppDelegate.premium
} catch {
print(error)
}
}
}
} }
} }
.listThreaded() .listThreaded()