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

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 SLDPRT and SLDASM to HTML with PDM Convert Task Extended

Version 8 of the PDM Convert Task Extended comes with support for exporting SOLIDWORKS parts and assemblies to HTML. The…

Read Story

New for 2022! SOLIDWORKS PDM API Things You Can Do…They’re pretty cool.

The 2022 release of the SOLIDWORKS PDM Professional API didn't bring major changes to the API itself with the exception…

Read Story