How can I change Windows 11 theme (theme, NOT wallpaper) using Python?

Viewed 34

I have recently started using Python to automate tasks on my computer, and I have already written a working script that changes the desktop wallpaper, picking a random one in my wallpaper folders. A couple of days ago I started searching about changing the Windows theme too, but I didn't find anything on the topic.

To be clearer, the final result I'm trying to reach is a python script that allows me to change the wallpaper (already done), and the windows (system, not apps) theme and color accordingly (what I'm trying to do), choosing a light theme, a dark one, or a custom one depending on the image (next step, but color recognition is currently not a priority considering that if I don't find a way to automatically change the theme, I won't need it).

I have no idea how to do that. I already tried searching on Google, here, on PyPI, on Bing, and YouTube, but all the results are about changing windows wallpaper, IDEs and app themes, and python GUIs. Writing a script that automates wallpaper changing, but requires manually changing the OS colors to avoid having a dark wallpaper with an unmatched light color theme, would have nothing to do with task automation. Could someone help me?

Edit - The answer given here explains how to change app themes, while I'm trying to change the OS theme, and then have the apps adapt to the Windows theme. If the OS theme remains the same I will end up having a red-scale dark wallpaper while maintaining a white start menu with light blue colors.

0 Answers
Related