Skip to content

Commit cea9212

Browse files
committed
Rename to avoid misunderstanding
1 parent 57df39a commit cea9212

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionPanelContent/ChatPanel.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ struct ChatPanelInputArea: View {
299299
.padding(.top, 0)
300300
.padding(.bottom, 3)
301301
.padding(.horizontal, 4)
302-
302+
303303
CustomTextEditor(
304304
text: $typedMessage,
305305
font: .systemFont(ofSize: 14),
@@ -405,6 +405,9 @@ struct RoundedCorners: Shape {
405405
struct GlobalChatSwitchToggleStyle: ToggleStyle {
406406
func makeBody(configuration: Configuration) -> some View {
407407
HStack(spacing: 4) {
408+
Text(configuration.isOn ? "Shared Conversation" : "Local Conversation")
409+
.foregroundStyle(.tertiary)
410+
408411
RoundedRectangle(cornerRadius: 10, style: .circular)
409412
.foregroundColor(configuration.isOn ? Color.indigo : .gray.opacity(0.5))
410413
.frame(width: 30, height: 20, alignment: .center)
@@ -430,9 +433,6 @@ struct GlobalChatSwitchToggleStyle: ToggleStyle {
430433
RoundedRectangle(cornerRadius: 10, style: .circular)
431434
.stroke(.black.opacity(0.2), lineWidth: 1)
432435
}
433-
434-
Text(configuration.isOn ? "Global Chat" : "File Chat")
435-
.foregroundStyle(.tertiary)
436436
}
437437
}
438438
}

Core/Sources/SuggestionWidget/WidgetView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct WidgetContextMenu: View {
152152
Button(action: {
153153
useGlobalChat.toggle()
154154
}) {
155-
Text("Use Global Chat")
155+
Text("Use Shared Conversation")
156156
if useGlobalChat {
157157
Image(systemName: "checkmark")
158158
}

0 commit comments

Comments
 (0)