PrefUI // Remove certain misbehaving bottom dividers.
This commit is contained in:
parent
8cae4d1c8c
commit
1828d70b47
|
@ -54,7 +54,7 @@ struct suiPrefPaneGeneral: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ScrollView {
|
ScrollView {
|
||||||
Preferences.Container(contentWidth: contentWidth) {
|
Preferences.Container(contentWidth: contentWidth) {
|
||||||
Preferences.Section(bottomDivider: false, label: { Text(LocalizedStringKey("Candidate Size:")) }) {
|
Preferences.Section(label: { Text(LocalizedStringKey("Candidate Size:")) }) {
|
||||||
Picker(
|
Picker(
|
||||||
"",
|
"",
|
||||||
selection: $selCandidateUIFontSize.onChange {
|
selection: $selCandidateUIFontSize.onChange {
|
||||||
|
@ -82,7 +82,7 @@ struct suiPrefPaneGeneral: View {
|
||||||
Text(LocalizedStringKey("Choose candidate font size for better visual clarity."))
|
Text(LocalizedStringKey("Choose candidate font size for better visual clarity."))
|
||||||
.preferenceDescription()
|
.preferenceDescription()
|
||||||
}
|
}
|
||||||
Preferences.Section(bottomDivider: false, label: { Text(LocalizedStringKey("UI Language:")) }) {
|
Preferences.Section(label: { Text(LocalizedStringKey("UI Language:")) }) {
|
||||||
Picker(
|
Picker(
|
||||||
LocalizedStringKey("Follow OS settings"),
|
LocalizedStringKey("Follow OS settings"),
|
||||||
selection: $selUILanguage.onChange {
|
selection: $selUILanguage.onChange {
|
||||||
|
@ -114,7 +114,7 @@ struct suiPrefPaneGeneral: View {
|
||||||
Text(LocalizedStringKey("Change user interface language (will reboot the IME)."))
|
Text(LocalizedStringKey("Change user interface language (will reboot the IME)."))
|
||||||
.preferenceDescription()
|
.preferenceDescription()
|
||||||
}
|
}
|
||||||
Preferences.Section(bottomDivider: true, label: { Text(LocalizedStringKey("Candidate Layout:")) }) {
|
Preferences.Section(label: { Text(LocalizedStringKey("Candidate Layout:")) }) {
|
||||||
Picker(
|
Picker(
|
||||||
"",
|
"",
|
||||||
selection: $selEnableHorizontalCandidateLayout.onChange {
|
selection: $selEnableHorizontalCandidateLayout.onChange {
|
||||||
|
@ -138,7 +138,7 @@ struct suiPrefPaneGeneral: View {
|
||||||
.controlSize(.small)
|
.controlSize(.small)
|
||||||
.disabled(mgrPrefs.useIMKCandidateWindow)
|
.disabled(mgrPrefs.useIMKCandidateWindow)
|
||||||
}
|
}
|
||||||
Preferences.Section(bottomDivider: true, label: { Text(LocalizedStringKey("Output Settings:")) }) {
|
Preferences.Section(label: { Text(LocalizedStringKey("Output Settings:")) }) {
|
||||||
Toggle(
|
Toggle(
|
||||||
LocalizedStringKey("Auto-convert traditional Chinese glyphs to KangXi characters"),
|
LocalizedStringKey("Auto-convert traditional Chinese glyphs to KangXi characters"),
|
||||||
isOn: $selEnableKanjiConvToKangXi.onChange {
|
isOn: $selEnableKanjiConvToKangXi.onChange {
|
||||||
|
|
|
@ -202,7 +202,7 @@ struct suiPrefPaneKeyboard: View {
|
||||||
Spacer().frame(width: 30)
|
Spacer().frame(width: 30)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Preferences.Section(bottomDivider: true, label: { Text(LocalizedStringKey("Alphanumerical Layout:")) }) {
|
Preferences.Section(label: { Text(LocalizedStringKey("Alphanumerical Layout:")) }) {
|
||||||
HStack {
|
HStack {
|
||||||
Picker(
|
Picker(
|
||||||
"",
|
"",
|
||||||
|
@ -230,7 +230,7 @@ struct suiPrefPaneKeyboard: View {
|
||||||
Spacer().frame(width: 30)
|
Spacer().frame(width: 30)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Preferences.Section(bottomDivider: true, label: { Text(LocalizedStringKey("Keyboard Shortcuts:")) }) {
|
Preferences.Section(label: { Text(LocalizedStringKey("Keyboard Shortcuts:")) }) {
|
||||||
HStack(alignment: .top, spacing: NSFont.systemFontSize) {
|
HStack(alignment: .top, spacing: NSFont.systemFontSize) {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
Toggle(
|
Toggle(
|
||||||
|
|
Loading…
Reference in New Issue