Hi @fbf-ehu
I would suggest to use the Set() function to create a global variable that stores the color you want, and then use that variable in the Fill property to sow the color.
For example, you can add this code to the OnStart property of your app:
Set (gblColor, Blue)
or whatever color you want, and then set the color to your preferred color in the Switch if the condition has returned with a value.
Your code would like:
Set(gblColor, Color.Blue);
Switch(
Slider1.Value,
20,
Set(gblColor, Color.Yellow),
25,
Set(gblColor, Color.Green),
30,
Set(gblColor, Color.Purple);
)
If you have any questions or feedback, please let me know. Have a great day! 😊
-----------------------
PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]
I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻