CA$0.00
0

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

Sync your Windows 10 default app mode with SOLIDWORKS 3D and Screenshot of SOLIDWORKS 2022 Professional (2022 SP3.0) with the Windows Settings app open side-by-side. The left side shows the SOLIDWORKS splash screen with a large "DS SOLIDWORKS 2022" logo centered on a light gray background and the main menu bar at the top. The right side displays the Windows Settings > Personalization > Colors page, where "Dark" mode is selected under "Choose your default app mode," the toggle for "Transparency effects" is on, and a custom accent color is being chosen. The taskbar and desktop are visible in dark theme, demonstrating how SOLIDWORKS appears when Windows is set to dark mode.
Picture of Amen Jlili

Amen Jlili

Amen Jlili is the founder and technical director of Blue Byte Systems Inc., a software company in Vancouver, Canada, specializing in automating SOLIDWORKS and PDM.

SOLIDWORKS 3D offers users a dark and a light theme. To sync your Windows 10 default app mode with SOLIDWORKS 3D, you can use a custom add-in that automatically aligns the theme with your system settings.

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 Colours 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:

Need this adapted to your workflow?

We build custom SOLIDWORKS macros, add-ins and PDM automation.

Picture of Amen Jlili

Amen Jlili

Amen Jlili is the founder and technical director of Blue Byte Systems Inc., a software company in Vancouver, Canada, specializing in automating SOLIDWORKS and PDM.
0
0
Your Cart
Your cart is emptyReturn to Shop