I'm currently in the process of building a template app with custom theming. I created a SharePoint list for this purpose:
The Template App is in a Solution and I created an Environment Variable StyleScope for the Column Scope.
I now create all variables for the colors in the OnStart property of the App like this:
Set(PrimaryColor1Value, ColorValue(LookUp('MyThemeList', VariableName = "PrimaryColor1Value" And "@[StyleScope]" in Scope).VariableValue));
The problem I have is that the app is black in the app editing preview mode. But if I start the app with Play, all colors are displayed correctly.
If I leave out the part of the formula with the environment variable, then the display is also correct in preview mode.
What am I doing wrong?
Thanks in advance