diff --git a/cmd/pterm.go b/cmd/pterm.go index 28ef6c6e..23ba84d8 100644 --- a/cmd/pterm.go +++ b/cmd/pterm.go @@ -26,6 +26,10 @@ import ( func PTermSetup() { pterm.Success.Prefix.Text = "✔︎" + pterm.Error.Prefix.Text = "✗" + + pterm.DefaultSpinner.Sequence = []string{"⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"} + pterm.DefaultSpinner.Delay = 80 * time.Millisecond // ensure that only error messages are printed to the console, // disrupting bubbletea rendering (and potentially getting overwritten). diff --git a/cmd/theme.go b/cmd/theme.go index a896a173..f94274e0 100644 --- a/cmd/theme.go +++ b/cmd/theme.go @@ -305,11 +305,6 @@ func MarkdownStyle() ansi.StyleConfig { } } -// var DotsSpinner = spinner.Spinner{ -// Frames: []string{"⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"}, -// FPS: 80 * time.Millisecond, -// } - var titleStyle = lipgloss.NewStyle().Foreground(ColorPalette.BgMain).Bold(true) var textStyle = lipgloss.NewStyle().Foreground(ColorPalette.LabelBase) var addedLineStyle = lipgloss.NewStyle().Foreground(ColorPalette.LabelControl).Background(ColorPalette.BgSuccess)