Fired with the new theme every time setTheme runs.
theme() is read once, at construction, by every built-in widget - calling setTheme
changes nothing about what is already on screen. A widget that wants to restyle itself for
a day/night palette swap or a light/dark toggle subscribes here and reapplies its own style
from the value passed in, the same shape i18n's direction already flows into
theme.direction from a game's own glue code. Every built-in widget already does this.
Fired with the new theme every time
setThemeruns.theme()is read once, at construction, by every built-in widget - callingsetThemechanges nothing about what is already on screen. A widget that wants to restyle itself for a day/night palette swap or a light/dark toggle subscribes here and reapplies its own style from the value passed in, the same shapei18n'sdirectionalready flows intotheme.directionfrom a game's own glue code. Every built-in widget already does this.