ui

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorBlue    = lipgloss.Color("63")
	ColorCyan    = lipgloss.Color("86")
	ColorGreen   = lipgloss.Color("120")
	ColorYellow  = lipgloss.Color("228")
	ColorRed     = lipgloss.Color("203")
	ColorMagenta = lipgloss.Color("176")
	ColorGray    = lipgloss.Color("242")
	ColorWhite   = lipgloss.Color("255")

	Dim  = lipgloss.NewStyle().Faint(true)
	Bold = lipgloss.NewStyle().Bold(true)

	HeaderStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(ColorWhite).
				Background(ColorBlue).
				Padding(0, 1)

	PanelBorder = lipgloss.RoundedBorder()

	ActivePanel = lipgloss.NewStyle().
				Border(PanelBorder).
				BorderForeground(ColorGreen)

	SummaryPanel = lipgloss.NewStyle().
					Border(PanelBorder).
					BorderForeground(ColorCyan)

	BurnPanel = lipgloss.NewStyle().
				Border(PanelBorder).
				BorderForeground(ColorRed)

	BreakdownPanel = lipgloss.NewStyle().
					Border(PanelBorder).
					BorderForeground(ColorYellow)

	HistoryPanel = lipgloss.NewStyle().
					Border(PanelBorder).
					BorderForeground(ColorBlue)

	SessionsPanel = lipgloss.NewStyle().
					Border(PanelBorder).
					BorderForeground(ColorMagenta)

	TitleActive    = lipgloss.NewStyle().Bold(true).Foreground(ColorGreen)
	TitleSummary   = lipgloss.NewStyle().Bold(true).Foreground(ColorCyan)
	TitleBurn      = lipgloss.NewStyle().Bold(true).Foreground(ColorRed)
	TitleBreakdown = lipgloss.NewStyle().Bold(true).Foreground(ColorYellow)
	TitleHistory   = lipgloss.NewStyle().Bold(true).Foreground(ColorBlue)
	TitleSessions  = lipgloss.NewStyle().Bold(true).Foreground(ColorMagenta)

	LabelStyle = lipgloss.NewStyle().Foreground(ColorGray)
	ValueCyan  = lipgloss.NewStyle().Foreground(ColorCyan)
	ValueGreen = lipgloss.NewStyle().Foreground(ColorGreen)
	ValueBold  = lipgloss.NewStyle().Bold(true).Foreground(ColorGreen)
	ValueBlue  = lipgloss.NewStyle().Foreground(ColorBlue)
	ValueMag   = lipgloss.NewStyle().Foreground(ColorMagenta)
	ValueYel   = lipgloss.NewStyle().Foreground(ColorYellow)
	ValueRed   = lipgloss.NewStyle().Foreground(ColorRed)
	ActiveRow  = lipgloss.NewStyle().Bold(true)
)

Functions

This section is empty.

Types

type Config

type Config struct {
	BasePath       string
	RefreshSeconds int
}

type Model

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

func NewModel

func NewModel(cfg Config) 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

Jump to

Keyboard shortcuts

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