<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to set default font color in settings.ts? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-font-color-in-settings-ts/m-p/3686283#M49442</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&amp;nbsp;&lt;EM&gt;&lt;SPAN&gt;colorPalette&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getColor&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'0'&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;/EM&gt;). 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?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Import Visual into settings, but settings file runs before visuals file, and this would be a waste of memory anyway;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts welcomed.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 16:25:45 GMT</pubDate>
    <dc:creator>VizDataLtd</dc:creator>
    <dc:date>2024-02-07T16:25:45Z</dc:date>
    <item>
      <title>How to set default font color in settings.ts?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-font-color-in-settings-ts/m-p/3686283#M49442</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&amp;nbsp;&lt;EM&gt;&lt;SPAN&gt;colorPalette&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getColor&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'0'&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;/EM&gt;). 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?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Import Visual into settings, but settings file runs before visuals file, and this would be a waste of memory anyway;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts welcomed.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 16:25:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-font-color-in-settings-ts/m-p/3686283#M49442</guid>
      <dc:creator>VizDataLtd</dc:creator>
      <dc:date>2024-02-07T16:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default font color in settings.ts?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-font-color-in-settings-ts/m-p/3687182#M49450</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/679652"&gt;@VizDataLtd&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;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)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 02:52:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-font-color-in-settings-ts/m-p/3687182#M49450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-08T02:52:12Z</dc:date>
    </item>
  </channel>
</rss>

