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

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?

Highlighted
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
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 70 members 1,183 guests
Please welcome our newest community members: