File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,12 +73,12 @@ struct CustomCommandView: View {
7373 . font ( . caption)
7474 . foregroundStyle ( . tertiary)
7575 }
76+ . frame ( maxWidth: . infinity, alignment: . leading)
7677 . contentShape ( Rectangle ( ) )
7778 . onTapGesture {
7879 editingCommand = . init( isNew: false , command: command)
7980 }
8081 }
81- . frame ( maxWidth: . infinity, alignment: . leading)
8282 . padding ( 4 )
8383 . background (
8484 editingCommand? . command. id == command. id
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ struct ChatSettingsView: View {
1717 } , set: {
1818 settings. chatFontSize = Double ( Int ( $0) ?? 0 )
1919 } ) ) {
20- Text ( " Font size of chat message " )
20+ Text ( " Font size of message " )
2121 }
2222 . textFieldStyle ( . roundedBorder)
2323
@@ -30,7 +30,7 @@ struct ChatSettingsView: View {
3030 } , set: {
3131 settings. chatCodeFontSize = Double ( Int ( $0) ?? 0 )
3232 } ) ) {
33- Text ( " Font size of code block in chat " )
33+ Text ( " Font size of code block " )
3434 }
3535 . textFieldStyle ( . roundedBorder)
3636
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ struct PromptToCodeSettingsView: View {
2323 Color . accentColor,
2424 in: RoundedRectangle ( cornerRadius: 20 )
2525 )
26- . shadow ( radius: 5 )
2726
2827 Form {
2928 Toggle ( isOn: $settings. hideCommonPrecedingSpacesInSuggestion) {
Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ struct SuggestionFeatureEnabledProjectListView: View {
210210 }
211211 . focusable ( false )
212212 . frame ( width: 300 , height: 400 )
213+ . background ( Color ( nsColor: . windowBackgroundColor) )
213214 . sheet ( isPresented: $isAddingNewProject) {
214215 SuggestionFeatureAddEnabledProjectView ( isOpen: $isAddingNewProject, settings: settings)
215216 }
@@ -240,6 +241,7 @@ struct SuggestionFeatureAddEnabledProjectView: View {
240241 }
241242 . padding ( )
242243 . frame ( minWidth: 500 )
244+ . background ( Color ( nsColor: . windowBackgroundColor) )
243245 }
244246}
245247
Original file line number Diff line number Diff line change @@ -228,6 +228,19 @@ struct GeneralSettingsView: View {
228228 ) ) {
229229 Text ( " Automatically Check for Update " )
230230 }
231+
232+ Picker ( selection: $settings. suggestionWidgetPositionMode) {
233+ ForEach ( SuggestionWidgetPositionMode . allCases, id: \. rawValue) {
234+ switch $0 {
235+ case . fixedToBottom:
236+ Text ( " Fixed to Bottom " ) . tag ( $0)
237+ case . alignToTextCursor:
238+ Text ( " Follow Text Cursor " ) . tag ( $0)
239+ }
240+ }
241+ } label: {
242+ Text ( " Widget position " )
243+ }
231244
232245 Picker ( selection: $settings. widgetColorScheme) {
233246 ForEach ( WidgetColorScheme . allCases, id: \. rawValue) {
You can’t perform that action at this time.
0 commit comments