Skip to content

Commit a5db0cb

Browse files
committed
Adjust UI
1 parent 156e32d commit a5db0cb

5 files changed

Lines changed: 18 additions & 4 deletions

File tree

Core/Sources/HostApp/CustomCommandView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

Core/Sources/HostApp/FeatureSettings/ChatSettingsView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

Core/Sources/HostApp/FeatureSettings/PromptToCodeSettingsView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

Core/Sources/HostApp/FeatureSettings/SuggestionSettingsView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

Core/Sources/HostApp/GeneralView.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)