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-%@" : {
"localizations" : {
"en" : {
@ -5185,4 +5217,4 @@
}
},
"version" : "1.0"
}
}

View File

@ -28,20 +28,43 @@ struct AboutView: View {
}
.listRowThreaded()
}
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)
}
Section {
Text("about.other")
.textCase(.lowercase)
.font(.callout.lowercaseSmallCaps())
.foregroundStyle(Color.gray)
.listRowBackground(Color.appBackground)
Button {
UniversalNavigator.static.presentedSheet = .aboutSubclub
} label: {
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()