Dark/Light theme: Sync your Windows 10 default app mode with SOLIDWORKS 3D

Amen Jlili

SOLIDWORKS 3D offers users a dark and a light theme.

There is a setting in Windows 10 that automatically turn on or off theme selection in third-party applications. SOLIDWORKS does not use that feature so it’s about time we wrote an article to show how a custom add-in can automatically pick up that Windows setting. First, to turn on or off app theme mode, you need to :

  • Type theme in the Windows search bar and pick the first result.
  • Click on Colors on the sidebar and you will get this window.

Clicking light or dark under “Choose your default app mode” will switch the theme in your applications. A good example is Google Chrome.

The source code of the add-in is available on our GitHub. It’s made of two classes:
– swAddIn.cs: This is the add-in class.
– WindowsThemeManager.cs : This class listens for registry changes when the default app mode values.



In order to compile the project, you need to clone the repo and rebuild it. To get the MSI installer, please consider purchasing it from our store.

More great articles

Have ever you used the SldWorks.exe arguments?

Sldworks.exe is the executable file that launches SOLIDWORKS 3D. This process can be launched with arguments that trigger certain modes…

Read Story

Top 5 reasons to start using PDM2Excel to start exporting PDM BOMs to Excel.

You use SOLIDWORKS PDM Professional to manage your product's cad data. You and your team have a solid vault implementation…

Read Story

Export SOLIDWORKS PDM BOMs to xlsx with thumbnails – PDM2Excel

With version 6 of PDM2Excel, a new export function has been added to allow you to export your PDM BOM…

Read Story