PrefUI // Reorder certain options.

This commit is contained in:
ShikiSuen 2023-01-30 15:11:51 +08:00
parent 84c2232f8c
commit a5dfa3f2a8
1 changed files with 14 additions and 14 deletions

View File

@ -193,27 +193,19 @@ struct VwrPrefPaneExperience: View {
Text(LocalizedStringKey("Specify the behavior of intonation key when syllable composer is empty."))
.preferenceDescription()
}
SSPreferences.Section(title: "Caps Lock:") {
Toggle(
LocalizedStringKey("Show notifications when toggling Caps Lock"),
isOn: $selShowNotificationsWhenTogglingCapsLock.onChange {
PrefMgr.shared.showNotificationsWhenTogglingCapsLock = selShowNotificationsWhenTogglingCapsLock
}
).disabled(!macOSMontereyOrLaterDetected)
}
SSPreferences.Section(title: "Shift:") {
Toggle(
LocalizedStringKey("Toggle alphanumerical mode with Right-Shift"),
isOn: $selTogglingAlphanumericalModeWithRShift.onChange {
PrefMgr.shared.togglingAlphanumericalModeWithRShift = selTogglingAlphanumericalModeWithRShift
}
)
Toggle(
LocalizedStringKey("Toggle alphanumerical mode with Left-Shift"),
isOn: $selTogglingAlphanumericalModeWithLShift.onChange {
PrefMgr.shared.togglingAlphanumericalModeWithLShift = selTogglingAlphanumericalModeWithLShift
}
)
Toggle(
LocalizedStringKey("Toggle alphanumerical mode with Right-Shift"),
isOn: $selTogglingAlphanumericalModeWithRShift.onChange {
PrefMgr.shared.togglingAlphanumericalModeWithRShift = selTogglingAlphanumericalModeWithRShift
}
)
Toggle(
LocalizedStringKey("Share alphanumerical mode status across all clients"),
isOn: $selShareAlphanumericalModeStatusAcrossClients.onChange {
@ -223,6 +215,14 @@ struct VwrPrefPaneExperience: View {
!PrefMgr.shared.togglingAlphanumericalModeWithRShift && !PrefMgr.shared.togglingAlphanumericalModeWithLShift
)
}
SSPreferences.Section(title: "Caps Lock:") {
Toggle(
LocalizedStringKey("Show notifications when toggling Caps Lock"),
isOn: $selShowNotificationsWhenTogglingCapsLock.onChange {
PrefMgr.shared.showNotificationsWhenTogglingCapsLock = selShowNotificationsWhenTogglingCapsLock
}
).disabled(!macOSMontereyOrLaterDetected)
}
SSPreferences.Section(label: { Text(LocalizedStringKey("Misc Settings:")) }) {
Toggle(
LocalizedStringKey("Enable Space key for calling candidate window"),