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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
VizDataLtd
Helper I
Helper I

How to set default font color in settings.ts?

Hello,

 

I am accessing the color palette in visual.ts, and in cases where the user has not selected a fill color, it takes the first color from their color palette (in my current case, blue via colorPalette.getColor('0').value). It's all working great. However, the formatting pane still shows a non-selected color as its default, because I can't work out how to pass the blue colour into the settings.ts file. Is this actually possible?

 

I thought:

 

1) Import Visual into settings, but settings file runs before visuals file, and this would be a waste of memory anyway;

2) define a class within settings, and import the colour palette there, but that isn't working because I can't pass the VisualConstructorOptions into the class.

 

Any thoughts welcomed.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @VizDataLtd,

So you mean to custom the default color in the color picker panel? AFAIK, current powr bi seems not existed features to customize on these. (custom visuals invoked these interface instead of customize on these UI and elements)

Regards,

Xiaoxin Sheng

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

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @VizDataLtd,

So you mean to custom the default color in the color picker panel? AFAIK, current powr bi seems not existed features to customize on these. (custom visuals invoked these interface instead of customize on these UI and elements)

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.