Use hex values & add theme_color in manifest.json

It looks like support for hsl color values within the manifest
is limited so we have to convert the colors to hex
This commit is contained in:
Svilen Markov
2025-04-23 13:03:18 +01:00
parent efd39e1f80
commit ceebf34874
6 changed files with 70 additions and 6 deletions

View File

@@ -32,6 +32,10 @@ func (c *hslColorField) String() string {
return fmt.Sprintf("hsl(%.1f, %.1f%%, %.1f%%)", c.Hue, c.Saturation, c.Lightness)
}
func (c *hslColorField) ToHex() string {
return hslToHex(c.Hue, c.Saturation, c.Lightness)
}
func (c *hslColorField) UnmarshalYAML(node *yaml.Node) error {
var value string