mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-08-21 12:05:49 +02:00
5f99fa7521
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
17 lines
422 B
Go
17 lines
422 B
Go
package bubbles
|
|
|
|
import (
|
|
"charm.land/bubbles/v2/spinner"
|
|
"charm.land/lipgloss/v2"
|
|
|
|
"github.com/anotherhadi/ilovetui/style"
|
|
)
|
|
|
|
// NewSpinner returns a spinner.Model styled with the active theme. Any opts
|
|
// are forwarded to spinner.New before the theme is applied.
|
|
func NewSpinner(opts ...spinner.Option) spinner.Model {
|
|
s := spinner.New(opts...)
|
|
s.Style = lipgloss.NewStyle().Foreground(style.S.Primary)
|
|
return s
|
|
}
|