Forum Discussion

mmjabr's avatar
mmjabr
New Member
4 years ago

Use different layout background image for each page in one report (PBIX) using JSON theme

I am trying to use different layout background images for each page in one report (PBIX) using JSON theme.
I have a 3-page report and I have two themes (light/dark) and I am using layout background images for each page and I need to be able to change the background images for each page in the report based on theme selection

 

I tried changing the * to "page name" after the page tag and duplicate this part for each page, but it did not work 

 

 

"page": {
            "*": {
                "outspace": [
                    {
                        "color": {
                            "solid": {
                                "color": "#3a3a3a"
                            }
                        }
                    }
                ],
                "background": [
                    {
                        "image": {
                            "name": "Background",
                            "scaling": "Fit",
                            "url": "base64 image string"
                        },
                        "transparency": 0
                    }
                ]
            }
        }

 

 

Thanks

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi mmjabr ,

    Please check.

    If you're using one of our original themes, the "Classic" theme, or a custom theme that you imported on top of one of these, the text section of the theme dialog box isn't available for configuring.

    Built-in themes that are affected by this limitation include the following themes:

    • Classic
    • City park
    • Classroom
    • Color blind safe
    • Electric
    • High contrast
    • Sunset
    • Twilight

    If you're using one of the affected themes and you don't need to modify the text settings, you can safely use the other tabs of the dialog box with no issues. However, if you want to use the text classes with one of the affected themes, you have a couple options:

    • The quickest and easiest way to enable the text classes is to select the Default theme options.
    • If you want to keep your current custom theme, to enable the text tab:
      1. Export your current theme.
      2. Select the default theme.
      3. Import the custom theme you exported in the first step.

    The text in your report will look different, but you will be able to access the text tab in the theme dialog box.

     

    Please refer to the following document for further information.

    https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#introduction-to-report-theme-json-files

     

    Best Regards

    Community Support Team _ Polly

     

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