Forum Discussion
Is there a Json example for adding custom icon to a custom theme .json file?
- Anonymous3 years ago
I found this as a way to import BOTH custom colors and custom icons. One of the mistakes I made was leaving the comma (circled above) out of the code. As soon as I added this into the code, I was able to import it successfully.
Additionally, I found this post about saving the theme as a template:
https://community.powerbi.com/t5/Desktop/Organizational-Default-Theme/m-p/593898
HI Cayshin,
I'd like to suggest you refer to the following blog about using Base64 string as the background image in theme files:
Power BI Theme with Background Image – PBI Guy (pbi-guy.com)
Regards,
Xiaoxin Sheng
- Cayshin3 years agoFrequent Visitor
Anonymous Thanks for taking the time to reply; however, that blog post doesn't answer or pertain to my question. The blogpost answers how to set a background in "visualStyles": {} which is not what I'm trying to do.
A Custom Icon theme affects the selectable icons when applying conditional formatting.
BEFORE CUSTOM ICON THEME APPLIED
AFTER CUSTOM ICON THEME APPLIED
(Ignore the 'broken image' icons, they still work. I know how to fix it, I just haven't yet)
If at any point I switch to using a different theme, the custom icons seen in the image above will dissapear.
So it ends up that I can have either custom icons and Power BI's default color theme OR my own custom color theme but no custom icons.
This is why I'd like to know how to have both a color palette AND icons set within the same custom theme JSON.
- Anonymous3 years agoNot applicable
I found this as a way to import BOTH custom colors and custom icons. One of the mistakes I made was leaving the comma (circled above) out of the code. As soon as I added this into the code, I was able to import it successfully.
Additionally, I found this post about saving the theme as a template:
https://community.powerbi.com/t5/Desktop/Organizational-Default-Theme/m-p/593898