@Anonymous
My method will save the DarkMode settings to the device.
Put this code in the OnSelect property of your Moon icon
ClearCollect(colUserSettings, {DarkMode: true});
SaveData(colUserSettings, "UserSettings");
Then, put this code in the OnSelect property of your Sun icon.
ClearCollect(colUserSettings, {DarkMode: false});
SaveData(colUserSettings, "UserSettings");
Finally, use this code in the app OnStart property.
LoadData(colUserSettings, "UserSettings");
Set(isDarkMode, LookUp(colUserSettings, First(colUserSettings).DarkMode);
Now you can check for DarkMode at any time by using the variable
isDarkMode
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."