Documentation ¶
Index ¶
- Variables
- func AgreeButtonView(focused, defaultButton bool) string
- func ButtonView(text string, focused bool) string
- func CancelButtonView(focused bool, defaultButton bool) string
- func DisagreeButtonView(focused, defaultButton bool) string
- func GenLogo() string
- func GetActiveColor() lipgloss.TerminalColor
- func GetActiveCursor() lipgloss.Style
- func GetCustomPrompt() string
- func GetErrColor() lipgloss.AdaptiveColor
- func GetFocusedCustomPrompt() string
- func GetFocusedPrompt() string
- func GetFocusedText(text string) string
- func GetInactiveColor() lipgloss.AdaptiveColor
- func GetListTitleStyle() lipgloss.Style
- func GetMainColor() lipgloss.TerminalColor
- func GetPrompt() string
- func GetRedColor() lipgloss.AdaptiveColor
- func GetSecondColor() lipgloss.TerminalColor
- func GetSpinnerDot() spinner.Model
- func GetSpinnerPoints() spinner.Model
- func NoButtonView(focused bool) string
- func OKButtonView(focused bool, defaultButton bool) string
- func YesButtonView(focused bool) string
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 ¶
AgreeButtonView returns a button reading "I agree.".
func ButtonView ¶
ButtonView renders something that resembles a button.
func CancelButtonView ¶
CancelButtonView returns a button reading "Cancel.".
func DisagreeButtonView ¶
DisagreeButtonView returns a button reading "I disagree.".
func GetActiveColor ¶
func GetActiveColor() lipgloss.TerminalColor
func GetActiveCursor ¶
func GetCustomPrompt ¶
func GetCustomPrompt() string
func GetErrColor ¶
func GetErrColor() lipgloss.AdaptiveColor
func GetFocusedCustomPrompt ¶
func GetFocusedCustomPrompt() string
func GetFocusedPrompt ¶
func GetFocusedPrompt() string
func GetFocusedText ¶
func GetInactiveColor ¶
func GetInactiveColor() lipgloss.AdaptiveColor
func GetListTitleStyle ¶
func GetMainColor ¶
func GetMainColor() lipgloss.TerminalColor
func GetRedColor ¶
func GetRedColor() lipgloss.AdaptiveColor
func GetSecondColor ¶
func GetSecondColor() lipgloss.TerminalColor
func GetSpinnerDot ¶
func GetSpinnerPoints ¶
func NoButtonView ¶
NoButtonView returns a button reading "No.".
func OKButtonView ¶
OKButtonView returns a button reading "OK".
func YesButtonView ¶
YesButtonView return a button reading "Yes".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.