mirror of
https://github.com/Disassembler0/Win10-Initial-Setup-Script.git
synced 2026-04-23 03:00:50 -04:00
Reimplement "Enable window title bar color", closes #162 (thx @scruel)
This commit is contained in:
@@ -104,6 +104,7 @@ DisableNewAppPrompt # EnableNewAppPrompt
|
||||
DisableShortcutInName # EnableShortcutInName
|
||||
# HideShortcutArrow # ShowShortcutArrow
|
||||
SetVisualFXPerformance # SetVisualFXAppearance
|
||||
# EnableTitleBarColor # DisableTitleBarColor
|
||||
# EnableDarkTheme # DisableDarkTheme
|
||||
# AddENKeyboard # RemoveENKeyboard
|
||||
# EnableNumlock # DisableNumlock
|
||||
|
||||
12
Win10.psm1
12
Win10.psm1
@@ -1597,6 +1597,18 @@ Function SetVisualFXAppearance {
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 1
|
||||
}
|
||||
|
||||
# Enable window title bar color according to prevalent background color
|
||||
Function EnableTitleBarColor {
|
||||
Write-Output "Enabling window title bar color..."
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "ColorPrevalence" -Type DWord -Value 1
|
||||
}
|
||||
|
||||
# Disable window title bar color
|
||||
Function DisableTitleBarColor {
|
||||
Write-Output "Disabling window title bar color..."
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "ColorPrevalence" -Type DWord -Value 0
|
||||
}
|
||||
|
||||
# Enable Dark Theme
|
||||
Function EnableDarkTheme {
|
||||
Write-Output "Enabling Dark Theme..."
|
||||
|
||||
Reference in New Issue
Block a user