abe33 / atom-pigments

An Atom package to display colors in project and files.
MIT License
521 stars 68 forks source link

Feature Request: Gradients #352

Closed shelldandy closed 6 years ago

shelldandy commented 7 years ago

I don't know how hard can be to implement but given that nowadays designers are loving to use gradients it'd be nice to have some sort of way to store them as variables and actually see the result somewhere else.

screen shot 2017-09-25 at 9 03 02 am

So maybe for example the bottom variant could be shown like the rendered gradient? covering the whole linear-gradient(#ff2d91, #ff643c) part?

Cxarli commented 7 years ago

Not sure if and how gradients are supported in this case. How would you represent them in the gutter or underlined? How would the colours inside the brackets look? Wouldn't they have any colour at all?

shelldandy commented 7 years ago

in the gutter i can see them as the tiny circles they are already but with the gradients.

the proposal in the editor view is that all of the:

linear-gradient(#ff2d91, #ff643c) string gets the color, if that makes sense?

I know my way around JS, not so much around coffeescript but with a quick overview from you i'll be glad to figure this out on my following weekends

shelldandy commented 7 years ago
screen shot 2017-09-25 at 4 54 49 pm

After a quick and dirty dive in the inspector in atom i think this would be the ideal outcome at least just for word highlighting.

I saw you're already using gradients albeit in the same color so that hopefully means some of the work is already done (?)

shelldandy commented 7 years ago

I think that can work with all the other options as well 😄 what do you think @C-Bouthoorn

Cxarli commented 7 years ago

Looks okay to me! Could you use the code from your screenshot to issue a PR?