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

ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FocusedPanel

type FocusedPanel int
const (
	PanelPlayer FocusedPanel = iota
	PanelTimer
	PanelMixer
	PanelVisualizer
	PanelScene
	TotalPanels
)

type Model

type Model struct {
	// Screen Dimensions
	Width  int
	Height int

	// Theme
	CurrentThemeIdx int
	Themes          []theme.Palette

	// Navigation
	FocusedPanel FocusedPanel

	// Player State
	Stations        []components.Station
	CurrentStation  int
	IsPlaying       bool
	ProgressSec     int
	ProgressTickCnt int
	TotalTrackSec   int
	MasterVolume    int
	IsMuted         bool

	// YouTube State
	IsYouTubeModalOpen  bool
	IsYouTubeListOpen   bool
	YouTubeListSelected int
	TextInput           textinput.Model
	IsLoadingYouTube    bool
	YouTubeStatusMsg    string
	YTTracks            []audio.YTTrack
	CurrentYTTrackIdx   int
	IsPlayingYouTube    bool
	YouTubePlaylistName string

	// Timer State
	TimerMode      components.TimerMode
	TimerRemaining int
	IsTimerRunning bool
	TimerCycle     int
	MaxTimerCycles int
	TimerTickCount int

	// Mixer State
	AmbientSounds []components.AmbientSound
	MixerSelected int

	// Visualizer & Scene
	Visualizer    *components.Visualizer
	SceneAnimator *components.SceneAnimator

	// Audio Engine
	AudioEngine *audio.AudioEngine
}

func InitialModel

func InitialModel() Model

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 TickMsg

type TickMsg time.Time

type YTErrMsg

type YTErrMsg struct {
	Err error
}

type YTOkMsg

type YTOkMsg struct {
	Title  string
	Tracks []audio.YTTrack
}

YouTube async messages

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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