ソースを参照

fix(tui): editor spinner colors

adamdottv 8 ヶ月 前
コミット
8edbb74352
1 ファイル変更2 行追加2 行削除
  1. 2 2
      packages/tui/internal/components/chat/editor.go

+ 2 - 2
packages/tui/internal/components/chat/editor.go

@@ -83,7 +83,7 @@ func (m *editorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 			return m, tea.Batch(cmds...)
 			return m, tea.Batch(cmds...)
 		} else {
 		} else {
 			existingValue := m.textarea.Value()
 			existingValue := m.textarea.Value()
-			
+
 			// Replace the current token (after last space)
 			// Replace the current token (after last space)
 			lastSpaceIndex := strings.LastIndex(existingValue, " ")
 			lastSpaceIndex := strings.LastIndex(existingValue, " ")
 			if lastSpaceIndex == -1 {
 			if lastSpaceIndex == -1 {
@@ -341,7 +341,7 @@ func createSpinner() spinner.Model {
 		spinner.WithSpinner(spinner.Ellipsis),
 		spinner.WithSpinner(spinner.Ellipsis),
 		spinner.WithStyle(
 		spinner.WithStyle(
 			styles.NewStyle().
 			styles.NewStyle().
-				Foreground(t.Background()).
+				Background(t.Background()).
 				Foreground(t.TextMuted()).
 				Foreground(t.TextMuted()).
 				Width(3).
 				Width(3).
 				Lipgloss(),
 				Lipgloss(),