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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,791)