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
     
  • 相关阅读:
    运维岗春招--part2
    python 题库|刷题
    leetcode刷题
    运维面经汇总
    python自动化运维阅读笔记
    Python编程汇总
    old_boy 运维学习-第一期
    团队博客作业-Week3
    个人对final发布产品的排名
    各组对final发布产品的排名
  • 原文地址:https://www.cnblogs.com/Tty725/p/12508555.html
Copyright © 2011-2022 走看看