Forum Discussion

TanHY's avatar
TanHY
Helper I
2 years ago
Solved

Slicer JSON theme

Hi Power BI Wizards,   Would like to get some sharing from the community: Are we able to change the colour of the "Clear Selections" rubber in slicer visual? As I studied the schema, seems like t ...
  • OwenAuger's avatar
    2 years ago

    Hi TanHY 

    It appears that the eraser stroke colour on the core Slicer visual is controlled by the "foregroundNeutralSecondary" top-level property.

     

    So, this would be a valid theme setting that colour to red:

     

    {
      "name": "RedEraser",
      "foregroundNeutralSecondary": "#FF0000"
    }

     

     

    Alternatively in Power BI Desktop under Customize theme > Name and colors > Advanced > Second-level elements

    I couldn't find any other options to control this colour, and no options to control the "fill" of the eraser, but something might exist πŸ™‚

     

    Regards

  • Anonymous's avatar
    Anonymous
    2 years ago

    Thanks for the reply from OwenAuger , please allow me to add some more information:

     

    Hi  TanHY ,

     

    As far as I know, Power BI currently does not support changing only the eraser color in the slicer. The closest option is to set it in the Customize theme, but the Second-level element includes Slicer slider color, Slicer item font color, and Slicer outline color. Therefore, when making changes, the colors of all three parts will be changed.

    Refer to:

    Use report themes in Power BI Desktop - Power BI | Microsoft Learn

     

    You can submit an idea for it at Home (microsoft.com) and wait for users with the same needs as you to vote for you to help make it happen as soon as possible.

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.