From 8d8c0246feefaf182e4392a3302a81f453b3a884 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 5 May 2023 13:57:05 +0800 Subject: [PATCH] PrefUI // Remove useless blank lines. --- Source/Modules/UIModules/PrefUI/VwrPrefPaneBehavior.swift | 7 ------- .../Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift | 7 ------- Source/Modules/UIModules/PrefUI/VwrPrefPaneCassette.swift | 3 --- Source/Modules/UIModules/PrefUI/VwrPrefPaneDevZone.swift | 1 - Source/Modules/UIModules/PrefUI/VwrPrefPaneGeneral.swift | 1 - Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift | 2 -- Source/Modules/UIModules/PrefUI/VwrPrefPaneOutput.swift | 1 - 7 files changed, 22 deletions(-) diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneBehavior.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneBehavior.swift index b892925d..931ce984 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneBehavior.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneBehavior.swift @@ -89,7 +89,6 @@ struct VwrPrefPaneBehavior: View { "If unchecked, the ESC key will try cleaning the unfinished readings / strokes first, and will commit the current composition buffer if there's no unfinished readings / strkes." ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Enter:".localized, bottomDivider: true) { @@ -102,7 +101,6 @@ struct VwrPrefPaneBehavior: View { "Otherwise, only the candidate keys are allowed to confirm associates." ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Shift+BackSpace:".localized, bottomDivider: true) { @@ -117,7 +115,6 @@ struct VwrPrefPaneBehavior: View { .labelsHidden() .pickerStyle(RadioGroupPickerStyle()) Text(LocalizedStringKey("Disassembling process does not work with non-phonetic reading keys.")) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "(Shift+)Tab:", bottomDivider: true) { @@ -132,7 +129,6 @@ struct VwrPrefPaneBehavior: View { .horizontalRadioGroupLayout() .pickerStyle(RadioGroupPickerStyle()) Text(LocalizedStringKey("Choose the behavior of (Shift+)Tab key in the candidate window.")) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "(Shift+)Space:".localized, bottomDivider: true) { @@ -146,7 +142,6 @@ struct VwrPrefPaneBehavior: View { .labelsHidden() .pickerStyle(RadioGroupPickerStyle()) Text(LocalizedStringKey("Choose the behavior of (Shift+)Space key with candidates.")) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Shift+Letter:".localized, bottomDivider: true) { @@ -163,7 +158,6 @@ struct VwrPrefPaneBehavior: View { .labelsHidden() .pickerStyle(RadioGroupPickerStyle()) Text(LocalizedStringKey("Choose the behavior of Shift+Letter key with letter inputs.")) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Intonation Key:".localized, bottomDivider: true) { @@ -178,7 +172,6 @@ struct VwrPrefPaneBehavior: View { .labelsHidden() .pickerStyle(RadioGroupPickerStyle()) Text(LocalizedStringKey("Specify the behavior of intonation key when syllable composer is empty.")) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Shift:", bottomDivider: true) { diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift index 5955a734..fdf95401 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift @@ -82,7 +82,6 @@ struct VwrPrefPaneCandidates: View { + CtlPrefUIShared.sentenceSeparator + "Tadokoro candidate window shows 4 rows / columns by default, providing similar experiences from Microsoft New Phonetic IME and macOS bult-in Chinese IME (since macOS 10.9). However, for some users who have presbyopia, they prefer giant candidate font sizes, resulting a concern that multiple rows / columns of candidates can make the candidate window looks too big, hence this option. Note that this option will be dismissed if the typing context is vertical, forcing the candidates to be shown in only one row / column. Only one reverse-lookup result can be made available in single row / column mode due to reduced candidate window size.".localized ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Candidate Size:".localized, bottomDivider: true) { @@ -144,7 +143,6 @@ struct VwrPrefPaneCandidates: View { + CtlPrefUIShared.sentenceSeparator + "The lookup results are supplied by the CIN cassette module.".localized ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) Toggle( LocalizedStringKey("Always use fixed listing order in candidate window"), @@ -155,7 +153,6 @@ struct VwrPrefPaneCandidates: View { "This will stop user override model from affecting how candidates get sorted." ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) Toggle( LocalizedStringKey("Consolidate the context on confirming candidate selection"), @@ -164,7 +161,6 @@ struct VwrPrefPaneCandidates: View { Text( "For example: When typing “章太炎” and you want to override the “太” with “泰”, and the raw operation index range [1,2) which bounds are cutting the current node “章太炎” in range [0,3). If having lack of the pre-consolidation process, this word will become something like “張泰言” after the candidate selection. Only if we enable this consolidation, this word will become “章泰炎” which is the expected result that the context is kept as-is.".localized ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Experimental:".localized) { @@ -178,12 +174,10 @@ struct VwrPrefPaneCandidates: View { Text( LocalizedStringKey("⚠︎ This will reboot the vChewing IME.") ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) Text( "IMK candidate window relies on certain Apple private APIs which are force-exposed by using bridging headers. Its usability, at this moment, is only guaranteed from macOS 10.14 Mojave to macOS 13 Ventura. Further tests are required in the future in order to tell whether it is usable in newer macOS releases.".localized ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) Toggle( LocalizedStringKey("Enable mouse wheel support for Tadokoro Candidate Window"), @@ -200,7 +194,6 @@ struct VwrPrefPaneCandidates: View { Text( "By checking this, Tadokoro Candidate Window will use SwiftUI. SwiftUI was being used in vChewing 3.3.8 and before. However, SwiftUI has unacceptable responsiveness & latency & efficiency problems in rendering the candidate panel UI. That's why a refactored version has been introduced since vChewing 3.3.9 using Cocoa, providing an optimized user experience with blasing-fast operation responsiveness, plus experimental mouse-wheel support.".localized ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } } diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneCassette.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneCassette.swift index fc4c1c4a..9bde56da 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneCassette.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneCassette.swift @@ -121,7 +121,6 @@ struct VwrPrefPaneCassette: View { "Cassette mode is similar to the CIN support of the Yahoo Kimo IME, allowing users to use their own CIN tables to implement their stroked-based input schema (e.g. Wubi, Cangjie, Boshiamy, etc.) as a plan-B in vChewing IME. However, since vChewing won't compromise its phonabet input mode experience for this cassette mode, users might not feel comfortable enough comparing to their experiences with RIME (recommended) or OpenVanilla (deprecated)." ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } @@ -141,7 +140,6 @@ struct VwrPrefPaneCassette: View { "All strokes in the composition buffer will be shown as ASCII keyboard characters unless this option is enabled. Stroke is definable in the “%keyname” section of the CIN file." ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) Picker( "", @@ -159,7 +157,6 @@ struct VwrPrefPaneCassette: View { "This conversion only affects the cassette module, converting typed contents to either Simplified Chinese or Traditional Chinese in accordance with this setting and your current input mode." ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } } diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneDevZone.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneDevZone.swift index 438238d4..aabaf98d 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneDevZone.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneDevZone.swift @@ -46,7 +46,6 @@ struct VwrPrefPaneDevZone: View { Text( "Some clients with web-based front UI may have issues rendering segmented thick underlines drawn by their implemented “setMarkedText()”. This option stops the input method from delivering segmented thick underlines to “client().setMarkedText()”. Note that segmented thick underlines are only used in marking mode, unless the client itself misimplements the IMKTextInput method “setMarkedText()”. This option only affects the inline composition buffer.".localized ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } } diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneGeneral.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneGeneral.swift index 43fdbf3a..963d98af 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneGeneral.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneGeneral.swift @@ -83,7 +83,6 @@ struct VwrPrefPaneGeneral: View { comment: "" ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth).padding(.bottom, NSFont.systemFontSize) } SSPreferences.Settings.Section(title: "UI Language:".localized) { diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift index 79add6c8..6f94b006 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift @@ -102,7 +102,6 @@ struct VwrPrefPaneKeyboard: View { comment: "" ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Alphanumerical Layout:".localized) { @@ -126,7 +125,6 @@ struct VwrPrefPaneKeyboard: View { comment: "" ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Keyboard Shortcuts:".localized) { diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneOutput.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneOutput.swift index 3989af29..b179affd 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneOutput.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneOutput.swift @@ -74,7 +74,6 @@ struct VwrPrefPaneOutput: View { "⚠︎ This feature is useful ONLY WHEN the font you are using doesn't support dynamic vertical punctuations. However, typed vertical punctuations will always shown as vertical punctuations EVEN IF your editor has changed the typing direction to horizontal." ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } }