Add options to enable dark mode, disable transparency & animations

This commit is contained in:
Raphire
2025-06-12 21:50:57 +02:00
parent 1c7c7f734f
commit 3f22b8d22d
13 changed files with 92 additions and 14 deletions

View File

@@ -19,6 +19,14 @@ Bing, Copilot & More
- Disable & remove Microsoft Copilot. (W11 only)
- Disable Windows Recall snapshots. (W11 only)
Personalisation
- Enable Dark Mode.
- Disable transparency, animations and visual effects.
- Turn off Enhance Pointer Precision, also known as mouse acceleration.
- Disable the Sticky Keys keyboard shortcut. (W11 only)
- Restore the old Windows 10 style context menu. (W11 only)
- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only)
File Explorer
- Change the default location that File Explorer opens to.
- Show hidden files, folders & drives.
@@ -39,17 +47,11 @@ Start
- Disable & hide the recommended section in the start menu. (W11 only)
- Disable the Phone Link mobile devices integration in the start menu. (W11 only)
Context menu
- Restore the old Windows 10 style context menu. (W11 only)
- Hide the 'Include in library', 'Give access to' & 'Share' options from the context menu. (W10 only)
Other
- Disable Xbox game/screen recording, this also stops gaming overlay popups.
- Turn off Enhance Pointer Precision, also known as mouse acceleration.
- Disable Fast Start-up to ensure a full shutdown.
- Disable the Sticky Keys keyboard shortcut. (W11 only)
- Option to apply changes to a different user, instead of the currently logged in user.
- Sysprep mode to apply changes to the Windows Default user profile.
- Sysprep mode to apply changes to the Windows Default user profile.
-------------------------------------------------------------------------------------------
Default mode

View File

@@ -28,6 +28,9 @@ param (
[switch]$ShowHiddenFolders,
[switch]$ShowKnownFileExt,
[switch]$HideDupliDrive,
[switch]$EnableDarkMode,
[switch]$DisableTransparency,
[switch]$DisableAnimations,
[switch]$TaskbarAlignLeft,
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
[switch]$HideTaskview,

View File

@@ -110,6 +110,15 @@ Below is an overview of the key features and functionality offered by Win11Deblo
- Disable & remove Microsoft Copilot. (W11 only)
- Disable Windows Recall snapshots. (W11 only)
#### Personalisation
- Enable Dark Mode.
- Disable transparency, animations and visual effects.
- Turn off Enhance Pointer Precision, also known as mouse acceleration.
- Disable the Sticky Keys keyboard shortcut. (W11 only)
- Restore the old Windows 10 style context menu. (W11 only)
- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only)
#### File Explorer
- Change the default location that File Explorer opens to.
@@ -132,17 +141,10 @@ Below is an overview of the key features and functionality offered by Win11Deblo
- Disable & hide the recommended section in the start menu. (W11 only)
- Disable the Phone Link mobile devices integration in the start menu. (W11 only)
#### Context Menu
- Restore the old Windows 10 style context menu. (W11 only)
- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only)
#### Other
- Disable Xbox game/screen recording, this also stops gaming overlay popups.
- Turn off Enhance Pointer Precision, also known as mouse acceleration.
- Disable Fast Start-up to ensure a full shutdown.
- Disable the Sticky Keys keyboard shortcut. (W11 only)
- Option to [apply changes to a different user](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#running-as-another-user), instead of the currently logged in user.
- [Sysprep mode](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#sysprep-mode) to apply changes to the Windows Default user profile. Afterwards, all new users will have the changes automatically applied to them.

View File

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"UserPreferencesMask"=hex:90,12,07,80,10,00,00,00

View File

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"EnableTransparency"=dword:00000000

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"AppsUseLightTheme"=dword:00000000
"SystemUsesLightTheme"=dword:00000000

View File

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[hkey_users\default\Control Panel\Desktop]
"UserPreferencesMask"=hex:90,12,07,80,10,00,00,00

View File

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"EnableTransparency"=dword:00000000

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"AppsUseLightTheme"=dword:00000000
"SystemUsesLightTheme"=dword:00000000

View File

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"UserPreferencesMask"=hex:9e,1e,07,80,12,00,00,00

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"AppsUseLightTheme"=dword:00000001
"SystemUsesLightTheme"=dword:00000001

View File

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"EnableTransparency"=dword:00000001

View File

@@ -30,6 +30,9 @@ param (
[switch]$ShowHiddenFolders,
[switch]$ShowKnownFileExt,
[switch]$HideDupliDrive,
[switch]$EnableDarkMode,
[switch]$DisableTransparency,
[switch]$DisableAnimations,
[switch]$TaskbarAlignLeft,
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
[switch]$HideTaskview,
@@ -581,6 +584,10 @@ function RestartExplorer {
Write-Host "Warning: The Sticky Keys setting changes will only take effect after a reboot" -ForegroundColor Yellow
}
if ($script:Params.ContainsKey("DisableAnimations")) {
Write-Host "Warning: Animations will only be disabled after a reboot" -ForegroundColor Yellow
}
# Only restart if the powershell process matches the OS architecture.
# Restarting explorer from a 32bit PowerShell window will fail on a 64bit OS
if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem) {
@@ -903,6 +910,19 @@ function DisplayCustomModeOptions {
AddParameter 'DisableDesktopSpotlight' 'Disable the Windows Spotlight desktop background option.'
}
Write-Output ""
if ($( Read-Host -Prompt "Enable dark mode for system and apps? (y/n)" ) -eq 'y') {
AddParameter 'EnableDarkMode' 'Enable dark mode for system and apps'
}
Write-Output ""
if ($( Read-Host -Prompt "Disable transparency, animations and visual effects? (y/n)" ) -eq 'y') {
AddParameter 'DisableTransparency' 'Disable transparency effects'
AddParameter 'DisableAnimations' 'Disable animations and visual effects'
}
# Only show this option for Windows 11 users running build 22000 or later
if ($WinVersion -ge 22000) {
Write-Output ""
@@ -1605,6 +1625,18 @@ switch ($script:Params.Keys) {
RegImport "> Disabling the Phone Link mobile devices integration in the start menu..." "Disable_Phone_Link_In_Start.reg"
continue
}
'EnableDarkMode' {
RegImport "> Enabling dark mode for system and apps..." "Enable_Dark_Mode.reg"
continue
}
'DisableTransparency' {
RegImport "> Disabling transparency effects..." "Disable_Transparency.reg"
continue
}
'DisableAnimations' {
RegImport "> Disabling animations and visual effects..." "Disable_Animations.reg"
continue
}
'TaskbarAlignLeft' {
RegImport "> Aligning taskbar buttons to the left..." "Align_Taskbar_Left.reg"
continue