<?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 Detect dark mode in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/detect-dark-mode/m-p/13303615#M274</link>
    <description>&lt;P&gt;Is there a way with the API to detect that the UI is in dark mode?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 13:39:45 GMT</pubDate>
    <dc:creator>FRFR1426</dc:creator>
    <dc:date>2025-02-06T13:39:45Z</dc:date>
    <item>
      <title>Detect dark mode</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/detect-dark-mode/m-p/13303615#M274</link>
      <description>&lt;P&gt;Is there a way with the API to detect that the UI is in dark mode?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 13:39:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/detect-dark-mode/m-p/13303615#M274</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2025-02-06T13:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Detect dark mode</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/detect-dark-mode/m-p/13303623#M275</link>
      <description>&lt;P&gt;I can read /Categories/Category/Property/CurrentSkin/Value (1: Dark, 2:Light) in&amp;nbsp;%AppData%\Autodesk\Autodesk Vault Professional 2023\ApplicationPreferences.xml. But I'll only be able to switch the colors on the next restart.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 13:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/detect-dark-mode/m-p/13303623#M275</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2025-02-06T13:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Detect dark mode</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/detect-dark-mode/m-p/13303885#M276</link>
      <description>&lt;P&gt;You can read the current theme on startup and establish an event handler to react whenever the user changed it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;void IExplorerExtension.OnStartup(IApplication application)
{
    mApplication = application;

    mCurrentTheme = VDF.Forms.Library.CurrentTheme.ToString();
    VDF.Forms.Library.ThemeChanged += ThemeChanged;
.....
}

        private void ThemeChanged(object? sender, Library.UITheme e)
        {
            mCurrentTheme = VDF.Forms.Library.CurrentTheme.ToString().ToLower();
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Extend the ThemChanged with your needs, like updating icons, etc..&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 15:11:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/detect-dark-mode/m-p/13303885#M276</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2025-02-06T15:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Detect dark mode</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/detect-dark-mode/m-p/13305410#M277</link>
      <description>&lt;P&gt;Note that this property (CurrentTheme) and this event (ThemeChanged) have been added in the 2024 version of the API. I'm on 2023...&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 10:24:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/detect-dark-mode/m-p/13305410#M277</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2025-02-07T10:24:03Z</dc:date>
    </item>
  </channel>
</rss>

