MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / parseColor

Function parseColor

internal/ui/theme/theme.go:625–631  ·  view source on GitHub ↗

parseColor parses a color string (ANSI name, W3C name, or hex code) to tcell.Color.

(s string)

Source from the content-addressed store, hash-verified

623
624// parseColor parses a color string (ANSI name, W3C name, or hex code) to tcell.Color.
625func parseColor(s string) tcell.Color {
626 if strings.EqualFold(s, "default") {
627 return tcell.ColorDefault
628 }
629
630 return tcell.GetColor(s)
631}

Callers 1

ApplyCustomThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected