How to Build Custom Themes in Power Apps Dynamic Modern Theme Picker

How to Build Custom Themes in Power Apps Dynamic Modern Theme Picker Hello everyone Resa here in this video we will learn about the modern theming options for canvas power apps we will create custom themes apply it to both modern as well as classic controls and.

How to Build Custom Themes in Power Apps Dynamic Modern Theme Picker

See how we can create a theme selector option for our end users which allow them to dynamically change the theme for the power app let's check it out in action.

[Music] let's learn about modern theming for canvas power apps I have built a screen that includes both modern controls and classic.

Controls in the insert panel is where we can insert controls that includes the modern controls that follow the fluent design standards as well as the classic.

Controls modern theming includes a set of standard outof thee boox themes that we can select from these modern themes apply to both modern as well as classic controls for the modern controls the.

Modern theme is the outof the boox option whereas for classic controls the way these modern themes are applied is if you explore the properties of those controls the fill property of the.

Button control it uses the Power FX formula app. theme this points to the current selected theme in the app and from that theme it goes ahead and picks the.

Primary color the fact that modern theming applies both to modern and classic controls allows app makers to create a more consistent experience with the.

Click of a single button modern theming allows us to create our own custom themes click add a theme give your theme a.

Name pick a seed color for your theme this you can pick directly from the Color Picker EXP experience notice as I pick the seed color the hex code and the RGB code gets automatically.

Calculated based on the selection I make you can also manually enter the color code right here either in HEX or RGB you can pick the font for your theme it generates a pallette of colors.

Which basically includes include variations of colors depending upon the primary seed color that you select vibrancy and torsion allow us to adjust the theme pallet generated.

Posts Related:

    Especially the colors at the lighter end

    Of the pallet vibrancy affects how muted or bright the pallet is and tsion impacts the tint of the.

    Color as you are building out your theme you also have a live preview of how the theme would be applied to controls so notice as I make adjustments to the properties of my theme I can see.

    A live preview in action once you're ready click create and this will add my custom theme to my power app and I can create multiple.

    Themes as I select a specific theme automatically all the controls will change the theme that you select the way it gets applied to your power app is if you go to the app.

    Object there is the property theme is set to Rd green that is the exact name of my theme let's try and change this to Rd purple depending upon the theme name set.

    For this property value the theme of my power app is changing and of course if I go to the theme option and pick a specific theme you can see how this property.

    Changes the standard themes they are names are predefined power apps theme teams theme and so on and so forth the custom themes depending upon the names you provide you.

    Can see how the name is being applied right here which also means we can allow our users to dynamically change the theme of the power app to give them the.

    Flexibility to select the theme for the app let's see how we can do this in my home screen I'll go and insert the drop- down.

    Control and for this dropdown I'll list

    Out the themes items expects an array of data the first item alpek Rd purple comma alpek Rd.

    Green power apps theme and let's say I'll pick orange theme for the drop-down Fields I'll add the name so this mod and drop down control.

    Now lists out the different theme options that I can select now when a selection is made in the drop-down I would like to set a variable which would Define the theme.

    That the user has selected so for the drop down controls on change property I will set a variable where selected.

    Theme self. selected let's select Rd green if I explore this variable it has the details for my Rd green theme if I head back to my app objects.

    Theme property right now it's hardcoded to Rd purple let's change this to V selected theme and you can see the Magic in action the user can now pick the theme.

    For the power app here I have a help desk power app that allows users to create support tickets now this is an endtoend application with multiple screens.

    Help dusk will L me to the screen where I can see all the tickets that have been created I have the option to filter the tickets based upon the status I can view the tickets that I.

    Have created tickets that are assigned to me and I can also look at tickets that are overdue since X number of days I can create tickets.

    View details of existing tickets make modifications and more I have given the option for my end users to pick the theme I can go to theme.

    Selector I've utilized the same concept of that drop down to pick the theme for the app I've also placed controls on the screen so as they pick the theme they.

    Can see a preview of the theme live here in and now if I head back to the home screen experience and start going through my.

    Different screens of my app you will notice that the theme has changed depending upon the selection that I made here I picked a theme it has this dark background color.

    Of the theme that it has applied to the welcome screen I check to see if the variable that I'm setting for for the theme if that equals my theme called inverted.

    Theme in that case I am applying the primary theme color here where I have this tab control this is in a container If You observe the fill.

    Property of this container I have picked the lighter shade of my applied theme if you enjoyed this video then do like comment and subscribe to my YouTube channel and thank you so much for.

    DISCLAIMER: In this description contains affiliate links, which means that if you click on one of the product links, I'll receive a small commission. This helps support the channel and allows us to continuetomake videos like this. All Content Responsibility lies with the Channel Producer. For Download, see The Author's channel. The content of this Post was transcribed from the Channel: https://www.youtube.com/watch?v=HUxcbw6ruCw
Previous Post Next Post