Automatically switch FreeCAD themes based on your system's light/dark appearance setting.
- Open
Preferences...>Addon Manager - Add an item in
Custom Repositories:Repository URL Branch name https://github.com/ndesgranges/freecad-auto-dark-mode master - Press OK and open
Tools>Addon Manager - Search for
freecad-auto-dark-modeand click install - Reboot when asked.
You can now configure your themes, see Configuration
- Open FreeCAD
- Go to
Edit>Auto Dark Mode Settings... - Configure your preferences:
- Enable automatic theme switching: Toggle the feature on/off
- Light mode theme: Select the theme to use when system is in light mode
- Dark mode theme: Select the theme to use when system is in dark mode
- Check interval: How often to check for system theme changes
- Click OK to save
Note
Should work for the 3 listed platforms but only tested on MacOS.
Detects the system appearance setting (System Settings → Appearance).
Reads the Windows personalization settings from the registry.
Supports multiple desktop environments:
- GNOME: Reads
color-schemeandgtk-themesettings - KDE Plasma: Reads the color scheme configuration
- Other environments may work if they follow similar conventions
- Check the FreeCAD Report view (View → Panels → Report view) for error messages
- Ensure automatic theme switching is enabled in settings
- Check the Report view for any error messages
- Verify that the selected themes exist in your FreeCAD installation
- The addon searches for
.qssfiles in:- FreeCAD's built-in
Gui/Stylesheetsfolder - Theme addons in your Mod folder (FreeCAD-themes, OpenTheme, etc.)
- FreeCAD's built-in
- Check that your theme addons are properly installed
- On Linux, make sure you have
gsettings(GNOME) orkreadconfig5(KDE) - The addon checks theme every few seconds; changes may take a moment to apply. See Configuration
MIT License - see LICENSE file for details.
Contributions are welcome! Please feel free to submit issues and pull requests.