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>
18 lines
466 B
Go
18 lines
466 B
Go
package bubbles
|
|
|
|
import (
|
|
"charm.land/bubbles/v2/paginator"
|
|
"charm.land/lipgloss/v2"
|
|
|
|
"github.com/anotherhadi/ilovetui/style"
|
|
)
|
|
|
|
// NewPaginator returns a dot-style paginator.Model styled with the active theme.
|
|
func NewPaginator() paginator.Model {
|
|
p := paginator.New()
|
|
p.Type = paginator.Dots
|
|
p.ActiveDot = lipgloss.NewStyle().Foreground(style.S.Primary).Render("•")
|
|
p.InactiveDot = lipgloss.NewStyle().Foreground(style.S.Subtle).Render("•")
|
|
return p
|
|
}
|