zoukankan      html  css  js  c++  java
  • Windows 10 的深色/浅色模式切换

    @echo off
    title Windows Mode
    :begin
    if "%1"=="" goto menu
    if "%1"=="default" goto default
    if "%1"=="dark" goto dark
    if "%1"=="light" goto light
    :menu
    cls
    echo.
    echo     1).default Mode
    echo     2).dark Mode
    echo     3).light Mode
    echo.
    choice /c 123 /m "choice:"
    if %ERRORLEVEL%==3 goto light
    if %ERRORLEVEL%==2 goto dark
    if %ERRORLEVEL%==1 goto default
    :default
    reg add HKCUSoftwareMicrosoftWindowsCurrentVersionThemesPersonalize /v AppsUseLightTheme /t REG_DWORD /d 1 /f
    reg add HKCUSoftwareMicrosoftWindowsCurrentVersionThemesPersonalize /v SystemUsesLightTheme /t REG_DWORD /d 0 /f
    goto end
    :dark
    reg add HKCUSoftwareMicrosoftWindowsCurrentVersionThemesPersonalize /v AppsUseLightTheme /t REG_DWORD /d 0 /f
    reg add HKCUSoftwareMicrosoftWindowsCurrentVersionThemesPersonalize /v SystemUsesLightTheme /t REG_DWORD /d 0 /f
    goto end
    :light
    reg add HKCUSoftwareMicrosoftWindowsCurrentVersionThemesPersonalize /v AppsUseLightTheme /t REG_DWORD /d 1 /f
    reg add HKCUSoftwareMicrosoftWindowsCurrentVersionThemesPersonalize /v SystemUsesLightTheme /t REG_DWORD /d 1 /f
    goto end
    :end
    exit
     
  • 相关阅读:
    javascript与XML
    错误调试
    Js节点操作
    vue渲染时对象里面的对象的属性提示undefined,但渲染成功
    html5脚本编程
    用canvas把页面中所有元素的轮廓绘制出来
    HTTP的三次握手
    http协议的发展历史
    5层网络模型介绍
    http主要内容流程介绍
  • 原文地址:https://www.cnblogs.com/Tty725/p/12508555.html
Copyright © 2011-2022 走看看