ui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BackgroundStyle = lipgloss.NewStyle().
					Background(lipgloss.Color("#2A2A2E")) // A dark, almost black background

	PrimaryTextStyle = lipgloss.NewStyle().
						Foreground(lipgloss.Color("#E5E5E6")).
						Bold(true)

	SecondaryTextStyle = lipgloss.NewStyle().
						Foreground(lipgloss.Color("#FFA658")).
						Italic(true)

	AccentTextStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#3B82F6")).
					Bold(true)

	SuccessTextStyle = lipgloss.NewStyle().
						Foreground(lipgloss.Color("#10B981")).Bold(true) // Green

	ErrorTextStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#EF4444")).Bold(true) // Red

	NoteTextStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#EAB308")).
					Italic(true)

	DimTextStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#6B7280")).
					Italic(true)
)

Functions

func InitMultiSelect added in v1.0.0

func InitMultiSelect(
	options []Item,
	selection *Selection,
	header string,
	program *bool,
) model

func InitSpinner added in v1.0.0

func InitSpinner(msg string) spinnerModel

func LogFatal

func LogFatal(message string)

Types

type Item added in v0.6.0

type Item struct {
	ID          int
	Title, Desc string
}

type Selection added in v0.6.0

type Selection struct {
	Options map[int]bool
}

func (*Selection) OnSelect added in v0.6.0

func (s *Selection) OnSelect(option int, value bool)

type Step added in v0.6.0

type Step struct {
	StepName string
	Options  []Item
	Headers  string
	Field    string
}

Jump to

Keyboard shortcuts

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