Test 2023 7 20 (#917)

* Remove Edge from Start Menu and Desktop (#898)

* Update edgeremoval.bat

* Fix Edge not being deleted from Desktop

* Compile Winutil

* fix yubikey users service

* Compile Winutil

* AJRouter and Kiosk Disable

* Compile Winutil

* TermService enable

This service will hang when applying tweaks. Changing to Auto from Manual

* Compile Winutil

* Fix bug with Telemetry Tweak

services should NOT be tweaked here

* dupe tweak removal

* hibernate off and delete

* Compile Winutil

* Cleaning Windows Update Folder

* Compile Winutil

* GameDVR Fix

* Compile Winutil

* Fixed consistency in variable names and values inside edgeremoval.bat (#902)

* Compile Winutil

* add spdx license

* Compile Winutil

* Updated Dark mode check (#904)

* Compile Winutil

* Update Dark Mode Check

updated the theme check to use the existing function

* Description update

Updated Description

---------

Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com>

* Compile Winutil

* fixes #569

* Compile Winutil

* Added Bing Search toggle plus some support functions (#908)

* Compile Winutil

* Update winget.ps1

* Compile Winutil

* Fix Winget Install

* Compile Winutil

* Update Install-WinUtilWinget.ps1

* Compile Winutil

* Update Install-WinUtilWinget.ps1

* Compile Winutil

* Update Install-WinUtilWinget.ps1

* Compile Winutil

* Winget fixes

* Compile Winutil

---------

Co-authored-by: Antun Nitraj <antnitraj@gmail.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: DeveloperDurp <developerdurp@durp.info>
Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com>
This commit is contained in:
Chris Titus
2023-07-27 16:06:41 -05:00
committed by GitHub
parent a44612378b
commit a56aeefc7f
13 changed files with 470 additions and 245 deletions

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT
#Configure max thread count for RunspacePool.
$maxthreads = [int]$env:NUMBER_OF_PROCESSORS
@ -47,14 +49,14 @@ $sync.runspace.Open()
#endregion exception classes
$inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^<Win.*', '<Window'
$app = (Get-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize').AppsUseLightTheme
$system = (Get-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize').SystemUsesLightTheme
if($app -eq 0 -and $system -eq 0){
$ctttheme = 'Matrix'
}
else{
$ctttheme = 'Classic'
}
if ((Get-WinUtilToggleStatus WPFToggleDarkMode) -eq $True){
$ctttheme = 'Matrix'
}
Else{
$ctttheme = 'Classic'
}
$inputXML = Set-WinUtilUITheme -inputXML $inputXML -themeName $ctttheme
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
@ -92,11 +94,23 @@ $sync.keys | ForEach-Object {
}
}
$sync["WPFToggleDarkMode"].Add_Click({
Invoke-WPFDarkMode -DarkMoveEnabled $(Get-WinUtilDarkMode)
})
$sync["WPFToggleDarkMode"].IsChecked = Get-WinUtilDarkMode
$sync.keys | ForEach-Object {
if($sync.$psitem){
if(
$($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "CheckBox" `
-and $sync["$psitem"].Name -like "WPFToggle*"
){
$sync["$psitem"].IsChecked = Get-WinUtilToggleStatus $sync["$psitem"].Name
$sync["$psitem"].Add_Click({
[System.Object]$Sender = $args[0]
Invoke-WPFToggle $Sender.name
})
}
}
}
#===========================================================================
# Setup background config