In attempting to create a standard color palette based on out branding colors, I attempted to set these color values to variables in OnStart, so as to have easy access to them throughout the application.
App->OnStart, I added this code:
After running OnStart, I then tried to use this in a Fill for a label, like so:
Which filled my label with black, thusly:
Checking my variables, I see that _LightestYellow is defined as a color, but has no value:
Setting the Fill value for the label to the what the variable was supposed to be defined as ,
, fills the label with yellow:
I would like to have a standard block of code that I add to every app so that I can access the branding colors easily
What (probably super simple) thing am I missing that is preventing me from successfully defining a variable as a ColorValue()?
Solved! Go to Solution.
great and happy to know. Remember when you assign the Color("djdjdj") to a variable on OnStart and then you try to use for Fill .. the variable behaves like a boolean variable and it return true or false 🙂
Would you go into a bit more detail on that, please?
Are you talking about this kind of code put into OnStart:
Set(_LightestBlue, ColorValue("#08c5fb")); ?
Under what condition would it return true and under what condition would it return false?
I tried plugging
into the text field, and the error came that it was expecting a text value. Also, in the variables, it sad that _LightestBlue has no value.
Check out new user group experience and if you are a leader please create your group
Check out how to claim yours today!
Test your skills now with the Cloud Skill Challenge.
We are excited to announce that Demo Extravaganza for 2021 has started!