Closed Spadi0 closed 4 years ago
Check out this https://github.com/rafaelcaricio/lvgl-rs/pull/29
I'm not sure the alpha
information is provided by LVGL. 🤔
You can reopen if you find this is not useful. Also feel free to send pull requests. Unfortunately, I am short on free time lately to work on lvgl-rs
. I hope to be back at it in a few weeks.
The
UI
object requires anembedded_graphics
display to draw to, and the provided display needs to use aPixelColor
that also implementsFrom<Color>
. However, theColor
type does not export any fields or functions that provide either alv_color_t
, or RGBA fields.This makes it impossible to convert from the
Color
type, as no color data is provided; this means that only displays that useRgb565
orRgb888
work (as they have crate-provided implementations).Either the
raw
field needs to be public: https://github.com/rafaelcaricio/lvgl-rs/blob/d442ab99cc015d4a3d814de7d188b5792a19aea7/lvgl/src/support.rs#L18 or a function/functions that return RGBA data are needed.