Documentation
¶
Index ¶
- Constants
- func AnsiColorScheme(c lipgloss.LightDarkFunc) fang.ColorScheme
- func ColorSchemeByName(name string) fang.ColorSchemeFunc
- func DefaultColorScheme(c lipgloss.LightDarkFunc) fang.ColorScheme
- func IsDarkBackground(out term.File) bool
- func ProgressColors(scheme fang.ColorScheme) (color.Color, color.Color)
- func ProgressColorsByName(name string, out term.File) (color.Color, color.Color)
- func SynthwaveColorScheme(c lipgloss.LightDarkFunc) fang.ColorScheme
- func ValidName(name string) bool
Constants ¶
const ( DefaultName = "default" ANSIName = "ansi" SynthwaveName = "synthwave" )
Supported theme names.
Variables ¶
This section is empty.
Functions ¶
func AnsiColorScheme ¶
func AnsiColorScheme(c lipgloss.LightDarkFunc) fang.ColorScheme
AnsiColorScheme is a ANSI colorscheme.
func ColorSchemeByName ¶
func ColorSchemeByName(name string) fang.ColorSchemeFunc
ColorSchemeByName resolves a theme name to a Fang color scheme.
func DefaultColorScheme ¶
func DefaultColorScheme(c lipgloss.LightDarkFunc) fang.ColorScheme
DefaultColorScheme is the default colorscheme.
func IsDarkBackground ¶
IsDarkBackground reports whether the terminal behind out has a dark background. Detection queries the terminal (writes OSC 11 to out, reads the reply from stdin), which suspends a background process group with SIGTTIN/SIGTTOU — so when the process is not in the foreground, skip the query and assume dark (lipgloss's own fallback).
func ProgressColors ¶
ProgressColors resolves a Fang color scheme to fill and empty colors for download progress.
func ProgressColorsByName ¶
ProgressColorsByName resolves a theme name to fill and empty colors for download progress.
func SynthwaveColorScheme ¶
func SynthwaveColorScheme(c lipgloss.LightDarkFunc) fang.ColorScheme
Types ¶
This section is empty.