mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-02-17 07:56:24 +00:00
10 lines
306 B
PowerShell
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
|
||
|
|
}
|
||
|
|
}
|