Maybe I am missing something here. Is there a way to allow the user to change the "Theme" from within the application?
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
..etc.
...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.
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?
https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas
Thank you.
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
User | Count |
---|---|
120 | |
86 | |
83 | |
74 | |
69 |
User | Count |
---|---|
215 | |
179 | |
140 | |
108 | |
83 |