Documentation ¶
Index ¶
- Variables
- func Checkbox(label string, checked bool) string
- func ColorFg(val, color string) string
- func ErrorMessage(err error) string
- func GoodByeMessage() string
- func MakeFgStyle(color string) func(string) string
- func Split(s string) []string
- func ToggleWidget(label string, now, enabled bool) string
- type Choice
- type ErrMsg
- type Toggle
- type ToggleSets
- type Window
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Term = termenv.EnvColorProfile() Subtle = MakeFgStyle("241") Red = MakeFgStyle("196") Green = MakeFgStyle("46") Yellow = MakeFgStyle("226") )
General stuff for styling the view
Functions ¶
func MakeFgStyle ¶
MakeFgStyle returns a function that will colorize the foreground of a given.
func Split ¶
Split splits a string into multiple lines. Each line has a maximum length of 80 characters.
func ToggleWidget ¶
ToggleWidget represents a toggle.
Types ¶
type Choice ¶
type Choice struct { // Choice is the currently selected menu item. Choice int // Max is the maximum choice number. Max int // Min is the minimum choice number. Min int }
Choice represents a choice.
Click to show internal directories.
Click to hide internal directories.