From 6782289233b96b2e4c90207d20caf2009edb3e96 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Wed, 11 Sep 2024 18:36:18 +0200 Subject: [PATCH] Use more of the tea-OG symbols with pterm --- cmd/pterm.go | 4 ++++ cmd/theme.go | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) 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)