tui

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusMessageStyle = lipgloss.NewStyle().
						Foreground(lipgloss.AdaptiveColor{Light: "#04B575", Dark: "#04B575"})
	AppStyle   = lipgloss.NewStyle().Margin(1, 1)
	ErrorStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#FFFDF5")).
				Background(lipgloss.Color("#FF3B30")).
				Padding(0, 1)
	TitleStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#FFFDF5")).
				Background(lipgloss.Color("#25A065")).
				Padding(0, 1)
	SpinnerStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("205"))

	ModalStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#FFFDF5")).
				Padding(2, 2).
				Border(lipgloss.RoundedBorder()).
				BorderForeground(lipgloss.Color("#FFFDF5")).
				AlignHorizontal(lipgloss.Center).
				AlignVertical(lipgloss.Center)
)

Functions

func Back

func Back() tea.Msg

Types

type BackMsg

type BackMsg struct{}

type MsgError

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

func Error

func Error(err error) MsgError

func (MsgError) Error

func (e MsgError) Error() string

func (MsgError) Unwrap

func (e MsgError) Unwrap() error

type WindowSize

type WindowSize struct {
	Width  int
	Height int
}

func GetWindowSize

func GetWindowSize() WindowSize

func SetWindowSize

func SetWindowSize(width int, height int) WindowSize

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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