Forum Discussion
Custom Theme for new Filter Pane
Posting here working code for other's references.
{
"name": "Filter Pane Theme Sample",
"visualStyles": {
"page": {
"*": {
"outspacePane": [
{
"backgroundColor": { "solid": { "color": "#0000ff" } },
"foregroundColor": { "solid": { "color": "#00ff00" } },
"transparency": 50,
"titleSize": 35,
"headerSize": 8,
"fontFamily": "Georgia",
"border": true,
"borderColor": { "solid": { "color": "#ff0000" } }
}
],
"filterCard": [
{
"$id": "Applied",
"transparency": 0,
"backgroundColor": { "solid": { "color": "#ff0000" } },
"foregroundColor": { "solid": { "color": "#45f442" } },
"textSize": 30,
"fontFamily": "Arial",
"border": true,
"borderColor": { "solid": { "color": "#ffffff" } },
"inputBoxColor": { "solid": { "color": "#C8C8C8" } }
},
{
"$id": "Available",
"transparency": 40,
"backgroundColor": { "solid": { "color": "#00ff00" } },
"foregroundColor": { "solid": { "color": "#ffffff" } },
"textSize": 10,
"fontFamily": "Times New Roman",
"border": true,
"borderColor": { "solid": { "color": "#123456" } },
"inputBoxColor": { "solid": { "color": "#777777" } }
}
]
}
}
}
}Kudos and thanks to Anonymous for the initial link that led to this solution.
And a link to my personal gist with full working themes (dark and light)...
https://gist.github.com/aaronsteers/5a7f2e454318cc32ea7d0af32c8b710c
- Anonymous6 years agoNot applicable
Hi ajsteers ,
Thanks for the kudoes. Looking at your working solution, it seems like you got it to work on the correct level.
I must be honest, I don't know yet how to use Github properly so I saw my code got lost somewhere (in a fork). It is however still here:
https://github.com/Rian-II/PowerBI-ThemeTemplates/blob/patch-1/FilterPane.json
Thanks for the link to your personal gist. I also had some challenges putting the outspacePane and filterCard on the right levels, but eventually managed to get it working. I see you made a pull request to deldersveld's repo, which is essentially the same as mine.
Below is a link to my personal repo where I dumped my two latest themes:https://github.com/Rian-II/PowerBI-Themes/tree/master
Regards
Rian