Reimplement "Enable window title bar color", closes #162 (thx @scruel)

This commit is contained in:
Disassembler
2018-12-17 14:02:07 +01:00
parent aef24a75a8
commit abe812ace0
2 changed files with 13 additions and 0 deletions

View File

@@ -104,6 +104,7 @@ DisableNewAppPrompt # EnableNewAppPrompt
DisableShortcutInName # EnableShortcutInName
# HideShortcutArrow # ShowShortcutArrow
SetVisualFXPerformance # SetVisualFXAppearance
# EnableTitleBarColor # DisableTitleBarColor
# EnableDarkTheme # DisableDarkTheme
# AddENKeyboard # RemoveENKeyboard
# EnableNumlock # DisableNumlock

View File

@@ -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..."