Skip to content

Dark Theme for Windows

config/tweaks.json
1236  "WPFToggleDarkMode": {
1237    "Content": "Dark Theme for Windows",
1238    "Description": "Enable/Disable Dark Mode.",
1239    "category": "Customize Preferences",
1240    "panel": "2",
1241    "Type": "Toggle",
1242    "registry": [
1243      {
1244        "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize",
1245        "Name": "AppsUseLightTheme",
1246        "Value": "0",
1247        "Type": "DWord",
1248        "OriginalValue": "1",
1249        "DefaultState": "false"
1250      },
1251      {
1252        "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize",
1253        "Name": "SystemUsesLightTheme",
1254        "Value": "0",
1255        "Type": "DWord",
1256        "OriginalValue": "1",
1257        "DefaultState": "false"
1258      }
1259    ],
1260    "InvokeScript": [
1261      "
1262      Invoke-WinUtilExplorerUpdate
1263      if ($sync.ThemeButton.Content -eq [char]0xF08C) {
1264        Invoke-WinutilThemeChange -theme \"Auto\"
1265      }
1266      "
1267    ],
1268    "UndoScript": [
1269      "
1270      Invoke-WinUtilExplorerUpdate
1271      if ($sync.ThemeButton.Content -eq [char]0xF08C) {
1272        Invoke-WinutilThemeChange -theme \"Auto\"
1273      }
1274      "
1275    ],

Registry Changes

Applications and System Components store and retrieve configuration data to modify Windows settings, so we can use the registry to change many settings in one place.

You can find information about the registry on Wikipedia and Microsoft’s Website.