ui

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: BSD-2-Clause Imports: 16 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 {
	// contains filtered or unexported fields
}

func New

func New(filters []string, browserCmd string) (Model, error)

New creates a new UI model with the provided rows.

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model.

func (*Model) SetDisco added in v0.9.1

func (m *Model) SetDisco(d bool)

SetDisco enables or disables disco mode.

func (*Model) Update

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

Update handles key and window events.

func (Model) View

func (m Model) View() string

View renders the table UI.

type Theme

type Theme struct {
	HeaderFG   string
	SelectedFG string
	SelectedBG string
	RowFG      string
	RowBG      string
	StatusFG   string
	StatusBG   string
	StartBG    string
	OverdueBG  string
	PrioLowBG  string
	PrioMedBG  string
	PrioHighBG string
	SearchFG   string
	SearchBG   string
}

Theme holds color configuration for the UI.

func DefaultTheme

func DefaultTheme() Theme

DefaultTheme returns the color theme used by Task Samurai.

func RandomTheme

func RandomTheme() Theme

Jump to

Keyboard shortcuts

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