Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorToID ¶ added in v0.179.0
func ColorToID(color CustomizationColor) (uint32, error)
func ColorToIDFallbackToBlue ¶ added in v0.179.0
func ColorToIDFallbackToBlue(color CustomizationColor) uint32
Types ¶
type CustomizationColor ¶
type CustomizationColor string
const ( CustomizationColorPrimary CustomizationColor = "primary" CustomizationColorPurple CustomizationColor = "purple" CustomizationColorIndigo CustomizationColor = "indigo" CustomizationColorTurquoise CustomizationColor = "turquoise" CustomizationColorBlue CustomizationColor = "blue" CustomizationColorGreen CustomizationColor = "green" CustomizationColorYellow CustomizationColor = "yellow" CustomizationColorOrange CustomizationColor = "orange" CustomizationColorRed CustomizationColor = "red" CustomizationColorFlamingo CustomizationColor = "flamingo" CustomizationColorBrown CustomizationColor = "brown" CustomizationColorSky CustomizationColor = "sky" CustomizationColorArmy CustomizationColor = "army" CustomizationColorMagenta CustomizationColor = "magenta" CustomizationColorCopper CustomizationColor = "copper" CustomizationColorCamel CustomizationColor = "camel" CustomizationColorYinYang CustomizationColor = "yinyang" CustomizationColorBeige CustomizationColor = "beige" )
func IDToColor ¶ added in v0.179.0
func IDToColor(id uint32) (CustomizationColor, error)
func IDToColorFallbackToBlue ¶ added in v0.179.0
func IDToColorFallbackToBlue(id uint32) CustomizationColor
Click to show internal directories.
Click to hide internal directories.