Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Colors Purple = "#7e1dfb" DarkPurple = "#211338" Pink = "#b28ecc" Lavender = "#e6def7" Gray = "#808080" White = "#FFFFFF" // Basic Styles MainStyle = lipgloss.NewStyle() SubViewStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color(Purple)). Padding(1, 1) ModalStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color(Purple)). Padding(1, 2). Align(lipgloss.Center) QuestionStyle = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color(Pink)) NavBarStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color(Purple)). Align(lipgloss.Center) Foreground(lipgloss.Color(Pink)). Underline(true). MarginRight(2) Foreground(lipgloss.Color(Pink)). MarginRight(2) Foreground(lipgloss.Color(Gray)). MarginRight(2) Foreground(lipgloss.Color(Gray)). Underline(true). MarginRight(2) // Table Styles TableSelectedItemStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color(DarkPurple)). Background(lipgloss.Color(Pink)) TableUnfocusedItemStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color(DarkPurple)). Background(lipgloss.Color(Gray)) FooterStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color(Purple)). Padding(0, 1) NowPlayingLabelStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color(White)). Background(lipgloss.Color(Purple)). Padding(0, 1). MarginRight(1). Bold(true) NowPlayingContentStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color(Lavender)) StationLabelStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color(DarkPurple)). Background(lipgloss.Color(Pink)). Padding(0, 1). MarginRight(1). Bold(true) StationContentStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color(Pink)). MarginRight(3) )
Functions ¶
This section is empty.
Types ¶
type AboutViewModel ¶
type AboutViewModel struct {
// contains filtered or unexported fields
}
func NewAboutViewModel ¶
func NewAboutViewModel() AboutViewModel
func (AboutViewModel) Init ¶
func (m AboutViewModel) Init()
func (*AboutViewModel) SetSize ¶
func (m *AboutViewModel) SetSize(w, h int)
func (AboutViewModel) View ¶
func (m AboutViewModel) View() string
type LikedSongsViewModel ¶
type LikedSongsViewModel struct {
// contains filtered or unexported fields
}
func NewLikedSongsViewModel ¶
func NewLikedSongsViewModel(db *storage.DBConn) LikedSongsViewModel
func (*LikedSongsViewModel) Init ¶
func (m *LikedSongsViewModel) Init() tea.Cmd
func (*LikedSongsViewModel) RefreshTable ¶
func (m *LikedSongsViewModel) RefreshTable()
func (*LikedSongsViewModel) SetSize ¶
func (m *LikedSongsViewModel) SetSize(w, h int)
func (LikedSongsViewModel) Update ¶
func (m LikedSongsViewModel) Update(msg tea.Msg) (LikedSongsViewModel, tea.Cmd)
func (LikedSongsViewModel) View ¶
func (m LikedSongsViewModel) View() string
type ManageViewModel ¶
type ManageViewModel struct {
// contains filtered or unexported fields
}
func NewManageViewModel ¶
func NewManageViewModel(db *storage.DBConn, p *player.Player) ManageViewModel
func (ManageViewModel) ActiveStationName ¶
func (m ManageViewModel) ActiveStationName() string
func (*ManageViewModel) Init ¶
func (m *ManageViewModel) Init() tea.Cmd
func (*ManageViewModel) SetSize ¶
func (m *ManageViewModel) SetSize(w, h int)
func (ManageViewModel) Update ¶
func (m ManageViewModel) Update(msg tea.Msg) (ManageViewModel, tea.Cmd)
func (ManageViewModel) View ¶
func (m ManageViewModel) View() string
type MetadataMsg ¶
Click to show internal directories.
Click to hide internal directories.