ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(seconds float64) string

FormatDuration formats seconds into a human-readable string like "2h 30m" or "45m".

func FormatTimestamp

func FormatTimestamp(seconds float64) string

FormatTimestamp formats seconds as H:MM:SS or M:SS.

Types

type ListItem

type ListItem struct {
	Item abs.LibraryItem
}

ListItem wraps a LibraryItem to implement the bubbles list.Item interface. Used by library and search screens for items without progress tracking.

func (ListItem) Description

func (i ListItem) Description() string

func (ListItem) FilterValue

func (i ListItem) FilterValue() string

func (ListItem) Title

func (i ListItem) Title() string

type Styles

type Styles struct {
	Title     lipgloss.Style
	Subtitle  lipgloss.Style
	Muted     lipgloss.Style
	Selected  lipgloss.Style
	Error     lipgloss.Style
	Accent    lipgloss.Style
	Border    lipgloss.Style
	PlayerBar lipgloss.Style
	StatusBar lipgloss.Style
}

Styles holds all lipgloss styles derived from the active theme.

func DefaultStyles

func DefaultStyles() Styles

DefaultStyles returns styles using the default Everforest Dark palette.

func NewStyles

func NewStyles(theme config.ThemeConfig) Styles

NewStyles builds a Styles set from a ThemeConfig, allowing user overrides.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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