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.


Leave a Reply

More great articles

Prepare for the CSWP-API Exam like a BOSS

The CSWP-API is the latest addition to the SOLIDWORKS catalog of certificates (If you discount the 3DExperience platform).This exam tests…

Read Story

A Quickstart Guide with the SOLIDWORKS PDM Web API

Headups: This post is not about the PDM Web2 viewer. This feature is not available with SOLIDWORKS PDM Standard. This…

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