mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-06-17 15:28:17 +00:00
Clean up styling to better match Windows fluent design guidelines
This commit is contained in:
@@ -94,8 +94,8 @@ function Show-ImportExportConfigWindow {
|
||||
$detailsText.Text = $CategoryDetails[$cat]
|
||||
$detailsText.FontSize = 12
|
||||
$detailsText.Foreground = $dlg.FindResource('FgColor')
|
||||
$detailsText.Margin = [System.Windows.Thickness]::new(30,0,0,0)
|
||||
$detailsText.Opacity = 0.75
|
||||
$detailsText.Margin = [System.Windows.Thickness]::new(32,0,0,0)
|
||||
$detailsText.Opacity = if ($DisabledCategories -contains $cat) { 0.45 } else { 0.75 }
|
||||
$detailsText.TextWrapping = [System.Windows.TextWrapping]::Wrap
|
||||
$container.Children.Add($detailsText) | Out-Null
|
||||
}
|
||||
@@ -286,11 +286,17 @@ function Build-CategoryDetails {
|
||||
$details = @{}
|
||||
|
||||
if ($AppCount -gt 0) {
|
||||
$details['Applications'] = "$AppCount app$(if ($AppCount -ne 1) { 's' })"
|
||||
$details['Applications'] = "$AppCount app$(if ($AppCount -ne 1) { 's' }) selected"
|
||||
}
|
||||
else {
|
||||
$details['Applications'] = 'No apps selected'
|
||||
}
|
||||
|
||||
if ($TweakCount -gt 0) {
|
||||
$details['System Tweaks'] = "$TweakCount tweak$(if ($TweakCount -ne 1) { 's' })"
|
||||
$details['System Tweaks'] = "$TweakCount tweak$(if ($TweakCount -ne 1) { 's' }) selected"
|
||||
}
|
||||
else {
|
||||
$details['System Tweaks'] = 'No tweaks selected'
|
||||
}
|
||||
|
||||
if ($DeploymentSettings) {
|
||||
|
||||
Reference in New Issue
Block a user