Start here
Libraries
Icon display widget.
Bases: Widget
Widget
Monochrome or RGB565 icon display.
Load icon asset, cache it, and record whether it is a color asset.
Update the icon when the value changes.
Draw the icon on the screen.
Color (RGB565) icons are blitted directly (with chroma as the transparent key when set); monochrome icons are recolored to fg/bg via the shared 2-entry palette buffer.
chroma
fg
bg