Help us shape the future of Go! Take the 2026 Go Developer Survey

ui

package
v0.0.0-...-98e0bed Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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))

	// Navigation
	NavBarStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(lipgloss.Color(Purple)).
				Align(lipgloss.Center)

	NavBarActiveTabStyle = lipgloss.NewStyle().
							Foreground(lipgloss.Color(Pink)).
							Underline(true).
							MarginRight(2)

	NavBarInactiveTabStyle = lipgloss.NewStyle().
							Foreground(lipgloss.Color(Pink)).
							MarginRight(2)

	NavBarUnfocusedInactiveTabStyle = lipgloss.NewStyle().
									Foreground(lipgloss.Color(Gray)).
									MarginRight(2)

	NavBarUnfocusedActiveTabStyle = lipgloss.NewStyle().
									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))

	// Footer Styles
	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 (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

type MetadataMsg player.Metadata

Jump to

Keyboard shortcuts

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