Documentation
¶
Index ¶
- func CreateIdleDisplay() string
- func CreateProgressBar(progress float64, width int) string
- func CreateProgressText(currentTime, totalTime, volumeText string) string
- func CreateWelcomeMessage(totalSongs int) string
- func FormatDuration(seconds int) string
- func FormatSongInfo(track domain.Song, index int, status, progressBar string) string
- type App
- type HelpView
- type QueueView
- type SearchView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIdleDisplay ¶
func CreateIdleDisplay() string
CreateIdleDisplay creates the idle state display
func CreateProgressBar ¶
FormatSongInfoWithCover creates a formatted info display with cover art CreateProgressBar creates a visual progress bar
func CreateProgressText ¶
CreateProgressText creates the progress time display
func CreateWelcomeMessage ¶
CreateWelcomeMessage creates the welcome screen message
func FormatDuration ¶
FormatDuration converts seconds to MM:SS format
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents the TUI application
type HelpView ¶
type HelpView struct {
// contains filtered or unexported fields
}
HelpView represents the keyboard shortcuts help interface
func (*HelpView) GetContainer ¶
GetContainer returns the help view container
type QueueView ¶
type QueueView struct {
// contains filtered or unexported fields
}
QueueView represents the playback queue interface
func (*QueueView) GetContainer ¶
GetContainer returns the queue view container
type SearchView ¶
type SearchView struct {
// contains filtered or unexported fields
}
SearchView represents the search interface
func NewSearchView ¶
func NewSearchView(app *App) *SearchView
NewSearchView creates a new search view
func (*SearchView) GetContainer ¶
func (sv *SearchView) GetContainer() *tview.Flex
GetContainer returns the search view container
func (*SearchView) IsActive ¶
func (sv *SearchView) IsActive() bool
IsActive returns whether the search view is active