tui

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeaderStyle   = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("229"))
	SelectedStyle = lipgloss.NewStyle().Bold(true).Background(lipgloss.Color("236"))
	HelpStyle     = lipgloss.NewStyle().Foreground(lipgloss.Color("241"))
	GreenStyle    = lipgloss.NewStyle().Foreground(lipgloss.Color("82"))
	RedStyle      = lipgloss.NewStyle().Foreground(lipgloss.Color("196"))
	DimStyle      = lipgloss.NewStyle().Foreground(lipgloss.Color("245"))
	TitleStyle    = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("99")).MarginBottom(1)
)

Functions

func ColorPercent

func ColorPercent(pct float64, s string) string

Types

type DetailModel

type DetailModel struct {
	Done bool
	// contains filtered or unexported fields
}

func NewDetailModel

func NewDetailModel(client *api.Client, coinID, vs string, width, height int) DetailModel

func (DetailModel) Init

func (m DetailModel) Init() tea.Cmd

func (DetailModel) Update

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

func (DetailModel) View

func (m DetailModel) View() string

type MarketsModel

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

func NewMarketsModel

func NewMarketsModel(client *api.Client, vs, category string) MarketsModel

func (MarketsModel) Init

func (m MarketsModel) Init() tea.Cmd

func (MarketsModel) Update

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

func (MarketsModel) View

func (m MarketsModel) View() string

type TrendingModel

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

func NewTrendingModel

func NewTrendingModel(client *api.Client, vs string) TrendingModel

func (TrendingModel) Init

func (m TrendingModel) Init() tea.Cmd

func (TrendingModel) Update

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

func (TrendingModel) View

func (m TrendingModel) View() string

Jump to

Keyboard shortcuts

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