tui

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Family2xx       = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "39", Dark: "86"})
	Family4xx       = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "208", Dark: "192"})
	Family5xx       = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "203", Dark: "204"})
	DefaultStyle    = lipgloss.NewStyle().Foreground(lipgloss.NoColor{})
	NewVersionStyle = Family2xx

	AppStyle           = lipgloss.NewStyle().Padding(1, 2)
	TitleStyle         = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.AdaptiveColor{Light: "#04B575", Dark: "#ECFD65"})
	StatusMessageStyle = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#8E8E8E", Dark: "#747373"}).Render
	SecondaryTextStyle = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#9B9B9B", Dark: "#5C5C5C"})
)

Functions

func GetStyle

func GetStyle(statusCode int) lipgloss.Style

Types

type Model

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

func NewModel

func NewModel(info string) Model

func (Model) Add

func (m Model) Add(title string, description string)

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