cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jgalus Regular Visitor
Regular Visitor

Re: Using Theme to set Title Background & Font Color

Not that I've seen.

 

Have you tried it? If so, can you post what your solution is and I'll mark it as the solution!

remusO Frequent Visitor
Frequent Visitor

Re: Using Theme to set Title Background & Font Color

I have tried several things, but still not possible as far as I know. 

 

Still waiting for an update that makes it possible to expand the json theme file

stevemenke Frequent Visitor
Frequent Visitor

Re: Using Theme to set Title Background & Font Color

Microsoft, do you have an update on this. This does not seem hard and is needed to have complete control of a theme.

PeterZ Occasional Visitor
Occasional Visitor

Re: Using Theme to set Title Background & Font Color

As of Aug 2018 update you can style the title font, color, backgraound of controls.  You can also set background of the whole report.

 

eg:

 

 

"visualStyles":
{
    "*": 
    {
        "*": 
        {
            "title": [{
                "show": true,
                "fontColor": { "solid": { "color": "#CCDCE4" } },
                "background": { "solid": { "color": "#335462" } },
                "alignment": "left",
                "fontFamily": "Arial",
                "fontSize": 10
            }],

            "background": [{
                "show": true,
                "color": { "solid": { "color": "#FFFFFF" } },
                "transparency": 0
            }]
        }
    },
            
    "page": {
        "*": {
            "background": [{
                "color": { "solid": { "color": "#87BED4" } },
                "transparency": 60
            }]
        }
    }

}

See the annoucement from MS here:
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2018-feature-summary/#theme

Highlighted
todi Frequent Visitor
Frequent Visitor

Re: Using Theme to set Title Background & Font Color

Can't get the title color to work. Shouldn't this work?

{
    "visualStyles":{
      "*":{
         "*":{
            "title":[
               {
                  "show":true,
                  "fontColor":{
                     "solid":{
                        "color":"#285c4d"
                     }
                  },            
                  "alignment":"left",
                  "fontSize":16
               }
            ]
         }
      }
   }
}
turbomanson Frequent Visitor
Frequent Visitor

Re: Using Theme to set Title Background & Font Color

Did you figure out a way todo this?

jgalus Regular Visitor
Regular Visitor

Re: Using Theme to set Title Background & Font Color

Hi @turbomanson ,

 

The below JSON will set the title to show, the font color to white, and the background color to black. Let me know if you have any questions!

 

{
"name":"My Template",

	"visualStyles":{
		"*":{
			"*":{
				"title":[{
					"show":true,
					"fontColor":{"solid":{"color":"#FFFFFF"}},
					"background":{"solid":{"color":"#000000"}}
				}]
			}
		}
	}
}
turbomanson Frequent Visitor
Frequent Visitor

Re: Using Theme to set Title Background & Font Color

@jgalus , thank you very much for your help. I was curious where in documention I can find 

"title"

flag.  I only find this documentation, which does not have this parameter listed.

https://docs.microsoft.com/en-us/power-bi/desktop-report-themes

id013 Regular Visitor
Regular Visitor

Re: Using Theme to set Title Background & Font Color

Can we set the background color of specific visualizatins using themes?

id013 Regular Visitor
Regular Visitor

Re: Using Theme to set Title Background & Font Color

Nevermind, it looks like anything involving color is not possible as of yet:

 

https://github.com/MicrosoftDocs/powerbi-docs/issues/307

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)