Files
Win11Debloat/Scripts/GUI/GetSystemUsesDarkMode.ps1
2026-02-15 23:08:54 +01:00

10 lines
306 B
PowerShell

# Checks if the system is set to use dark mode for apps
function GetSystemUsesDarkMode {
try {
return (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize' -Name 'AppsUseLightTheme').AppsUseLightTheme -eq 0
}
catch {
return $false
}
}