How to apply a theme change to every GUI elements at runtime

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ram

I just wish to control the theme at runtime and I noticed that loading the applied theme, and changing something only applies if I call update() on every single GUI elements. Actually the Labels take the new font color if I change their text or if I call update() on them. The solution should be to call update() on the parent container of the entire GUI but it does not call it recursively, so I have to call update() on every labels manually. It becomes a maintenance nightmare.

:bust_in_silhouette: Reply From: Ram

A nice person on discord gave me the solution :

propagate_call(“update”)