mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-08-21 03:55:48 +02:00
21b574eb6f
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
17 lines
347 B
Go
17 lines
347 B
Go
package bubbles
|
|
|
|
import (
|
|
"charm.land/bubbles/v2/progress"
|
|
|
|
"github.com/anotherhadi/ilovetui/style"
|
|
)
|
|
|
|
func NewProgress(opts ...progress.Option) progress.Model {
|
|
allOpts := append([]progress.Option{
|
|
progress.WithColors(style.S.Subtle, style.S.Primary),
|
|
}, opts...)
|
|
p := progress.New(allOpts...)
|
|
p.EmptyColor = style.S.SubtleBg
|
|
return p
|
|
}
|