-
I'm using ESP32S3 and gradients don't show. The same gradient (though in a much simpler aplication) in the SlintPad shows just fine. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Gradiants works, but not on the Window and not if the rectangle has border radius. |
Beta Was this translation helpful? Give feedback.
-
It's a rectangle, and has no border-radius (I saw that limitation so removed it). It's basically the PushButton from your printer demo that I adapted, it inherits from a Rectangle and not a rectangle - maybe that's the issue? The only "special" things about it is:
Could any of these be the cause? I'll try to troubleshoot further if it is supposed to work. |
Beta Was this translation helpful? Give feedback.
-
Ok, found the issue. It's caused by (1) above. 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 while everything was a single color. Not a big deal for me, but just mentioning it while on round corners in case someone encounters it. |
Beta Was this translation helpful? Give feedback.
-
Can you tell me what screen you're using? I'm using esp32s3 + gc9503 (esp32_s3_lcd_ev_board), but my screen doesn't show anything! |
Beta Was this translation helpful? Give feedback.
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 …