mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
updated sliders to show more info like what it does 💀
and minium/max and what it curretnly is
This commit is contained in:
@@ -115,16 +115,42 @@ struct SettingsView: View {
|
||||
}
|
||||
}
|
||||
|
||||
Slider(value: $hostsManager.settings.cursorAnimations.length, in: 0.05...0.5, step: 0.05) {
|
||||
Label("Speed", systemImage: "gauge.with.dots.needle.67percent")
|
||||
VStack {
|
||||
HStack {
|
||||
Text("Animation length")
|
||||
Spacer()
|
||||
Text("\(hostsManager.settings.cursorAnimations.length)s")
|
||||
.monospaced()
|
||||
.contentTransition(.numericText())
|
||||
}
|
||||
Slider(value: $hostsManager.settings.cursorAnimations.length, in: 0.05...0.5, label: {
|
||||
EmptyView()
|
||||
}, minimumValueLabel: {
|
||||
Text("0.05")
|
||||
}, maximumValueLabel: {
|
||||
Text("0.5")
|
||||
})
|
||||
.disabled(hostsManager.settings.cursorAnimations.type == .none)
|
||||
|
||||
Slider(value: $hostsManager.settings.cursorAnimations.stretchMultiplier, in: 0.25...2, step: 0.25) {
|
||||
Label("Stretch Multiplier", systemImage: "multiply")
|
||||
}
|
||||
|
||||
VStack {
|
||||
HStack {
|
||||
Text("Stretch Multiplier")
|
||||
Spacer()
|
||||
Text("\(hostsManager.settings.cursorAnimations.length)s")
|
||||
.monospaced()
|
||||
.contentTransition(.numericText())
|
||||
}
|
||||
Slider(value: $hostsManager.settings.cursorAnimations.stretchMultiplier, in: 0.25...2, label: {
|
||||
EmptyView()
|
||||
}, minimumValueLabel: {
|
||||
Text("0.25")
|
||||
}, maximumValueLabel: {
|
||||
Text("2")
|
||||
})
|
||||
.disabled(hostsManager.settings.cursorAnimations.type != .stretchAndMove)
|
||||
}
|
||||
}
|
||||
|
||||
Section("Keepalive") {
|
||||
Toggle("location persistence", systemImage: "location.fill", isOn: $hostsManager.settings.locationPersist)
|
||||
|
||||
Reference in New Issue
Block a user