
操作方法如下:
1、Win+R-輸入“regedit”-打開“注冊(cè)表編輯器
2、”-定位到:HKEY_CLASSES_ROOT\DesktopBackground\Shell

3、右擊-shell新建-新建一個(gè)項(xiàng)-命名為 AppMode:

4、在新建的 AppMode 項(xiàng)中右側(cè)需要新建四個(gè)字符串值,分別為: Icon、MUIVerb、Position、SubCommands。
5、然后依次雙擊新建分別填入對(duì)應(yīng)數(shù)據(jù)值:
icon 的數(shù)值數(shù)據(jù)填入:themecpl.dll,-1
MUIVerb的數(shù)值數(shù)據(jù)填入:顏色模式(&M)
Position的數(shù)值數(shù)據(jù)填入:Bottom
SubCommands不做修改

這里解釋一下“MUIVerb”改用“顏色模式(&M)”原因是桌面右鍵菜單中所有項(xiàng)都有熱鍵,唯獨(dú)我這個(gè)后加的沒有,強(qiáng)迫癥不能忍(=?ω?)?。PS:這里按下M鍵是有響應(yīng)的哦,不是虛設(shè)。

6、在AppMode下新建shell項(xiàng),shell下新建001flyout和002flyout,同樣的我們只在001flyout和002flyout項(xiàng)中右側(cè)需要各新建兩個(gè) 字符串值 分別為: Icon、MUIVerb 以及項(xiàng):command
7、在001flyout項(xiàng)中依次雙擊新建分別填入對(duì)應(yīng)數(shù)據(jù)值:
icon的數(shù)值數(shù)據(jù)填入:imageres.dll,-5411
MUIVerb的數(shù)值數(shù)據(jù)填入:淺色模式
雙擊command項(xiàng),修改右側(cè)(默認(rèn))的數(shù)值數(shù)據(jù)填入:
WScript C:\Windows\System32\AppMode\LightMode.vbs
8、在002flyout項(xiàng)中依次雙擊新建分別填入對(duì)應(yīng)數(shù)據(jù)值:
icon的數(shù)值數(shù)據(jù)填入:imageres.dll,-5412
MUIVerb的數(shù)值數(shù)據(jù)填入:深色模式
雙擊command項(xiàng),修改右側(cè)(默認(rèn))的數(shù)值數(shù)據(jù)填入:
WScript C:\Windows\System32\AppMode\DarkMode.vbs
9、按一下F5,看一下結(jié)構(gòu)大致如下:

九、制作兩個(gè)VBS文件
復(fù)制以下代碼保存為:DarkMode.vbs
If WScript.Arguments.length =0 Then
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "Reg Add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 0 /f",0,True
objShell.Run "Reg Add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v SystemUsesLightTheme /t REG_DWORD /d 0 /f",0,True
End If
復(fù)制以下代碼保存為:LightMode.vbs
If WScript.Arguments.length =0 Then
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "Reg Add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 1 /f",0,True
objShell.Run "Reg Add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v SystemUsesLightTheme /t REG_DWORD /d 1 /f",0,True
End If
最后把制作好的兩個(gè)VBS放到C:\windows\system32\文件夾下就可以了。