How to change Windows color theme?
Solution 1:
You are looking for running PowerShell commands using Python.
First, find out the needed command, there is probably a command for every action you want in Windows.
Then, you can do it as follows:
import subprocess
hideBar = "&{$p='HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';$v=(Get-ItemProperty -Path $p).Settings;$v[8]=3;&Set-ItemProperty -Path $p -Name Settings -Value $v;&Stop-Process -f -ProcessName explorer}"
def run(cmd):
subprocess.run(["powershell", "-Command", cmd])
run(hideBar)
Reference: How to change a certain windows setting using python?
Solution 2:
There's no Python module that makes it that easy to tweak Windows UI settings programmatically. But you already have a working example of using reg.exe from Python. You can use your working example as a basis for modifying other registry settings. Now it's just a matter of locating the appropriate registry keys for the settings you want to change. You can do this using Google, example search query: registry key for personalize accent color
.
Here's a StackExchange post going over the keys for many Personalize settings:
https://superuser.com/a/1395560/54746