Replies: 1 comment
-
I was thinking to leave the config syntax as is, but add the ability to use a custom border "background image" so to say (so you save the gradient or anything else in an image and it uses that), or maybe just a custom border shader. Because I don't imagine this is a very widespread need, and these options will allow maximum customizability for the people who want it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all!
Today I was trying out using different border gradients and a thing I noticed was that the gradients seem to skip some colors. This makes sense (seeing the comment in the default config supplied) since the gradients are based off CSS's
linear-gradient
. This means that the gradient smoothly interpolate colors that go from thefrom
color to theto
color. This makes it so that if you make a gradient between red and blue, the colors go from red, to grayish purple, to blue. The hues in between blue and red get skipped.The way CSS gets around this is by letting you give
linear-gradient
more arguments. Those arguments being the extra colors that you want the gradient to pass through. As a consequence you can make it go through the missing hues you needed.My question now is:
linear-gradient
?active
/inactive-gradient
that interpolates the hue of the color instead of the RGB values?Thank you for your time reading this.
Here are some examples of what I mean:
linear-gradient(red, blue)
linear-gradient(red, orange, yellow, green, blue)
Beta Was this translation helpful? Give feedback.
All reactions