@@ -8,10 +8,10 @@ import ProHostApp
88
99struct PromptToCodeSettingsView : View {
1010 final class Settings : ObservableObject {
11- @AppStorage ( \. hideCommonPrecedingSpacesInSuggestion )
12- var hideCommonPrecedingSpacesInSuggestion
13- @AppStorage ( \. suggestionCodeFontSize )
14- var suggestionCodeFontSize
11+ @AppStorage ( \. hideCommonPrecedingSpacesInPromptToCode )
12+ var hideCommonPrecedingSpaces
13+ @AppStorage ( \. promptToCodeCodeFontSize )
14+ var fontSize
1515 @AppStorage ( \. promptToCodeGenerateDescription)
1616 var promptToCodeGenerateDescription
1717 @AppStorage ( \. promptToCodeGenerateDescriptionInUserPreferredLanguage)
@@ -84,25 +84,25 @@ struct PromptToCodeSettingsView: View {
8484 }
8585 }
8686
87- SettingsDivider ( " Mirroring Settings of Suggestion Feature " )
87+ SettingsDivider ( " UI " )
8888
8989 Form {
90- Toggle ( isOn: $settings. hideCommonPrecedingSpacesInSuggestion ) {
90+ Toggle ( isOn: $settings. hideCommonPrecedingSpaces ) {
9191 Text ( " Hide Common Preceding Spaces " )
92- } . disabled ( true )
92+ }
9393
9494 HStack {
9595 TextField ( text: . init( get: {
96- " \( Int ( settings. suggestionCodeFontSize ) ) "
96+ " \( Int ( settings. fontSize ) ) "
9797 } , set: {
98- settings. suggestionCodeFontSize = Double ( Int ( $0) ?? 0 )
98+ settings. fontSize = Double ( Int ( $0) ?? 0 )
9999 } ) ) {
100100 Text ( " Font size of suggestion code " )
101101 }
102102 . textFieldStyle ( . roundedBorder)
103103
104104 Text ( " pt " )
105- } . disabled ( true )
105+ }
106106 }
107107
108108 ScopeForm ( )
0 commit comments