ui

package
v0.0.0-...-7e23508 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Config config.Config
	Theme  config.Theme
	// contains filtered or unexported fields
}

func NewModel

func NewModel() (Model, error)

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type SettingItem

type SettingItem int
const (
	SettingTheme SettingItem = iota
	SettingOffset
	SettingKaraoke
	SettingDim
	SettingProgress
	SettingBack
)

func (SettingItem) String

func (s SettingItem) String() string

type Styles

type Styles struct {
	Header   lipgloss.Style
	Status   lipgloss.Style
	Active   lipgloss.Style
	Inactive lipgloss.Style
	Dim      lipgloss.Style

	Sung     lipgloss.Style
	Future   lipgloss.Style
	Title    lipgloss.Style
	Selected lipgloss.Style
	Normal   lipgloss.Style
	Help     lipgloss.Style
	Border   lipgloss.Style
}

func InitStyles

func InitStyles(t config.Theme, width int) Styles

type ViewState

type ViewState int
const (
	ViewMain ViewState = iota
	ViewSettings
)

Jump to

Keyboard shortcuts

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