Add settings UI for theme and language (#780)

This commit is contained in:
Jeffrey
2026-10-04 22:43:56 +02:00
committed by GitHub
parent 680f21ccfa
commit 0bc0c9a49e
27 changed files with 1216 additions and 144 deletions
+15
View File
@@ -64,6 +64,21 @@ Describe 'Get-UndoFeatureLabel' {
Mock Get-ItemProperty { throw 'Registry unavailable' }
Get-SystemUsesDarkMode | Should -BeFalse
}
It 'quietly falls back to light mode on repeated missing personalization lookups' {
$ErrorActionPreference = 'Continue'
Mock Get-ItemProperty {
param($ErrorAction)
$lookupErrorAction = if ($ErrorAction) { $ErrorAction } else { 'Continue' }
Write-Error -Message 'Personalization key was not found.' -Category ObjectNotFound -ErrorAction $lookupErrorAction
}
foreach ($poll in 1..3) {
$output = @(Get-SystemUsesDarkMode *>&1)
$output.Count | Should -Be 1
$output[0] | Should -BeFalse
}
}
}
Describe 'Test-OtherUsername' {