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
     
  • 相关阅读:
    java关键字synchronized
    JVM调优之jstack找出最耗cpu的线程并定位代码
    高性能Mysql
    awk使用入门
    JVM性能调优监控工具
    java垃圾回收算法
    JVM内存模型
    jvm之内存分配与回收策略
    leetcode 78. 子集(c++)
    leetcode 148. 排序链表(c++)
  • 原文地址:https://www.cnblogs.com/Tty725/p/12508555.html
Copyright © 2011-2022 走看看