cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Deep_Ponkiya
New Member

How to change color of Canvas PowerApps controls?

Hello All.

I have created screen with multiple controls in canvas app. Please refer below screenshot.

Now, I need to change color of all the controls from orange to blue.

So, I need to change the color from each controls property.
Can anyone suggests me how to change all controls color without changes in each controls property?

Thanks

chrome.png

6 REPLIES 6
WarrenBelz
Super User
Super User

Hi @Deep_Ponkiya ,

You need to change all the properties the first time anyway, so set a Variable at App OnStart

Set(
   gblColor,
   Blue
)

or whatever Colour you want and then set the colour of everything to gblColor. You can also have variations of this using ColorFade() based on the initial variable (or a second colour variable). Then if you want to change it again, all you have to do is change the Variable/s.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

Deep_Ponkiya
New Member

@WarrenBelz 

Thank you for the answer

berofeev
Helper I
Helper I

Also, once you've set your variable, you can ctrl+click on several controls and change their fill or color values simultaneously.

 

This only works for controls inside the same container. 

@WarrenBelz

I have tried as you have suggested. 

But it is not working in my app

Please check below Attachments.


.chrome-capture (13).pngchrome-capture (14).png

@Deep_Ponkiya ,

Actually for Blue you need

Set(
   gblColor,
   RGBA(0,0,255,1)
)

and yes, if you have two controls in the same container (card, gallery item or uncontained), you can select them and do them together.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

WarrenBelz
Super User
Super User

Hi @Deep_Ponkiya ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,153)