桌面運(yùn)維中如何為 Windows 10 桌面右鍵菜單添加深色模式與亮色模式
2020-04-11 20:17 作者:艾銻無(wú)限 瀏覽量:
給 Windows 10 桌面右鍵菜單添加深色/亮色顏色模式開關(guān),并非很高深,
桌面運(yùn)維工程師就向您做一個(gè)技巧分享。如果您愿意選擇捷徑,可直接看文末“神秘代碼”。
效果如下:
廢話不多說(shuō),直接上過(guò)程,不需要一步一步照著來(lái),看看就好:
一、電腦桌面左下角-搜索-注冊(cè)表-打開:
定位到:計(jì)算機(jī)\HKEY_CLASSES_ROOT\DesktopBackground\Shell
二、右擊-shell新建-新建一個(gè)項(xiàng)-命名為AppMode:
三、在新建的 AppMode 項(xiàng)中右側(cè)需要新建四個(gè)字符串值 ,分別為: Icon、MUIVerb、Position、SubCommands。
四、然后依次雙擊新建分別填入對(duì)應(yīng)數(shù)據(jù)值: icon 的數(shù)值數(shù)據(jù)填入, themecpl.dll,-1
MUIVerb的數(shù)值數(shù)據(jù)填入-應(yīng)用模式
Position的數(shù)值數(shù)據(jù)填入-Bottom
SubCommands不做修改
解釋這里的四個(gè)字符串值對(duì)應(yīng)數(shù)值數(shù)據(jù)的作用:
Icon指定圖標(biāo)路徑 themecpl.dll,-1,MUIVerb 表示層疊菜單組的名稱,Position指定菜單標(biāo)題位置(分別為:頂部Top、中間Center、底部Bottom三項(xiàng)),SubCommands 表示層疊菜單。
五、在AppMode下新建shell項(xiàng),shell下新建001flyout和002flyout,同樣的我們只在001flyout和002flyout項(xiàng)中右側(cè)需要各新建兩個(gè) 字符串值 分別為: Icon、MUIVerb 以及項(xiàng):command
六、在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ù)填入 Reg Add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 1 /f
七、在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ù)填入 Reg Add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 0 /f
八、最最后按一下F5,看一下結(jié)構(gòu)大致如下:
--------------分割線 --------------
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\AppMode]
"icon"="themecpl.dll,-1"
"MUIVerb"="應(yīng)用模式"
"Position"="Bottom"
"SubCommands"=""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\AppMode\shell]
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\AppMode\shell\001flyout]
"Icon"="imageres.dll,-5411"
"MUIVerb"="亮色模式"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\AppMode\shell\001flyout\command]
@="Reg Add HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize /v AppsUseLightTheme /t REG_DWORD /d 1 /f"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\AppMode\shell\002flyout]
"Icon"="imageres.dll,-5412"
"MUIVerb"="深色模式"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\AppMode\shell\002flyout\command]
@="Reg Add HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize /v AppsUseLightTheme /t REG_DWORD /d 0 /f"
以上文章由北京艾銻無(wú)限科技發(fā)展有限公司整理