ui

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 5 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 InitialModelMultiSelect added in v0.6.0

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

func InitialModelNew added in v0.7.1

func InitialModelNew(str string) spinnerModel

func LogFatal

func LogFatal(message string)

Types

type Item added in v0.6.0

type Item struct {
	ID, Title, Desc string
}

type Selection added in v0.6.0

type Selection struct {
	Options map[string]bool
}

func (*Selection) OnSelect added in v0.6.0

func (s *Selection) OnSelect(option string, 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