Question
dark mode: set bit map dynamically for image widgets in TouchGFX
I am trying to implement dark mode in my application. For this, when user selects dark mode, images for all the image widgets need to be changed to dark mode images. I understand this can be done using setBitmap in run time. However, images need to be changed to all the image widgets in current screen as well as other screens. How can I achieve this?
Is it a good idea to check dark mode setting in setupScreen() and then use setBitmap to attach appropriate image to all image widgets in that particular screen?
Any other ways to achieve this?
