mirror of
https://github.com/pawelorzech/MacTorn.git
synced 2026-03-31 12:15:48 +00:00
feat: add booster cooldown target setting (Boosters/Alcohol)
This commit is contained in:
parent
f3a340b9d4
commit
ce183a794a
1 changed files with 14 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue