Documentation
¶
Index ¶
- func AddToPlayListQuitMessage(m model) string
- func CacheDisplay(client *rpc.Client)
- func DisplayStatus(client *rpc.Client)
- func NewList(items []list.Item) list.Model
- func NewModel(client *rpc.Client, query string) *model
- func PlayListMusicsDisplay(name string, client *rpc.Client)
- func PlayListsDisplay(client *rpc.Client)
- func PlayQuitMessage(m model) string
- func SearchThenAddToPlayList(playlist, query string, client *rpc.Client) error
- func SearchThenSelect(query string, client *rpc.Client) error
- type Themes
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) { songs := controller.GetCachedMusics(client) if len(songs) == 0 { fmt.Println("No music in cache") return } fmt.Println(GetTheme().ProgressStyle.Render("📁 Cache :")) for _, song := range songs { fmt.Printf( " %s : %s\n", song.Hash[:shared.HashPrefixLength], song.Name, ) } }
func DisplayStatus ¶
func PlayListMusicsDisplay ¶
func PlayListsDisplay ¶
func PlayQuitMessage ¶
func PlayQuitMessage(m model) string
func SearchThenAddToPlayList ¶
Types ¶
type Themes ¶
type Themes struct { MainColorStyle string DocStyle lipgloss.Style QuitTextStyle lipgloss.Style SpinnerStyle lipgloss.Style ProgressStyle lipgloss.Style ColoredTextStyle lipgloss.Style RunningStyle lipgloss.Style StoppedStyle lipgloss.Style PausedStyle lipgloss.Style PositionStyle lipgloss.Style SelectMusicStyle lipgloss.Style FailStyle lipgloss.Style TaskStyle lipgloss.Style ListDelegate list.DefaultDelegate }
Themes struct encapsulates all theme-related styles
Click to show internal directories.
Click to hide internal directories.