Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Would like to have the User choose the Theme

Maybe I am missing something here.   Is there a way to allow the user to change the "Theme" from within the application?

Power Apps
Power Apps


The way you can achieve that in PowerApps is by binding the relevant design properties of your controls to some state that your app manipulates:


    Button1.Fill = theme.back

    Button1.Color = theme.fore



...and allow users to change that state:


    themeDropdown.Items = Table(

        {name: "sunny", theme: {fore: Black, back: White, highlite: Red}},

        {name: "dark", theme: {fore: Green, back: RGBA(27,36,29,1), highlite: Pink}},

        . . . )

    themeDropdown.OnChange = UpdateContext({theme: themeDropdown.Selected.theme})


I hope this helps.


Radu Gruian [MSFT] ** PowerApps Staff

Thanks, A lot of effort for what I wanted to do.  I assumed that the Themes on the Design Tab could some how be easily chosen from within the App by the user and the speed/result would be the same as me choosing the them from the design tab in the IDE


Can you please suggest this as a potential feature in the PowerApps Ideas forum?


Thank you.


Radu Gruian [MSFT] ** PowerApps Staff

I concur! You can assign variables to everything, but (on my machine) the app quickly gets bogged down with the extra data it is juggling. That made sense when I realized that every item I changed increased the memory pool exponentially. I even had a catastrophic crash the other night, which destroyed hours of good solid work (perhaps I should suggest better recovery). To be able to pass one value (the theme name) instead of 10 is always going to be more efficient. Right? :manwink

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,391)