Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIN10:手动切换浅色和深色模式 #30

Open
maboloshi opened this issue Sep 13, 2022 · 1 comment
Open

WIN10:手动切换浅色和深色模式 #30

maboloshi opened this issue Sep 13, 2022 · 1 comment

Comments

@maboloshi
Copy link
Owner

"黑暗模式.vbs"

Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
' 「切换深色 Windows 模式」
objShell.Run "reg.exe add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v SystemUsesLightTheme /t REG_DWORD /d 0 /f", 0
' 「切换深色应用模式」
objShell.Run "reg.exe add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 0 /f", 0
Set objShell = Nothing

"明亮模式.vbs"

Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
' 「切换浅色 Windows 模式」
objShell.Run "reg.exe add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v SystemUsesLightTheme /t REG_DWORD /d 1 /f", 0
' 「切换浅色应用模式」
objShell.Run "reg.exe add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 1 /f", 0
Set objShell = Nothing
@maboloshi
Copy link
Owner Author

最新的版本已失效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant