(c csscolorparser.Color)
| 242 | } |
| 243 | |
| 244 | func 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 | |
| 253 | func (t *ThemeColors) validate() (*runtimev1.ThemeColors, error) { |
| 254 | // Create a new map for the final variables with deprecated names mapped to new ones |