Added New Dark Themes for Low Spec PC and added GPU Detection

This commit is contained in:
Justawildwolf
2024-02-21 22:48:42 +08:00
parent 70ec481305
commit 906de7c773
3 changed files with 68 additions and 4 deletions

View File

@ -170,7 +170,12 @@ $tabcolums=Get-TabXaml "feature"
$inputXML = $inputXML -replace "{{InstallPanel_features}}", ($tabcolums)
if ((Get-WinUtilToggleStatus WPFToggleDarkMode) -eq $True) {
$ctttheme = 'Matrix'
if (Invoke-GPUCheck -eq $True) {
$ctttheme = 'Matrix'
}
else {
$ctttheme = 'Dark'
}
}
else {
$ctttheme = 'Classic'
@ -564,4 +569,4 @@ Version : $($sync.version)
})
$sync["Form"].ShowDialog() | out-null
Stop-Transcript
Stop-Transcript