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.

swAddIn.cs

WindowsThemeManager.cs:

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

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

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
Arrow-up
×