Skip to content

Dynamically change a background #348

Answered by davetcc
Dmitry-kalinin asked this question in Q&A
Discussion options

You must be logged in to vote

The best starting point we have at the moment documentation wise is https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/themes/rendering-with-themes-icons-grids/

But in summary, if you just want to change the drawing colours, there are a couple of palette entries at the top of the theme header file, you can just change those, they are simply defined as RGB(r,g,b) where each value is between 0..255.

If you wanted to change the selected colors, you'd search for factory.setSelectedColors and adjust those RGB values. That should be it.

If you wanted to change the color of a single menu, see the esp/ESPAmplifier example, it does that for the status menu I think.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Dmitry-kalinin
Comment options

Answer selected by Dmitry-kalinin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants