PrefUI // Add two new UserDef items.
This commit is contained in:
parent
9c525b1d0e
commit
ffe943dfbc
|
@ -59,6 +59,12 @@ public struct VwrSettingsPaneBehavior: View {
|
||||||
@AppStorage(wrappedValue: false, UserDef.kShareAlphanumericalModeStatusAcrossClients.rawValue)
|
@AppStorage(wrappedValue: false, UserDef.kShareAlphanumericalModeStatusAcrossClients.rawValue)
|
||||||
private var shareAlphanumericalModeStatusAcrossClients: Bool
|
private var shareAlphanumericalModeStatusAcrossClients: Bool
|
||||||
|
|
||||||
|
@AppStorage(wrappedValue: true, UserDef.kShiftEisuToggleOffTogetherWithCapsLock.rawValue)
|
||||||
|
public dynamic var shiftEisuToggleOffTogetherWithCapsLock: Bool
|
||||||
|
|
||||||
|
@AppStorage(wrappedValue: false, UserDef.kBypassNonAppleCapsLockHandling.rawValue)
|
||||||
|
public dynamic var bypassNonAppleCapsLockHandling: Bool
|
||||||
|
|
||||||
var macOSMontereyOrLaterDetected: Bool { true } // Always met.
|
var macOSMontereyOrLaterDetected: Bool { true } // Always met.
|
||||||
|
|
||||||
// MARK: - Main View
|
// MARK: - Main View
|
||||||
|
@ -185,6 +191,14 @@ public struct VwrSettingsPaneBehavior: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Section {
|
Section {
|
||||||
|
VStack(alignment: .leading) {
|
||||||
|
Toggle(
|
||||||
|
LocalizedStringKey("i18n:UserDef.kBypassNonAppleCapsLockHandling.shortTitle"),
|
||||||
|
isOn: $bypassNonAppleCapsLockHandling
|
||||||
|
)
|
||||||
|
Text("i18n:UserDef.kBypassNonAppleCapsLockHandling.description")
|
||||||
|
.settingsDescription()
|
||||||
|
}
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
Toggle(
|
Toggle(
|
||||||
LocalizedStringKey("Share alphanumerical mode status across all clients"),
|
LocalizedStringKey("Share alphanumerical mode status across all clients"),
|
||||||
|
@ -215,6 +229,15 @@ public struct VwrSettingsPaneBehavior: View {
|
||||||
)
|
)
|
||||||
.settingsDescription()
|
.settingsDescription()
|
||||||
}
|
}
|
||||||
|
VStack(alignment: .leading) {
|
||||||
|
Toggle(
|
||||||
|
LocalizedStringKey("i18n:UserDef.kShiftEisuToggleOffTogetherWithCapsLock.shortTitle"),
|
||||||
|
isOn: $shiftEisuToggleOffTogetherWithCapsLock
|
||||||
|
)
|
||||||
|
Spacer()
|
||||||
|
Text("i18n:UserDef.kShiftEisuToggleOffTogetherWithCapsLock.description")
|
||||||
|
.settingsDescription()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Section {
|
Section {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
|
|
Loading…
Reference in New Issue