I have attached a sample klwp file with the set up already in it to save some time. Feel free to skip to the "Bug" section if you are using that file.
For a detailed explanation of the set up, see below:
1. Dark (a global switch that triggers "dark" colors)
2. AMOLED (a global switch that triggers "AMOLED" colors)
3. Mode (a global text or list that is used to cycle between light, dark, and AMOLED mode -- initially set to 0)
1. A shape
2. A komponent that contains a shape
The root shape has a toggle global touch formula with Mode as the switch and the following as text: $if(gv(Mode) = 0, 1, gv(Mode) = 1, 2, 0)$
The komponent also has "Dark" and "AMOLED" variables in it, linked to the root globals.
The global "Dark" set to toggle on via manual and formula with the formula $gv(Mode) = 1$ and off with the formula $gv(Mode) != 1$
The global "AMOLED" set to toggle on via manual and formula with the formula $gv(Mode) = 2$ and off with the formula $gv(Mode) != 2$
The shape inside of the komponent has its color set to the following formula: $if(gv(Dark) = 1, #FFFF0000, gv(AMOLED) = 1, #FF000000, #FF00FF00)$
For testing purposes, the root shape also has its color set to the following formula: $if(gv(Dark) = 1, #FFFF0000, gv(AMOLED) = 1, #FF000000, #FF00FF00)$
If I tap the root shape, the root shape's color changes accordingly. However, the shape inside the komponent does not change color despite the komponent's globals AMOLED and Dark changing with each tap.
Strangely, if the "manual and formula" toggles are changed to "manual" and the root shape's touch is changed set to the switch "Dark" or "AMOLED" rather than "Mode," then both shapes change to the correct colors.
Let me know if more information is needed. Thanks!