From f295471c7921f05a72104b6aede3f1797c76a358 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Wed, 30 Aug 2023 23:44:57 +0800 Subject: [PATCH] PrefUI // Remove unnecessary linebreaks. --- Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift | 2 -- Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift | 4 ---- Source/Modules/UIModules/PrefUI/VwrPrefPaneGeneral.swift | 2 -- Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift | 1 - 4 files changed, 9 deletions(-) diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift index d5d66ced..390ea353 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift @@ -70,7 +70,6 @@ struct VwrPrefPaneCandidates: View { .horizontalRadioGroupLayout() .pickerStyle(RadioGroupPickerStyle()) Text(LocalizedStringKey("Choose your preferred layout of the candidate window.")) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) Toggle( LocalizedStringKey("Use only one row / column in candidate window."), @@ -111,7 +110,6 @@ struct VwrPrefPaneCandidates: View { .labelsHidden() .frame(width: 120.0) Text(LocalizedStringKey("Choose candidate font size for better visual clarity.")) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Cursor Selection:".localized, bottomDivider: true) { diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift index 3e97ec4d..cb2353d1 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift @@ -156,7 +156,6 @@ struct VwrPrefPaneDictionary: View { "Due to security concerns, we don't consider implementing anything related to shell script execution here. An input method doing this without implementing App Sandbox will definitely have system-wide vulnerabilities, considering that its related UserDefaults are easily tamperable to execute malicious shell scripts. vChewing is designed to be invulnerable from this kind of attack. Also, official releases of vChewing are Sandboxed." ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } Divider() @@ -172,7 +171,6 @@ struct VwrPrefPaneDictionary: View { "This will use the plist files deployed by the “make install” command from libvChewing-Data if possible." ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) Toggle( LocalizedStringKey("Only load factory language models if needed"), @@ -199,7 +197,6 @@ struct VwrPrefPaneDictionary: View { Text( "The user override model only possesses memories temporarily. Each memory record gradually becomes ineffective within approximately less than 6 days. You can erase all memory records through the input method menu.".localized ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) Toggle( LocalizedStringKey("Enable phrase replacement table"), @@ -224,7 +221,6 @@ struct VwrPrefPaneDictionary: View { "⚠︎ This may hinder the walking algorithm from giving appropriate results." ) ) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } } diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneGeneral.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneGeneral.swift index 9f36d7a5..204fe0d0 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneGeneral.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneGeneral.swift @@ -103,7 +103,6 @@ struct VwrPrefPaneGeneral: View { Spacer() } Text(LocalizedStringKey("Change user interface language (will reboot the IME).")) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(label: { Text(LocalizedStringKey("Typing Settings:")) }) { @@ -131,7 +130,6 @@ struct VwrPrefPaneGeneral: View { } ) Text(LocalizedStringKey("An accommodation for elder computer users.")) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) if Date.isTodayTheDate(from: 0401) { Toggle( diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift index f9bf3f8e..b7f2b653 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneKeyboard.swift @@ -76,7 +76,6 @@ struct VwrPrefPaneKeyboard: View { Spacer(minLength: NSFont.systemFontSize) } Text(NSLocalizedString("Choose the phonetic layout for Mandarin parser.", comment: "")) - .preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth) } SSPreferences.Settings.Section(title: "Basic Keyboard Layout:".localized) {