I have always wondered how to change the theme in application with native qlik sense extensions. I am aware that there are extensions on the market for the same purpose but the challenge was how to do it with the objects in the application itself?
My solution is to chenge background layer but this can be apply on theme too, you just need to add your css for theme in multy kpi object :
1. Use Multy KPI extension and add some css. I add 9 multy kpi object with different css for background and add to master items.
2. Create variable vBackgroundLayer and for definition use number 1 or any other number what will be default background layer in app.
3. Add Container and insert all 9 multy kpi objects and add condition =if(vBackgroundLayer=1,1,0) =if(vBackgroundLayer=2,1,0) =if(vBackgroundLayer=3,1,0) ............................. ............................. =if(vBackgroundLayer=9,1,0)
4. Using 9 buttons we can change the background lyers by color and position Button settings: Action: Set Variable value Variable: vBackgroundLayer Value: 1
Action: Set Variable value Variable: vBackgroundLayer Value: 2
Action: Set Variable value Variable: vBackgroundLayer Value: 3