ramkumar-kr / ultimate-theme-creator

1 stars 1 forks source link

Support for gradients? #1

Open heyitsols opened 5 years ago

heyitsols commented 5 years ago

I can't seem to work out the syntax for creating a gradient, if it exists. It seems as though it's just parsing some CSS(?) as if I change the solid hex colour to a solid rgba() colour it works. I've tried:

{"theme":{"images":{"headerURL":""},"colors":{"accentcolor":"#252526","textcolor":"#ffffff","toolbar":"-moz-linear-gradient(left, rgba(22,22,22,1) 0%, rgba(120,120,120,1) 100%)"}},"name":"My theme","manifest_version":2,"version":"1.0","description":"This theme was created using Ultimate theme creator"}

But this just presents a black bar in place of the gradient

ramkumar-kr commented 5 years ago

Hi,

You can specify any valid CSS colour string as the value for all colour properties as mentioned in mozilla's documentation. I think you would need to use a background image to achieve a gradient like effect.