views

package
v0.0.38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToPlayListQuitMessage

func AddToPlayListQuitMessage(m model) string

func CacheDisplay added in v0.0.30

func CacheDisplay(client *rpc.Client)

func DisplayStatus

func DisplayStatus(client *rpc.Client)

func ListBlueDelegate

func ListBlueDelegate() list.DefaultDelegate

func ListPurpleDelegate

func ListPurpleDelegate() list.DefaultDelegate

func NewList

func NewList(items []list.Item) list.Model

func NewModel

func NewModel(client *rpc.Client, query string) *model

func PlayListMusicsDisplay

func PlayListMusicsDisplay(name string, client *rpc.Client)

func PlayListsDisplay

func PlayListsDisplay(client *rpc.Client)

func PlayQuitMessage

func PlayQuitMessage(m model) string

func SearchThenAddToPlayList

func SearchThenAddToPlayList(playlist, query string, client *rpc.Client) error

func SearchThenSelect

func SearchThenSelect(query string, client *rpc.Client) error

Types

type Themes

type Themes struct {
	DocStyle         lipgloss.Style
	QuitTextStyle    lipgloss.Style
	SpinnerStyle     lipgloss.Style
	ProgressStyle    lipgloss.Style
	RunningStyle     lipgloss.Style
	StoppedStyle     lipgloss.Style
	PausedStyle      lipgloss.Style
	PositionStyle    lipgloss.Style
	SelectMusicStyle lipgloss.Style
	FailStyle        lipgloss.Style
	TaskStyle        lipgloss.Style
	MainColor        string
	ListDelegate     list.DefaultDelegate
}

func GetTheme

func GetTheme() Themes

func NewBlueTheme

func NewBlueTheme() Themes

func NewPinkTheme

func NewPinkTheme() Themes

func NewPurpleTheme

func NewPurpleTheme() Themes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL