From 77137ef894284282af7eddbd4cdce6d52385a6b7 Mon Sep 17 00:00:00 2001 From: laurentiu021 Date: Wed, 3 Jun 2026 17:41:33 +0300 Subject: [PATCH] feat: uniform UI margins and theme-aware warning brushes - 13 views migrated from Margin="32,24" to canonical "28,24,28,16" (BatteryHealth, BulkInstaller, ContextMenu, DiskAnalyzer, Drivers, DuplicateFile, Performance, Privacy, ProcessManager, Services, Startup, Uninstaller, WindowsFeatures) - 15 views: drop hardcoded LinearGradientBrush PageBg, use {DynamicResource Surface0} on root Grid (removes 5 lines per file, theme-aware) - 17 views: replace hardcoded amber hex (#1AFBBF24, #40FBBF24, #FBBF24, #FCD34D) with new App.xaml theme brushes WarningBgSubtle, WarningBg, WarningStripe, WarningText --- CHANGELOG.md | 7 +++++++ SysManager/SysManager/App.xaml | 6 ++++++ SysManager/SysManager/SysManager.csproj | 6 +++--- SysManager/SysManager/Views/AboutView.xaml | 9 +-------- SysManager/SysManager/Views/AppBlockerView.xaml | 6 +++--- SysManager/SysManager/Views/AppUpdatesView.xaml | 15 ++++----------- .../SysManager/Views/BatteryHealthView.xaml | 2 +- .../SysManager/Views/BulkInstallerView.xaml | 8 ++++---- SysManager/SysManager/Views/CleanupView.xaml | 17 +++++------------ .../SysManager/Views/ContextMenuView.xaml | 8 ++++---- SysManager/SysManager/Views/DashboardView.xaml | 2 +- .../SysManager/Views/DeepCleanupView.xaml | 9 +-------- .../SysManager/Views/DiskAnalyzerView.xaml | 2 +- SysManager/SysManager/Views/DnsHostsView.xaml | 15 ++++----------- SysManager/SysManager/Views/DriversView.xaml | 2 +- .../SysManager/Views/DuplicateFileView.xaml | 2 +- .../SysManager/Views/FileShredderView.xaml | 7 +------ SysManager/SysManager/Views/LogsView.xaml | 16 +++++----------- .../SysManager/Views/NetworkRepairView.xaml | 15 ++++----------- .../SysManager/Views/PerformanceView.xaml | 8 ++++---- SysManager/SysManager/Views/PingView.xaml | 13 +++---------- .../SysManager/Views/PlaceholderView.xaml | 9 +-------- SysManager/SysManager/Views/PrivacyView.xaml | 14 +++++++------- .../SysManager/Views/ProcessManagerView.xaml | 2 +- SysManager/SysManager/Views/ServicesView.xaml | 8 ++++---- .../SysManager/Views/ShortcutCleanerView.xaml | 10 +--------- SysManager/SysManager/Views/SpeedTestView.xaml | 9 +-------- SysManager/SysManager/Views/StartupView.xaml | 2 +- .../SysManager/Views/SystemHealthView.xaml | 15 ++++----------- SysManager/SysManager/Views/TracerouteView.xaml | 9 +-------- .../SysManager/Views/UninstallerView.xaml | 12 ++++++------ .../SysManager/Views/WindowsFeaturesView.xaml | 14 +++++++------- .../SysManager/Views/WindowsUpdateView.xaml | 17 +++++------------ 33 files changed, 103 insertions(+), 193 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0632a5..46b0a7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [1.19.0] - 2026-06-03 + +### Changed +- **Uniform outer margins across 13 views.** BatteryHealth, BulkInstaller, ContextMenu, DiskAnalyzer, Drivers, DuplicateFile, Performance, Privacy, ProcessManager, Services, Startup, Uninstaller, WindowsFeatures all migrated from `Margin="32,24"` to the canonical `Margin="28,24,28,16"` already used by Dashboard and AppAlerts. Layout is now consistent across the whole nav. +- **Page background — theme-aware.** 15 views were defining a hardcoded `LinearGradientBrush PageBg` (`#070A0F`/`#0B1220`/`#090D16`) and using `{StaticResource PageBg}` for their root `Grid.Background`. Replaced with `{DynamicResource Surface0}`. The gradient resource definitions are gone, the views are smaller, and a future light-theme switch will work without per-view edits. +- **Admin elevation banner colors — theme-aware.** Replaced 4 hardcoded amber hex values (`#1AFBBF24`, `#40FBBF24`, `#FBBF24`, `#FCD34D`) used by elevation banners and warning pills across 17 views with new theme brushes: `WarningBgSubtle`, `WarningBg`, `WarningStripe`, `WarningText`. Defined once in `App.xaml`, used everywhere. + ## [1.18.2] - 2026-06-03 ### Fixed diff --git a/SysManager/SysManager/App.xaml b/SysManager/SysManager/App.xaml index 4147bd9..45aec84 100644 --- a/SysManager/SysManager/App.xaml +++ b/SysManager/SysManager/App.xaml @@ -72,6 +72,12 @@ + + + + + + diff --git a/SysManager/SysManager/SysManager.csproj b/SysManager/SysManager/SysManager.csproj index 4d3b0fa..8c1b7a2 100644 --- a/SysManager/SysManager/SysManager.csproj +++ b/SysManager/SysManager/SysManager.csproj @@ -10,9 +10,9 @@ SysManager true NU1603;NU1701 - 1.18.2 - 1.18.2.0 - 1.18.2.0 + 1.19.0 + 1.19.0.0 + 1.19.0.0 SysManager SysManager — Windows system monitoring toolkit by laurentiu021. Network, updates, health, logs, safe deep cleanup. https://github.com/laurentiu021/SystemManager diff --git a/SysManager/SysManager/Views/AboutView.xaml b/SysManager/SysManager/Views/AboutView.xaml index 234d1bb..3ca7543 100644 --- a/SysManager/SysManager/Views/AboutView.xaml +++ b/SysManager/SysManager/Views/AboutView.xaml @@ -3,15 +3,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:helpers="clr-namespace:SysManager.Helpers"> - - - - - - - - + diff --git a/SysManager/SysManager/Views/AppBlockerView.xaml b/SysManager/SysManager/Views/AppBlockerView.xaml index af0b88d..ff28e8f 100644 --- a/SysManager/SysManager/Views/AppBlockerView.xaml +++ b/SysManager/SysManager/Views/AppBlockerView.xaml @@ -42,16 +42,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/AppUpdatesView.xaml b/SysManager/SysManager/Views/AppUpdatesView.xaml index 0486766..61d69a9 100644 --- a/SysManager/SysManager/Views/AppUpdatesView.xaml +++ b/SysManager/SysManager/Views/AppUpdatesView.xaml @@ -3,15 +3,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:v="clr-namespace:SysManager.Views"> - - - - - - - - + @@ -44,16 +37,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/BatteryHealthView.xaml b/SysManager/SysManager/Views/BatteryHealthView.xaml index 10d21f9..731ac96 100644 --- a/SysManager/SysManager/Views/BatteryHealthView.xaml +++ b/SysManager/SysManager/Views/BatteryHealthView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + diff --git a/SysManager/SysManager/Views/BulkInstallerView.xaml b/SysManager/SysManager/Views/BulkInstallerView.xaml index ca7adef..aebe10f 100644 --- a/SysManager/SysManager/Views/BulkInstallerView.xaml +++ b/SysManager/SysManager/Views/BulkInstallerView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + @@ -43,16 +43,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/CleanupView.xaml b/SysManager/SysManager/Views/CleanupView.xaml index 47649c6..27068d0 100644 --- a/SysManager/SysManager/Views/CleanupView.xaml +++ b/SysManager/SysManager/Views/CleanupView.xaml @@ -3,15 +3,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:v="clr-namespace:SysManager.Views"> - - - - - - - - + @@ -43,16 +36,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> @@ -76,7 +69,7 @@ + Foreground="{DynamicResource WarningStripe}" Margin="0,4,0,0"/> diff --git a/SysManager/SysManager/Views/ContextMenuView.xaml b/SysManager/SysManager/Views/ContextMenuView.xaml index 1d15d11..ebbe9ef 100644 --- a/SysManager/SysManager/Views/ContextMenuView.xaml +++ b/SysManager/SysManager/Views/ContextMenuView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + @@ -43,16 +43,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/DashboardView.xaml b/SysManager/SysManager/Views/DashboardView.xaml index 353ad8a..c9d49b8 100644 --- a/SysManager/SysManager/Views/DashboardView.xaml +++ b/SysManager/SysManager/Views/DashboardView.xaml @@ -215,7 +215,7 @@ - diff --git a/SysManager/SysManager/Views/DeepCleanupView.xaml b/SysManager/SysManager/Views/DeepCleanupView.xaml index 6f27e82..75ffa88 100644 --- a/SysManager/SysManager/Views/DeepCleanupView.xaml +++ b/SysManager/SysManager/Views/DeepCleanupView.xaml @@ -2,15 +2,8 @@ - - - - - - - - + diff --git a/SysManager/SysManager/Views/DiskAnalyzerView.xaml b/SysManager/SysManager/Views/DiskAnalyzerView.xaml index a2b4330..6e57874 100644 --- a/SysManager/SysManager/Views/DiskAnalyzerView.xaml +++ b/SysManager/SysManager/Views/DiskAnalyzerView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + diff --git a/SysManager/SysManager/Views/DnsHostsView.xaml b/SysManager/SysManager/Views/DnsHostsView.xaml index bc69ad2..2cac617 100644 --- a/SysManager/SysManager/Views/DnsHostsView.xaml +++ b/SysManager/SysManager/Views/DnsHostsView.xaml @@ -2,14 +2,7 @@ - - - - - - - - + @@ -41,16 +34,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/DriversView.xaml b/SysManager/SysManager/Views/DriversView.xaml index 49ff306..5088f09 100644 --- a/SysManager/SysManager/Views/DriversView.xaml +++ b/SysManager/SysManager/Views/DriversView.xaml @@ -10,7 +10,7 @@ Background="{DynamicResource Surface0}"> - + diff --git a/SysManager/SysManager/Views/DuplicateFileView.xaml b/SysManager/SysManager/Views/DuplicateFileView.xaml index 82ad8a7..d7f6d05 100644 --- a/SysManager/SysManager/Views/DuplicateFileView.xaml +++ b/SysManager/SysManager/Views/DuplicateFileView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + diff --git a/SysManager/SysManager/Views/FileShredderView.xaml b/SysManager/SysManager/Views/FileShredderView.xaml index 02ba968..9e0dfa9 100644 --- a/SysManager/SysManager/Views/FileShredderView.xaml +++ b/SysManager/SysManager/Views/FileShredderView.xaml @@ -10,11 +10,6 @@ mc:Ignorable="d"> - - - - - @@ -22,7 +17,7 @@ - + diff --git a/SysManager/SysManager/Views/LogsView.xaml b/SysManager/SysManager/Views/LogsView.xaml index aa3303d..2e45703 100644 --- a/SysManager/SysManager/Views/LogsView.xaml +++ b/SysManager/SysManager/Views/LogsView.xaml @@ -3,12 +3,6 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> - - - - - - - + @@ -87,12 +81,12 @@ - - + - + - + diff --git a/SysManager/SysManager/Views/NetworkRepairView.xaml b/SysManager/SysManager/Views/NetworkRepairView.xaml index dab5710..772ca70 100644 --- a/SysManager/SysManager/Views/NetworkRepairView.xaml +++ b/SysManager/SysManager/Views/NetworkRepairView.xaml @@ -2,14 +2,7 @@ - - - - - - - - + @@ -38,16 +31,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/PerformanceView.xaml b/SysManager/SysManager/Views/PerformanceView.xaml index 2edf012..fef2ef1 100644 --- a/SysManager/SysManager/Views/PerformanceView.xaml +++ b/SysManager/SysManager/Views/PerformanceView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + @@ -43,16 +43,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/PingView.xaml b/SysManager/SysManager/Views/PingView.xaml index d122d93..a6f6b35 100644 --- a/SysManager/SysManager/Views/PingView.xaml +++ b/SysManager/SysManager/Views/PingView.xaml @@ -4,15 +4,8 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF" xmlns:v="clr-namespace:SysManager.Views"> - - - - - - - - + @@ -74,7 +67,7 @@ + Style="{StaticResource Metric}" Foreground="{DynamicResource WarningStripe}"/> @@ -146,7 +139,7 @@ + Foreground="{DynamicResource WarningStripe}" FontWeight="Bold" FontSize="13" HorizontalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/PlaceholderView.xaml b/SysManager/SysManager/Views/PlaceholderView.xaml index b3524b2..8d18059 100644 --- a/SysManager/SysManager/Views/PlaceholderView.xaml +++ b/SysManager/SysManager/Views/PlaceholderView.xaml @@ -2,15 +2,8 @@ - - - - - - - - + - + @@ -42,16 +42,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> @@ -78,14 +78,14 @@ Width="140" Margin="0,0,12,0"/> - - diff --git a/SysManager/SysManager/Views/ProcessManagerView.xaml b/SysManager/SysManager/Views/ProcessManagerView.xaml index a6e2a6d..9756c10 100644 --- a/SysManager/SysManager/Views/ProcessManagerView.xaml +++ b/SysManager/SysManager/Views/ProcessManagerView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + diff --git a/SysManager/SysManager/Views/ServicesView.xaml b/SysManager/SysManager/Views/ServicesView.xaml index 09e4863..95d2f7a 100644 --- a/SysManager/SysManager/Views/ServicesView.xaml +++ b/SysManager/SysManager/Views/ServicesView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + @@ -42,16 +42,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/ShortcutCleanerView.xaml b/SysManager/SysManager/Views/ShortcutCleanerView.xaml index 9ba9ff1..2df9a66 100644 --- a/SysManager/SysManager/Views/ShortcutCleanerView.xaml +++ b/SysManager/SysManager/Views/ShortcutCleanerView.xaml @@ -8,15 +8,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> - - - - - - - - - + diff --git a/SysManager/SysManager/Views/SpeedTestView.xaml b/SysManager/SysManager/Views/SpeedTestView.xaml index 4b3f3f3..25895e0 100644 --- a/SysManager/SysManager/Views/SpeedTestView.xaml +++ b/SysManager/SysManager/Views/SpeedTestView.xaml @@ -2,15 +2,8 @@ - - - - - - - - + diff --git a/SysManager/SysManager/Views/StartupView.xaml b/SysManager/SysManager/Views/StartupView.xaml index ec88763..2e5d50c 100644 --- a/SysManager/SysManager/Views/StartupView.xaml +++ b/SysManager/SysManager/Views/StartupView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + diff --git a/SysManager/SysManager/Views/SystemHealthView.xaml b/SysManager/SysManager/Views/SystemHealthView.xaml index 64719d5..eaf2896 100644 --- a/SysManager/SysManager/Views/SystemHealthView.xaml +++ b/SysManager/SysManager/Views/SystemHealthView.xaml @@ -3,15 +3,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:v="clr-namespace:SysManager.Views"> - - - - - - - - + @@ -43,16 +36,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/TracerouteView.xaml b/SysManager/SysManager/Views/TracerouteView.xaml index 8e9a78d..c615ce3 100644 --- a/SysManager/SysManager/Views/TracerouteView.xaml +++ b/SysManager/SysManager/Views/TracerouteView.xaml @@ -4,15 +4,8 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF" xmlns:v="clr-namespace:SysManager.Views"> - - - - - - - - + diff --git a/SysManager/SysManager/Views/UninstallerView.xaml b/SysManager/SysManager/Views/UninstallerView.xaml index a6d5239..b78a0e1 100644 --- a/SysManager/SysManager/Views/UninstallerView.xaml +++ b/SysManager/SysManager/Views/UninstallerView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + @@ -43,16 +43,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> @@ -184,7 +184,7 @@ - + @@ -197,7 +197,7 @@ - + diff --git a/SysManager/SysManager/Views/WindowsFeaturesView.xaml b/SysManager/SysManager/Views/WindowsFeaturesView.xaml index 6fe21f3..5157732 100644 --- a/SysManager/SysManager/Views/WindowsFeaturesView.xaml +++ b/SysManager/SysManager/Views/WindowsFeaturesView.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="{DynamicResource Surface0}"> - + @@ -48,14 +48,14 @@ - - @@ -80,16 +80,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> diff --git a/SysManager/SysManager/Views/WindowsUpdateView.xaml b/SysManager/SysManager/Views/WindowsUpdateView.xaml index 2395169..d48e4c4 100644 --- a/SysManager/SysManager/Views/WindowsUpdateView.xaml +++ b/SysManager/SysManager/Views/WindowsUpdateView.xaml @@ -8,15 +8,8 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> - - - - - - - - + @@ -52,16 +45,16 @@ - - + Foreground="{DynamicResource WarningText}" FontSize="13" FontWeight="SemiBold" Margin="8,0,0,0" VerticalAlignment="Center"/> @@ -258,7 +251,7 @@ - +