MCPcopy Create free account
hub / github.com/rilldata/rill / toThemeColor

Function toThemeColor

runtime/parser/parse_theme.go:244–251  ·  view source on GitHub ↗
(c csscolorparser.Color)

Source from the content-addressed store, hash-verified

242}
243
244func toThemeColor(c csscolorparser.Color) *runtimev1.Color {
245 return &runtimev1.Color{
246 Red: float32(c.R),
247 Green: float32(c.G),
248 Blue: float32(c.B),
249 Alpha: float32(c.A),
250 }
251}
252
253func (t *ThemeColors) validate() (*runtimev1.ThemeColors, error) {
254 // Create a new map for the final variables with deprecated names mapped to new ones

Callers 1

parseThemeYAMLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected