I’m editing the lv printer demo as I really like the layout and the animations.
I’ve only edited the theme so far and the main page.
I replaced the button background with my own, but it’s not displaying as it should. I made the button image in Photopea and exported it as a PNG, then converted it online setting it to True Color with Alpha and output as C array.
All I did was declare the image just as the standard button images are declared and then changed the image source in the function that creates the four buttons.
To rule out an issue with the theme or any other code, I created a blank screen and loaded the image - same thing happened.
Perhaps there is an issue with the online image convertor, or with the output settings of the PNG image from Photopea?
What MCU/Processor/Board and compiler are you using?
PC Simulator
Screenshot and/or video
Here is the original PNG file I created on Photopea
This worked out fine for me and gave me this result, but only when I used my own custom image converter:
If i then used the public online image converter supplied by lvgl i got the same result as you.
(I tried with and without alpha) So its most likely an issue with the online converter.
PS. the green is just my background and has nothing to do with the imgbtn
Hope i understood your problem correctly and I it helps.