feat: add booster cooldown target setting (Boosters/Alcohol)

This commit is contained in:
Paweł Orzech 2026-03-14 22:57:10 +01:00
parent f3a340b9d4
commit ce183a794a
No known key found for this signature in database

View file

@ -5,6 +5,7 @@ struct SettingsView: View {
@AppStorage("appearanceMode") private var appearanceMode: String = AppearanceMode.system.rawValue
@AppStorage("reduceTransparency") private var reduceTransparency: Bool = false
@AppStorage("preferredBrowser") private var preferredBrowser: String = PreferredBrowser.system.rawValue
@AppStorage("boosterCooldownTarget") private var boosterCooldownTarget: String = "boosters"
@State private var inputKey: String = ""
@State private var showCredits: Bool = false
@State private var availableBrowsers: [PreferredBrowser] = PreferredBrowser.availableBrowsers()
@ -129,6 +130,19 @@ struct SettingsView: View {
Toggle("Reduce Transparency", isOn: $reduceTransparency)
.toggleStyle(.switch)
}
// Booster Cooldown Target
HStack {
Image(systemName: "arrow.up.circle.fill")
.foregroundColor(.secondary)
.frame(width: 20)
Picker("Booster cooldown link", selection: $boosterCooldownTarget) {
Text("Boosters").tag("boosters")
Text("Alcohol").tag("alcohol")
}
.pickerStyle(.segmented)
}
}
.padding(.horizontal)