style

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DocStyle = lipgloss.NewStyle().Margin(1, 2)

	MainStyle   = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#FF4672", Dark: "#FF4672"})
	SecondStyle = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#ECFD65", Dark: "#ECFD65"})
	ErrStyle    = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#FF4672", Dark: "#FF4672"})
	SubtleStyle = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#9B9B9B", Dark: "#5C5C5C"})
)
View Source
var HasDarkBackground = te.HasDarkBackground()

Functions

func AgreeButtonView

func AgreeButtonView(focused, defaultButton bool) string

AgreeButtonView returns a button reading "I agree.".

func ButtonView

func ButtonView(text string, focused bool) string

ButtonView renders something that resembles a button.

func CancelButtonView

func CancelButtonView(focused bool, defaultButton bool) string

CancelButtonView returns a button reading "Cancel.".

func DisagreeButtonView

func DisagreeButtonView(focused, defaultButton bool) string

DisagreeButtonView returns a button reading "I disagree.".

func GenLogo() string

GenLogo returns the logo.

func GetActiveColor

func GetActiveColor() lipgloss.TerminalColor

func GetActiveCursor

func GetActiveCursor() lipgloss.Style

func GetCustomPrompt

func GetCustomPrompt() string

func GetErrColor

func GetErrColor() lipgloss.AdaptiveColor

func GetFocusedCustomPrompt

func GetFocusedCustomPrompt() string

func GetFocusedPrompt

func GetFocusedPrompt() string

func GetFocusedText

func GetFocusedText(text string) string

func GetInactiveColor

func GetInactiveColor() lipgloss.AdaptiveColor

func GetListTitleStyle

func GetListTitleStyle() lipgloss.Style

func GetMainColor

func GetMainColor() lipgloss.TerminalColor

func GetPrompt

func GetPrompt() string

func GetRedColor

func GetRedColor() lipgloss.AdaptiveColor

func GetSecondColor

func GetSecondColor() lipgloss.TerminalColor

func GetSpinnerDot

func GetSpinnerDot() spinner.Model

func GetSpinnerPoints

func GetSpinnerPoints() spinner.Model

func NoButtonView

func NoButtonView(focused bool) string

NoButtonView returns a button reading "No.".

func OKButtonView

func OKButtonView(focused bool, defaultButton bool) string

OKButtonView returns a button reading "OK".

func YesButtonView

func YesButtonView(focused bool) string

YesButtonView return a button reading "Yes".

Types

This section is empty.

Jump to

Keyboard shortcuts

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