themepickermodal

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(termHeight int) tea.Model

New builds the theme picker overlay. It lists every registered theme, marks the one currently active, and starts the cursor on it. Moving the cursor previews that theme live; Enter applies and persists; Esc restores the original.

termHeight is the terminal height in rows — used to size the list so it never overflows the modal chrome (borders, title, hints).

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the theme picker: a list of registered themes with live preview on cursor movement. Enter applies and persists; Esc restores the theme that was active when the modal opened.

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() tea.View

Jump to

Keyboard shortcuts

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