ui

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Term   = termenv.EnvColorProfile()
	Subtle = MakeFgStyle("241")
	Dot    = ColorFg(" • ", "236")
)

Functions

func Checkbox

func Checkbox(label string, checked bool) string

func ColorFg

func ColorFg(val, color string) string

ColorFg colors a string's foreground with the given value.

func MakeFgStyle

func MakeFgStyle(color string) func(string) string

MakeFgStyle return a function that will colorize the foreground of a given string.

func Title

func Title(text string) string

Title formats a string as a title for the application.

Types

This section is empty.

Jump to

Keyboard shortcuts

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