Hey guys,
A bit of a complicated problem. I can get this to work if there are only two options. Ok, here we go.
I am creating a theme selector in my app(I know, not entirely necessary) and I was using toggles to open the help menu and close it. Another toggle to change themes. This worked fine with 2 different themes. The problem is I always like to have as open ended as possible. The sky is the limit!
I also need to mention that the components are part of a component library so talking to and from the app is complicated hahaha.
So, Open the help/faq pop up and select the radio button. Seems like it should work? I declare my themes on App.Onstart:
Set(varColorModes,
Table(
{Value: "Light", FntClr: "#000000", BtnClr: "#ced1e566", HvrClr: "#F7EDD044", BGClr:"#e6e7e9", Pics:"Light"},
{Value: "Dark", FntClr: "", BtnClr: "#4C4D5566", HvrClr: "#68BBE344", BGClr:"#000000", Pics:"Dark"},
{Value: "Red", FntClr: "#3B0918", BtnClr: "#B8390E66", HvrClr: "#DC473144", BGClr:"#FFF3D9", Pics:"Light"}
)
);
I also have code that will read from this and set new color variables in the OnChange property of my radio buttons in the app itself:
Set(varLighting,LookUp(varColorModes, Value = TMMC_Help_CMD.LightMODE, Value));
Set(varFntClr,LookUp(varColorModes, Value = TMMC_Help_CMD.LightMODE, FntClr));
Set(varBtnClr,LookUp(varColorModes, Value = TMMC_Help_CMD.LightMODE, BtnClr));
Set(varHvrClr,LookUp(varColorModes, Value = TMMC_Help_CMD.LightMODE, HvrClr));
Set(varBGClr,LookUp(varColorModes, Value = TMMC_Help_CMD.LightMODE, BGClr));
Set(varPics, LookUp(varColorModes, Value = TMMC_Help_CMD.LightMODE, Pics))
Default on my radio is the same as the toggle was: HELP_component.LightMODE(This is an output from the component and is changed when selecting the different buttons.)
As always, thank you for your assistance. Have a great day!
