microsoft / powerbi-desktop-samples

Power BI Desktop sample files for the monthly release. Here you can find the PBIX files used in the monthly release videos.
MIT License
1.48k stars 892 forks source link

Changing the Color of Applied Filter Cards Broken #82

Closed PriceR9 closed 1 year ago

PriceR9 commented 1 year ago

When trying to change the color of a Filter Pane Filter Card in the applied state the change does not do anything. I've attempted making the change using the customize current theme in PBI Desktop, but when I select apply nothing changes. Going back into the customize current theme editor and it shows the original color value.

I've also attempted changing the JSON file manually, however the same thing happens, it doesn't matter what the color entered is when loaded it always reverts back to the standard color.

the backgroundColor under the "Applied" ID is where i made the change manually. however when the theme is loaded into PBI Desktop the Customize Current theme editor shows the color as hex #F3F2F1 no matter how it is attempted to be changed.

Changing the "Available" background color is broken in the same way, no matter how you change it, it stays as white. This appears to have happened with the most recent PBI Update.

"filterCard": [ { "$id": "Available", "backgroundColor": { "solid": { "color": { "expr": { "ThemeDataColor": { "ColorId": 6, "Percent": 0 } } } } }, "transparency": 0, "textSize": 10 }, { "$id": "Applied", "backgroundColor": { "solid": { "color": "#F0B310" } }, "transparency": 0, "textSize": 10 } ],

PriceR9 commented 1 year ago

It appears this issue is more to do with the themes created by the PBI.Tips Theme Generator. After testing again with a fresh theme only edited in the PBI interface it worked and I was able to get the corrected JSON to merge with my theme file.