Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vyshnav4u
Frequent Visitor

Power BI theme implementation on custom visual

Hi I'm trying to add powerbi theme color palette to my custom visual, I was able to generate color palette using IVisualHost.colorPalette.getColor() function and successfully change color based on different theme selections, but in the default theme selection I don't want to use that color palette provide by powerbi, so is there is any way to detect if the selected theme is default or not?

vyshnav4u_0-1661276544066.png

 

 

2 REPLIES 2
vyshnav4u
Frequent Visitor

Hi @v-shex-msft,

Thanks for the replay, I implemnetd theme support in custom visual, but what I want is if I selected the default theme I don't want to use the color palette powerbi provides, So in order to achieve that I need to know which theme is currently active(selected by the user), so is there is any way to know which theme is currently set by the user.

v-shex-msft
Community Support
Community Support

Hi @vyshnav4u,

AFAIK, the current power bi theme does not work for custom visuals. If you want to custom visual also interact with the theme settings, you need to add code support about the theme and properties.

Adding formatting options to a Power BI custom visual - Power BI | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.