Skip to content

Gradient is not working on MCU #4388

Answered by yanshay
yanshay asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, found the issue. It's caused by (1) above.
I put the gradient in a property of type color, but gradient is really a brush.
The compiler accepted assigning the gradient into the color, but just picked the first color (would you consider it a bug?).

I also see it doesn't work on round border while on slintpad it does, I guess SlintPad uses a different renderer?

Speaking of round corners - something I noticed, when I set the color of a border and use border-radius, some of the pixels on/around the corners are of different color. So when I placed a round rectangle on another larger one with the same color, around the corners I was able to notice the round corners of the smaller rectangle …

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yanshay
Comment options

You must be logged in to vote
1 reply
@yanshay
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants