Skip to content

Free, open-source Windows optimization tool for performance, privacy, and simplicity.

feat(core, ui, config, cleanup)!: add legal agreement flow and improve config handling

fatDuck1a78c8b55d80
diff --git a/AGENTS.md b/AGENTS.md
index b4710e5..e76f516 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -11,6 +11,7 @@
- `publish.bat`: interactive/preset publish entry point (`Portable` or `Single`).
## Build, Test, and Development Commands
+- **.NET Version**: 10.0.x (see `.github/workflows/ci.yml`)
- `dotnet restore optimizerDuck.slnx`: restore dependencies.
- `dotnet build optimizerDuck.slnx --configuration Release --no-restore`: CI-aligned build.
- `dotnet test optimizerDuck.Test/optimizerDuck.Test.csproj --configuration Release --no-build`: run unit tests.
diff --git a/README.md b/README.md
index 763b4dd..a97e32b 100644
--- a/README.md
+++ b/README.md
@@ -93,12 +93,12 @@ Built-in optimizations across 6 categories, each with clear explanations and ris
Not only can you apply system optimizations, but you can also easily enable or disable various Windows features. No need to dig through the registry or search endlessly on Google. Everything is available in a clean, intuitive, and user-friendly interface.
-- **Desktop**. Show/hide icons (This PC, Recycle Bin, Network, User Files, Control Panel), remove shortcut arrows.
-- **Taskbar**. Center alignment, widgets, Task View button, End Task button, show seconds in clock, disable Bing search.
-- **Appearance**. Dark mode for apps and system.
-- **Explorer**. File extensions, hidden files, clipboard history, compact mode, snap assist, item checkboxes, classic context menu.
-- **Gaming**. Game Mode, Game Bar, background recording, mouse acceleration, fullscreen optimizations, hardware-accelerated GPU scheduling.
-- **System**. Auto-enable Num Lock on boot.
+- **Desktop**: Show/hide icons (This PC, Recycle Bin, Network, User Files, Control Panel), remove shortcut arrows.
+- **Taskbar**: Center alignment, widgets, Task View button, End Task button, show seconds in clock, disable Bing search.
+- **Appearance**: Dark mode for apps and system.
+- **Explorer**: File extensions, hidden files, clipboard history, compact mode, snap assist, item checkboxes, classic context menu.
+- **Gaming**: Game Mode, Game Bar, background recording, mouse acceleration, fullscreen optimizations, hardware-accelerated GPU scheduling.
+- **System**: Auto-enable Num Lock on boot.
---
@@ -137,8 +137,8 @@ Step-by-step instructions, explanations of each optimization, and best practices
## Community
> [!TIP]
-> Join our growing community on Discord! Get support, share your experience, and connect with other users and contributors. We also have a GitHub Discussions page for more in-depth conversations and feature requests.
-> <a href="https://discord.gg/tDUBDCYw9Q" target="_blank"><img src="https://discord.com/api/guilds/1091675679994675240/widget.png?style=banner2" alt="Discord Banner 2"/></a>
+> Join our growing community on Discord! Get support, share your experience, and connect with other users and contributors.
+> <a href="https://discord.gg/tDUBDCYw9Q"><img src="https://discord.com/api/guilds/1091675679994675240/widget.png?style=banner2" alt="Discord Banner 2"/></a>
If optimizerDuck helped your PC:
diff --git a/optimizerDuck/App.xaml.cs b/optimizerDuck/App.xaml.cs
index 18e57b7..18437d0 100644
--- a/optimizerDuck/App.xaml.cs
+++ b/optimizerDuck/App.xaml.cs
@@ -1,8 +1,4 @@
-using System.Globalization;
-using System.IO;
-using System.Windows;
-using System.Windows.Media;
-using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
@@ -13,13 +9,17 @@ using optimizerDuck.Domain.Configuration;
using optimizerDuck.Services;
using optimizerDuck.Services.Managers;
using optimizerDuck.Services.OptimizationServices;
-using optimizerDuck.UI.ViewModels.Pages;
using optimizerDuck.UI.Pages;
+using optimizerDuck.UI.ViewModels.Pages;
using optimizerDuck.UI.Windows;
using Serilog;
using Serilog.Events;
using Serilog.Formatting;
using Serilog.Parsing;
+using System.Globalization;
+using System.IO;
+using System.Windows;
+using System.Windows.Media;
using Wpf.Ui;
using Wpf.Ui.Appearance;
using Wpf.Ui.DependencyInjection;
@@ -199,8 +199,10 @@ public partial class App : Application
var config = _host.Services.GetRequiredService<ConfigManager>();
await config.InitializeAsync();
+ await config.EnsureDefaultsAsync();
var appOptionsMonitor = _host.Services.GetRequiredService<IOptionsMonitor<AppSettings>>();
+
// init shell service with config
ShellService.Init(appOptionsMonitor);
@@ -227,8 +229,8 @@ public partial class App : Application
ApplicationThemeManager.Apply(
appSettings.App.Theme switch
{
- "Dark" => ApplicationTheme.Dark,
- "HighContrast" => ApplicationTheme.HighContrast,
+ ApplicationTheme.Dark => ApplicationTheme.Dark,
+ ApplicationTheme.HighContrast => ApplicationTheme.HighContrast,
_ => ApplicationTheme.Light
},
updateAccent: false
diff --git a/optimizerDuck/Domain/Configuration/AppSettings.cs b/optimizerDuck/Domain/Configuration/AppSettings.cs
index 7ec1eb4..5870094 100644
--- a/optimizerDuck/Domain/Configuration/AppSettings.cs
+++ b/optimizerDuck/Domain/Configuration/AppSettings.cs
@@ -1,4 +1,6 @@
-namespace optimizerDuck.Domain.Configuration;
+using Wpf.Ui.Appearance;
+
+namespace optimizerDuck.Domain.Configuration;
/// <summary>
/// Application settings that can be persisted to disk.
@@ -33,7 +35,12 @@ public sealed class AppSettings
/// <summary>
/// The UI theme (e.g., "Dark").
/// </summary>
- public string Theme { get; set; } = "Dark";
+ public ApplicationTheme Theme { get; set; } = ApplicationTheme.Dark;
+
+ /// <summary>
+ /// Whether the user has accepted the legal terms.
+ /// </summary>
+ public bool LegalAccepted { get; set; } = false;
}
/// <summary>
diff --git a/optimizerDuck/Resources/Languages/Translations.Designer.cs b/optimizerDuck/Resources/Languages/Translations.Designer.cs
index 6b90ec8..ab630f9 100644
--- a/optimizerDuck/Resources/Languages/Translations.Designer.cs
+++ b/optimizerDuck/Resources/Languages/Translations.Designer.cs
@@ -114,6 +114,15 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Deselect all Safe.
+ /// </summary>
+ internal static string Bloatware_Menu_DeselectAllSafe {
+ get {
+ return ResourceManager.GetString("Bloatware.Menu.DeselectAllSafe", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Refresh.
/// </summary>
@@ -133,7 +142,7 @@ namespace optimizerDuck.Resources.Languages {
}
/// <summary>
- /// Looks up a localized string similar to Select All Safe.
+ /// Looks up a localized string similar to Select all Safe.
/// </summary>
internal static string Bloatware_Menu_SelectAllSafe {
get {
@@ -141,15 +150,6 @@ namespace optimizerDuck.Resources.Languages {
}
}
- /// <summary>
- /// Looks up a localized string similar to Unselect All Safe.
- /// </summary>
- internal static string Bloatware_Menu_UnselectAllSafe {
- get {
- return ResourceManager.GetString("Bloatware.Menu.UnselectAllSafe", resourceCulture);
- }
- }
-
/// <summary>
/// Looks up a localized string similar to No results found. Try a different search term or filter..
/// </summary>
@@ -213,6 +213,15 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Accept.
+ /// </summary>
+ internal static string Button_Accept {
+ get {
+ return ResourceManager.GetString("Button.Accept", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Cancel.
/// </summary>
@@ -916,6 +925,24 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Old Windows Installation (Windows.old).
+ /// </summary>
+ internal static string DiskCleanup_Item_OldWindowsInstallation {
+ get {
+ return ResourceManager.GetString("DiskCleanup.Item.OldWindowsInstallation", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Previous Windows installation files kept after a major update or upgrade.
+ /// </summary>
+ internal static string DiskCleanup_Item_OldWindowsInstallation_Description {
+ get {
+ return ResourceManager.GetString("DiskCleanup.Item.OldWindowsInstallation.Description", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Prefetch Files.
/// </summary>
@@ -1951,6 +1978,87 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Please take a moment to review the following documents. By continuing, you agree to these terms..
+ /// </summary>
+ internal static string LegalDialog_Intro_Review {
+ get {
+ return ResourceManager.GetString("LegalDialog.Intro.Review", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to To ensure transparency and your safety, optimizerDuck may adjust certain system settings and registry configurations..
+ /// </summary>
+ internal static string LegalDialog_Intro_Safety {
+ get {
+ return ResourceManager.GetString("LegalDialog.Intro.Safety", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Thank you for choosing optimizerDuck..
+ /// </summary>
+ internal static string LegalDialog_Intro_ThankYou {
+ get {
+ return ResourceManager.GetString("LegalDialog.Intro.ThankYou", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Disclaimer.
+ /// </summary>
+ internal static string LegalDialog_Link_Disclaimer {
+ get {
+ return ResourceManager.GetString("LegalDialog.Link.Disclaimer", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Privacy Policy.
+ /// </summary>
+ internal static string LegalDialog_Link_PrivacyPolicy {
+ get {
+ return ResourceManager.GetString("LegalDialog.Link.PrivacyPolicy", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Terms of Service.
+ /// </summary>
+ internal static string LegalDialog_Link_TermsOfService {
+ get {
+ return ResourceManager.GetString("LegalDialog.Link.TermsOfService", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Legal Agreement.
+ /// </summary>
+ internal static string LegalDialog_Title {
+ get {
+ return ResourceManager.GetString("LegalDialog.Title", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to We recommend creating a backup before applying any changes..
+ /// </summary>
+ internal static string LegalDialog_Warning_Message {
+ get {
+ return ResourceManager.GetString("LegalDialog.Warning.Message", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Use at your own risk.
+ /// </summary>
+ internal static string LegalDialog_Warning_Title {
+ get {
+ return ResourceManager.GetString("LegalDialog.Warning.Title", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Completed.
/// </summary>
@@ -2528,6 +2636,24 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Disable Accessibility Keyboard Hotkeys.
+ /// </summary>
+ internal static string Optimizer_Performance_DisableAccessibilityKeyboardHotkeys_Name {
+ get {
+ return ResourceManager.GetString("Optimizer.Performance.DisableAccessibilityKeyboardHotkeys.Name", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Disables Sticky Keys, Filter Keys, and Toggle Keys keyboard shortcuts to prevent accidental pop-ups during gaming and typing..
+ /// </summary>
+ internal static string Optimizer_Performance_DisableAccessibilityKeyboardHotkeys_ShortDescription {
+ get {
+ return ResourceManager.GetString("Optimizer.Performance.DisableAccessibilityKeyboardHotkeys.ShortDescription", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Disable Background Apps.
/// </summary>
@@ -2565,7 +2691,7 @@ namespace optimizerDuck.Resources.Languages {
}
/// <summary>
- /// Looks up a localized string similar to Optimize Keyboard Response.
+ /// Looks up a localized string similar to Optimize Keyboard Repeat.
/// </summary>
internal static string Optimizer_Performance_KeyboardLatencyOptimization_Name {
get {
@@ -2574,7 +2700,7 @@ namespace optimizerDuck.Resources.Languages {
}
/// <summary>
- /// Looks up a localized string similar to Reduces keyboard input delay and increases repeat rate for faster, more responsive typing and gaming..
+ /// Looks up a localized string similar to Sets the fastest keyboard repeat delay and repeat rate for more responsive typing and repeated key presses..
/// </summary>
internal static string Optimizer_Performance_KeyboardLatencyOptimization_ShortDescription {
get {
@@ -2655,7 +2781,25 @@ namespace optimizerDuck.Resources.Languages {
}
/// <summary>
- /// Looks up a localized string similar to Disable Hibernation &amp; Fast Startup.
+ /// Looks up a localized string similar to Disable Fast Startup.
+ /// </summary>
+ internal static string Optimizer_PowerManagement_DisableFastStartup_Name {
+ get {
+ return ResourceManager.GetString("Optimizer.PowerManagement.DisableFastStartup.Name", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Turns off Fast Startup to ensure a full shutdown and cleaner hardware initialization on boot..
+ /// </summary>
+ internal static string Optimizer_PowerManagement_DisableFastStartup_ShortDescription {
+ get {
+ return ResourceManager.GetString("Optimizer.PowerManagement.DisableFastStartup.ShortDescription", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Disable Hibernation.
/// </summary>
internal static string Optimizer_PowerManagement_DisableHibernate_Name {
get {
@@ -2664,7 +2808,7 @@ namespace optimizerDuck.Resources.Languages {
}
/// <summary>
- /// Looks up a localized string similar to Turns off Hibernation and Fast Startup to reclaim several gigabytes of disk space and ensure a fresh system boot..
+ /// Looks up a localized string similar to Turns off hibernation to reclaim disk space used by the hiberfil.sys file..
/// </summary>
internal static string Optimizer_PowerManagement_DisableHibernate_ShortDescription {
get {
@@ -4530,6 +4674,24 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to {0} items.
+ /// </summary>
+ internal static string StartupManager_Apps_CountSuffix {
+ get {
+ return ResourceManager.GetString("StartupManager.Apps.CountSuffix", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Applications that run automatically when Windows starts..
+ /// </summary>
+ internal static string StartupManager_Apps_Description {
+ get {
+ return ResourceManager.GetString("StartupManager.Apps.Description", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Startup Apps.
/// </summary>
@@ -4611,6 +4773,24 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to {0} tasks.
+ /// </summary>
+ internal static string StartupManager_Tasks_CountSuffix {
+ get {
+ return ResourceManager.GetString("StartupManager.Tasks.CountSuffix", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Windows tasks configured to run at logon or on a schedule..
+ /// </summary>
+ internal static string StartupManager_Tasks_Description {
+ get {
+ return ResourceManager.GetString("StartupManager.Tasks.Description", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Hide Microsoft tasks.
/// </summary>
diff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resx
index 69efcfd..ace3e10 100644
--- a/optimizerDuck/Resources/Languages/Translations.resx
+++ b/optimizerDuck/Resources/Languages/Translations.resx
@@ -1167,10 +1167,10 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<value>View Source</value>
</data>
<data name="Bloatware.Menu.SelectAllSafe" xml:space="preserve">
- <value>Select All Safe</value>
+ <value>Select all Safe</value>
</data>
- <data name="Bloatware.Menu.UnselectAllSafe" xml:space="preserve">
- <value>Unselect All Safe</value>
+ <data name="Bloatware.Menu.DeselectAllSafe" xml:space="preserve">
+ <value>Deselect all Safe</value>
</data>
<data name="Optimizer.Menu.HideApplied" xml:space="preserve">
<value>Hide Applied</value>
@@ -1271,6 +1271,12 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<data name="DiskCleanup.Item.ErrorReports.Description" xml:space="preserve">
<value>Windows error reports and crash dump files</value>
</data>
+ <data name="DiskCleanup.Item.OldWindowsInstallation" xml:space="preserve">
+ <value>Old Windows Installation (Windows.old)</value>
+ </data>
+ <data name="DiskCleanup.Item.OldWindowsInstallation.Description" xml:space="preserve">
+ <value>Previous Windows installation files kept after a major update or upgrade</value>
+ </data>
<data name="Dashboard.SystemInfo.Os.DeviceType.Laptop" xml:space="preserve">
<value>Laptop</value>
</data>
@@ -1343,9 +1349,21 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<data name="StartupManager.Apps.Title" xml:space="preserve">
<value>Startup Apps</value>
</data>
+ <data name="StartupManager.Apps.Description" xml:space="preserve">
+ <value>Applications that run automatically when Windows starts.</value>
+ </data>
+ <data name="StartupManager.Apps.CountSuffix" xml:space="preserve">
+ <value>{0} items</value>
+ </data>
<data name="StartupManager.Tasks.Title" xml:space="preserve">
<value>Scheduled Tasks (Logon)</value>
</data>
+ <data name="StartupManager.Tasks.Description" xml:space="preserve">
+ <value>Windows tasks configured to run at logon or on a schedule.</value>
+ </data>
+ <data name="StartupManager.Tasks.CountSuffix" xml:space="preserve">
+ <value>{0} tasks</value>
+ </data>
<data name="StartupManager.Loading" xml:space="preserve">
<value>Scanning startup items...</value>
</data>
@@ -1666,4 +1684,34 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<data name="Features.Preferences.DisableBingSearch.Description" xml:space="preserve">
<value>Remove Bing web results and suggestions from Windows Search</value>
</data>
-</root>
+ <data name="Button.Accept" xml:space="preserve">
+ <value>Accept</value>
+ </data>
+ <data name="LegalDialog.Title" xml:space="preserve">
+ <value>Legal Agreement</value>
+ </data>
+ <data name="LegalDialog.Intro.ThankYou" xml:space="preserve">
+ <value>Thank you for choosing optimizerDuck.</value>
+ </data>
+ <data name="LegalDialog.Intro.Safety" xml:space="preserve">
+ <value>To ensure transparency and your safety, optimizerDuck may adjust certain system settings and registry configurations.</value>
+ </data>
+ <data name="LegalDialog.Intro.Review" xml:space="preserve">
+ <value>Please take a moment to review the following documents. By continuing, you agree to these terms.</value>
+ </data>
+ <data name="LegalDialog.Link.TermsOfService" xml:space="preserve">
+ <value>Terms of Service</value>
+ </data>
+ <data name="LegalDialog.Link.PrivacyPolicy" xml:space="preserve">
+ <value>Privacy Policy</value>
+ </data>
+ <data name="LegalDialog.Link.Disclaimer" xml:space="preserve">
+ <value>Disclaimer</value>
+ </data>
+ <data name="LegalDialog.Warning.Title" xml:space="preserve">
+ <value>Use at your own risk</value>
+ </data>
+ <data name="LegalDialog.Warning.Message" xml:space="preserve">
+ <value>We recommend creating a backup before applying any changes.</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
index 6eb1894..9b2fc04 100644
--- a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
+++ b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
@@ -1133,7 +1133,7 @@ Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và
<data name="Bloatware.Menu.SelectAllSafe" xml:space="preserve">
<value>Chọn tất cả an toàn</value>
</data>
- <data name="Bloatware.Menu.UnselectAllSafe" xml:space="preserve">
+ <data name="Bloatware.Menu.DeselectAllSafe" xml:space="preserve">
<value>Bỏ chọn tất cả an toàn</value>
</data>
<data name="Optimizer.Menu.HideApplied" xml:space="preserve">
@@ -1235,6 +1235,12 @@ Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và
<data name="DiskCleanup.Item.ErrorReports.Description" xml:space="preserve">
<value>Báo cáo lỗi Windows và tệp crash dump</value>
</data>
+ <data name="DiskCleanup.Item.OldWindowsInstallation" xml:space="preserve">
+ <value>Bộ cài Windows cũ (Windows.old)</value>
+ </data>
+ <data name="DiskCleanup.Item.OldWindowsInstallation.Description" xml:space="preserve">
+ <value>Tệp cài đặt Windows cũ được giữ lại sau khi cập nhật hoặc nâng cấp lớn</value>
+ </data>
<data name="Dashboard.SystemInfo.Os.DeviceType.Laptop" xml:space="preserve">
<value>Máy tính xách tay</value>
</data>
@@ -1310,9 +1316,21 @@ Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và
<data name="StartupManager.Apps.Title" xml:space="preserve">
<value>Ứng dụng Khởi động</value>
</data>
+ <data name="StartupManager.Apps.Description" xml:space="preserve">
+ <value>Các ứng dụng tự động chạy khi Windows khởi động.</value>
+ </data>
+ <data name="StartupManager.Apps.CountSuffix" xml:space="preserve">
+ <value>{0} mục</value>
+ </data>
<data name="StartupManager.Tasks.Title" xml:space="preserve">
<value>Tác vụ Lên lịch (Logon)</value>
</data>
+ <data name="StartupManager.Tasks.Description" xml:space="preserve">
+ <value>Các tác vụ Windows được cấu hình để chạy khi đăng nhập hoặc theo lịch.</value>
+ </data>
+ <data name="StartupManager.Tasks.CountSuffix" xml:space="preserve">
+ <value>{0} tác vụ</value>
+ </data>
<data name="StartupManager.Tasks.HideMicrosoft" xml:space="preserve">
<value>Ẩn tác vụ Microsoft</value>
</data>
@@ -1658,4 +1676,34 @@ Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và
<data name="Features.Preferences.DisableBingSearch.Description" xml:space="preserve">
<value>Xóa kết quả tìm kiếm web và đề xuất của Bing khỏi Windows Search</value>
</data>
-</root>
+ <data name="Button.Accept" xml:space="preserve">
+ <value>Chấp nhận</value>
+ </data>
+ <data name="LegalDialog.Title" xml:space="preserve">
+ <value>Thỏa thuận pháp lý</value>
+ </data>
+ <data name="LegalDialog.Intro.ThankYou" xml:space="preserve">
+ <value>Cảm ơn bạn đã chọn optimizerDuck.</value>
+ </data>
+ <data name="LegalDialog.Intro.Safety" xml:space="preserve">
+ <value>Để đảm bảo tính minh bạch và an toàn cho bạn, optimizerDuck có thể điều chỉnh một số cài đặt hệ thống và cấu hình registry.</value>
+ </data>
+ <data name="LegalDialog.Intro.Review" xml:space="preserve">
+ <value>Vui lòng dành chút thời gian xem xét các tài liệu sau. Bằng việc tiếp tục, bạn đồng ý với các điều khoản này.</value>
+ </data>
+ <data name="LegalDialog.Link.TermsOfService" xml:space="preserve">
+ <value>Điều khoản dịch vụ</value>
+ </data>
+ <data name="LegalDialog.Link.PrivacyPolicy" xml:space="preserve">
+ <value>Chính sách bảo mật</value>
+ </data>
+ <data name="LegalDialog.Link.Disclaimer" xml:space="preserve">
+ <value>Tuyên bố miễn trách</value>
+ </data>
+ <data name="LegalDialog.Warning.Title" xml:space="preserve">
+ <value>Sử dụng có rủi ro</value>
+ </data>
+ <data name="LegalDialog.Warning.Message" xml:space="preserve">
+ <value>Khuyến nghị tạo bản sao lưu trước khi áp dụng bất kỳ thay đổi nào.</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/optimizerDuck/Resources/Languages/Translations.zh-TW.resx b/optimizerDuck/Resources/Languages/Translations.zh-TW.resx
index 929880c..4feef5d 100644
--- a/optimizerDuck/Resources/Languages/Translations.zh-TW.resx
+++ b/optimizerDuck/Resources/Languages/Translations.zh-TW.resx
@@ -886,7 +886,7 @@
<data name="Bloatware.Menu.SelectAllSafe" xml:space="preserve">
<value>選取所有安全項目</value>
</data>
- <data name="Bloatware.Menu.UnselectAllSafe" xml:space="preserve">
+ <data name="Bloatware.Menu.DeselectAllSafe" xml:space="preserve">
<value>取消選取所有安全項目</value>
</data>
<data name="Optimizer.Menu.HideApplied" xml:space="preserve">
diff --git a/optimizerDuck/Services/Configuration/ConfigManager.cs b/optimizerDuck/Services/Configuration/ConfigManager.cs
index b0391e4..951438a 100644
--- a/optimizerDuck/Services/Configuration/ConfigManager.cs
+++ b/optimizerDuck/Services/Configuration/ConfigManager.cs
@@ -1,9 +1,11 @@
-using System.IO;
-using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using optimizerDuck.Common.Helpers;
+using optimizerDuck.Domain.Configuration;
+using System.IO;
+using System.Linq.Expressions;
namespace optimizerDuck.Services.Managers;
@@ -35,6 +37,152 @@ public class ConfigManager(IConfiguration configuration, ILogger<ConfigManager>
_cache = await LoadConfigAsync();
}
+ /// <summary>
+ /// Ensures all default configuration keys exist. Adds missing keys with default values and logs them.
+ /// </summary>
+ public async Task EnsureDefaultsAsync()
+ {
+ await _lock.WaitAsync();
+ try
+ {
+ var defaults = new AppSettings();
+ var addedKeys = new List<string>();
+
+ var properties = typeof(AppSettings).GetProperties();
+ foreach (var prop in properties)
+ {
+ if (prop.PropertyType.IsClass && !prop.PropertyType.IsPrimitive && prop.PropertyType != typeof(string))
+ {
+ var nestedObj = prop.GetValue(defaults);
+ if (nestedObj != null)
+ {
+ var nestedProps = prop.PropertyType.GetProperties();
+ foreach (var nestedProp in nestedProps)
+ {
+ var key = $"{prop.Name}:{nestedProp.Name}";
+ var value = nestedProp.GetValue(nestedObj);
+ if (value == null) continue;
+
+ // Check both flat key and nested object format
+ var existsFlat = GetTokenIgnoreCase(_cache, key) != null;
+ var existsNested = CheckNestedExists(_cache, prop.Name, nestedProp.Name);
+
+ if (!existsFlat && !existsNested)
+ {
+ // Add as nested object format (proper structure)
+ EnsureNestedValue(_cache, prop.Name, nestedProp.Name, value.ToString() ?? "");
+ addedKeys.Add($"{key} = {value}");
+ }
+ }
+ }
+ }
+ }
+
+ if (addedKeys.Count > 0)
+ {
+ // Clean up any duplicate flat keys that may have been added previously
+ CleanupDuplicateKeys(_cache);
+ await SaveConfigAsync();
+ logger.LogInformation("Added {Count} missing config keys: {Keys}", addedKeys.Count, string.Join(", ", addedKeys));
+ }
+ }
+ finally
+ {
+ _lock.Release();
+ }
+ }
+
+ /// <summary>
+ /// Checks if a nested key exists in the config.
+ /// </summary>
+ private static bool CheckNestedExists(JObject root, string section, string key)
+ {
+ var sectionToken = GetTokenIgnoreCase(root, section);
+ if (sectionToken is not JObject sectionObj) return false;
+ return GetTokenIgnoreCase(sectionObj, key) != null;
+ }
+
+ /// <summary>
+ /// Ensures a nested value exists in the config.
+ /// </summary>
+ private static void EnsureNestedValue(JObject root, string section, string key, string value)
+ {
+ var sectionObj = GetOrCreateObjectIgnoreCase(root, section);
+ SetValueIgnoreCase(sectionObj, key, value);
+ }
+
+ /// <summary>
+ /// Cleans up duplicate flat keys that also exist in nested format.
+ /// </summary>
+ private static void CleanupDuplicateKeys(JObject root)
+ {
+ var properties = typeof(AppSettings).GetProperties();
+ var flatKeysToRemove = new List<string>();
+
+ foreach (var prop in properties)
+ {
+ if (prop.PropertyType.IsClass && !prop.PropertyType.IsPrimitive && prop.PropertyType != typeof(string))
+ {
+ var nestedProps = prop.PropertyType.GetProperties();
+ foreach (var nestedProp in nestedProps)
+ {
+ var flatKey = $"{prop.Name}:{nestedProp.Name}";
+ var sectionToken = GetTokenIgnoreCase(root, prop.Name);
+ if (sectionToken is JObject)
+ {
+ // If nested format exists, mark flat key for removal
+ if (GetTokenIgnoreCase(root, flatKey) != null)
+ flatKeysToRemove.Add(flatKey);
+ }
+ }
+ }
+ }
+
+ foreach (var key in flatKeysToRemove)
+ root.Remove(key);
+ }
+
+ /// <summary>
+ /// Sets a configuration value using a strongly typed property expression.
+ /// </summary>
+ /// <typeparam name="T">The type of the property being updated.</typeparam>
+ /// <param name="property">
+ /// An expression that identifies the configuration property to update, such as <c>x => x.App.Language</c>.
+ /// </param>
+ /// <param name="value">The value to assign to the specified configuration property.</param>
+ /// <example>
+ /// <code>
+ /// await configManager.SetAsync(x => x.App.Language, "en");
+ /// </code>
+ /// </example>
+ public async Task SetAsync<T>(Expression<Func<AppSettings, T>> property, T value)
+ {
+ Expression expression = property.Body;
+ if (expression is UnaryExpression unary &&
+ unary.NodeType == ExpressionType.Convert)
+ {
+ expression = unary.Operand;
+ }
+
+ if (expression is not MemberExpression member)
+ throw new ArgumentException(
+ $"The property expression '{property}' must be a simple member access expression such as 'x => x.App.Language'.",
+ nameof(property));
+ // Build key from property path (e.g., App.Language -> "App:Language")
+ var keyParts = new List<string>();
+ var expr = member;
+ while (expr != null)
+ {
+ keyParts.Insert(0, expr.Member.Name);
+ if (expr.Expression is MemberExpression next)
+ expr = next;
+ else break;
+ }
+ var key = string.Join(":", keyParts);
+
+ await SetAsync(key, value?.ToString() ?? "");
+ }
+
/// <summary>
/// Sets a configuration value by key.
/// </summary>
diff --git a/optimizerDuck/Services/Features/DiskCleanup/DiskCleanupService.cs b/optimizerDuck/Services/Features/DiskCleanup/DiskCleanupService.cs
index 2de5b57..421b477 100644
--- a/optimizerDuck/Services/Features/DiskCleanup/DiskCleanupService.cs
+++ b/optimizerDuck/Services/Features/DiskCleanup/DiskCleanupService.cs
@@ -1,7 +1,7 @@
-using System.IO;
-using Microsoft.Extensions.Logging;
+using Microsoft.Extensions.Logging;
using optimizerDuck.Resources.Languages;
using optimizerDuck.Services.OptimizationServices;
+using System.IO;
using Wpf.Ui.Controls;
using CleanupItem = optimizerDuck.Domain.Optimizations.Models.Cleanup.CleanupItem;
@@ -20,6 +20,8 @@ public class DiskCleanupService(ILogger<DiskCleanupService> logger)
{
var windowsDir = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
var localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
+ var systemDrive = Path.GetPathRoot(windowsDir) ?? "C:\\";
+
return
[
@@ -79,6 +81,14 @@ public class DiskCleanupService(ILogger<DiskCleanupService> logger)
Description = Translations.DiskCleanup_Item_ErrorReports_Description,
Path = Path.Combine(localAppData, "CrashDumps"),
Icon = SymbolRegular.Bug24
+ },
+ new CleanupItem
+ {
+ Id = "OldWindowsInstallation",
+ Name = Translations.DiskCleanup_Item_OldWindowsInstallation,
+ Description = Translations.DiskCleanup_Item_OldWindowsInstallation_Description,
+ Path = Path.Combine(systemDrive, "Windows.old"),
+ Icon = SymbolRegular.Building24
}
];
}
diff --git a/optimizerDuck/UI/Dialogs/LegalDialog.xaml b/optimizerDuck/UI/Dialogs/LegalDialog.xaml
new file mode 100644
index 0000000..e1bc0b4
--- /dev/null
+++ b/optimizerDuck/UI/Dialogs/LegalDialog.xaml
@@ -0,0 +1,64 @@
+<UserControl
+ x:Class="optimizerDuck.UI.Dialogs.LegalDialog"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:ext="clr-namespace:optimizerDuck.Common.Extensions"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ d:DesignHeight="420"
+ d:DesignWidth="520"
+ mc:Ignorable="d">
+
+ <Grid>
+ <Grid.RowDefinitions>
+ <RowDefinition Height="Auto" />
+ <RowDefinition Height="*" />
+ <RowDefinition Height="Auto" />
+ </Grid.RowDefinitions>
+
+ <StackPanel>
+ <ui:TextBlock
+ FontTypography="BodyStrong"
+ Text="{ext:Loc LegalDialog.Intro.ThankYou}"
+ TextWrapping="Wrap" />
+ <ui:TextBlock
+ Margin="0,3,0,0"
+ FontTypography="Body"
+ Text="{ext:Loc LegalDialog.Intro.Safety}"
+ TextWrapping="Wrap" />
+ <ui:TextBlock
+ Margin="0,1,0,0"
+ FontTypography="Body"
+ Text="{ext:Loc LegalDialog.Intro.Review}"
+ TextWrapping="Wrap" />
+ </StackPanel>
+
+ <StackPanel Grid.Row="1" Margin="0,6,0,6">
+ <ui:HyperlinkButton
+ Content="{ext:Loc Key=LegalDialog.Link.TermsOfService}"
+ Icon="{ui:SymbolIcon DocumentText24}"
+ NavigateUri="https://github.com/itsfatduck/optimizerDuck/blob/master/TERMS.md" />
+
+ <ui:HyperlinkButton
+ Margin="0,4,0,0"
+ Content="{ext:Loc Key=LegalDialog.Link.PrivacyPolicy}"
+ Icon="{ui:SymbolIcon ShieldLock24}"
+ NavigateUri="https://github.com/itsfatduck/optimizerDuck/blob/master/PRIVACY.md" />
+
+ <ui:HyperlinkButton
+ Margin="0,4,0,0"
+ Content="{ext:Loc Key=LegalDialog.Link.Disclaimer}"
+ Icon="{ui:SymbolIcon Warning24}"
+ NavigateUri="https://github.com/itsfatduck/optimizerDuck/blob/master/DISCLAIMER.md" />
+ </StackPanel>
+
+ <ui:InfoBar
+ Title="{ext:Loc Key=LegalDialog.Warning.Title}"
+ Grid.Row="2"
+ IsClosable="False"
+ IsOpen="True"
+ Message="{ext:Loc Key=LegalDialog.Warning.Message}"
+ Severity="Warning" />
+ </Grid>
+</UserControl>
\ No newline at end of file
diff --git a/optimizerDuck/UI/Dialogs/LegalDialog.xaml.cs b/optimizerDuck/UI/Dialogs/LegalDialog.xaml.cs
new file mode 100644
index 0000000..c19c692
--- /dev/null
+++ b/optimizerDuck/UI/Dialogs/LegalDialog.xaml.cs
@@ -0,0 +1,15 @@
+using System.Windows.Controls;
+
+namespace optimizerDuck.UI.Dialogs
+{
+ /// <summary>
+ /// Interaction logic for LegalDialog.xaml
+ /// </summary>
+ public partial class LegalDialog : UserControl
+ {
+ public LegalDialog()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/optimizerDuck/UI/Pages/BloatwarePage.xaml b/optimizerDuck/UI/Pages/BloatwarePage.xaml
index 201c186..a9b1d04 100644
--- a/optimizerDuck/UI/Pages/BloatwarePage.xaml
+++ b/optimizerDuck/UI/Pages/BloatwarePage.xaml
@@ -108,7 +108,6 @@
<Border
Grid.Row="1"
- Padding="8,0,8,0"
CornerRadius="6"
Visibility="{Binding ViewModel.HasData, Converter={StaticResource BooleanToVisibilityConverter}}">
<Grid RowDefinitions="Auto,Auto,*">
@@ -218,7 +217,7 @@
<!-- Action buttons -->
<StackPanel
Grid.Row="1"
- Margin="0,0,0,5"
+ Margin="0,0,0,8"
Orientation="Horizontal">
<ui:Button
Appearance="Danger"
@@ -243,10 +242,10 @@
<Style.Triggers>
<DataTrigger Binding="{Binding ViewModel.IsAllSafeSelected}" Value="True">
<Setter Property="Appearance" Value="Danger" />
- <Setter Property="Content" Value="{ext:Loc Bloatware.Menu.UnselectAllSafe}" />
+ <Setter Property="Content" Value="{ext:Loc Bloatware.Menu.DeselectAllSafe}" />
<Setter Property="Icon">
<Setter.Value>
- <ui:SymbolIcon FontSize="18" Symbol="DismissCircle24" />
+ <ui:SymbolIcon FontSize="18" Symbol="CheckboxUnchecked24" />
</Setter.Value>
</Setter>
</DataTrigger>
@@ -306,7 +305,7 @@
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type bloatware1:AppXPackage}">
<Border
- Margin="0,0,0,4"
+ Margin="0,0,16,4"
Padding="12"
Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
CornerRadius="6">
diff --git a/optimizerDuck/UI/Pages/DiskCleanupPage.xaml b/optimizerDuck/UI/Pages/DiskCleanupPage.xaml
index aed16b0..ae8eece 100644
--- a/optimizerDuck/UI/Pages/DiskCleanupPage.xaml
+++ b/optimizerDuck/UI/Pages/DiskCleanupPage.xaml
@@ -1,16 +1,7 @@
<Page
- Foreground="{DynamicResource TextFillColorPrimaryBrush}"
- Margin="0,32,0,0"
- ScrollViewer.CanContentScroll="False"
- Title="DiskCleanupPage"
- d:DataContext="{d:DesignInstance local:DiskCleanupPage}"
- d:DesignHeight="1200"
- d:DesignWidth="800"
- mc:Ignorable="d"
- ui:Design.Background="Black"
- ui:Design.Foreground="White"
x:Class="optimizerDuck.UI.Pages.DiskCleanupPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cleanup1="clr-namespace:optimizerDuck.Domain.Optimizations.Models.Cleanup"
xmlns:converters="clr-namespace:optimizerDuck.Common.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
@@ -18,14 +9,26 @@
xmlns:local="clr-namespace:optimizerDuck.UI.Pages"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+ Title="DiskCleanupPage"
+ Margin="0,32,0,0"
+ d:DataContext="{d:DesignInstance local:DiskCleanupPage}"
+ d:DesignHeight="1200"
+ d:DesignWidth="800"
+ ui:Design.Background="Black"
+ ui:Design.Foreground="White"
+ Foreground="{DynamicResource TextFillColorPrimaryBrush}"
+ ScrollViewer.CanContentScroll="False"
+ mc:Ignorable="d">
<Page.Resources>
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
- <converters:InverseBooleanConverter x:Key="InverseBooleanConverter" />
+ <converters:BooleanToVisibilityConverter
+ x:Key="InverseBooleanToVisibilityConverter"
+ False="Visible"
+ True="Collapsed" />
<converters:SizeToBrushConverter x:Key="SizeToBrushConverter" />
</Page.Resources>
- <Grid RowDefinitions="Auto *">
+ <Grid RowDefinitions="Auto,*">
<!-- Header -->
<StackPanel Margin="0,0,0,20">
<ui:TextBlock
@@ -33,9 +36,9 @@
Text="{ext:Loc DiskCleanup.Header.Title}"
TextWrapping="Wrap" />
<ui:TextBlock
+ Margin="0,4,0,0"
Appearance="Secondary"
FontTypography="Body"
- Margin="0,4,0,0"
Text="{ext:Loc DiskCleanup.Header.Description}"
TextWrapping="Wrap" />
</StackPanel>
@@ -44,368 +47,370 @@
<Border Grid.Row="1" Visibility="{Binding ViewModel.IsLoading, Converter={StaticResource BooleanToVisibilityConverter}}">
<StackPanel
HorizontalAlignment="Center"
- Orientation="Vertical"
- VerticalAlignment="Center">
+ VerticalAlignment="Center"
+ Orientation="Vertical">
<ui:ProgressRing
+ Width="48"
Height="48"
- HorizontalAlignment="Center"
- IsIndeterminate="True"
Margin="0,0,0,12"
- Width="48" />
+ HorizontalAlignment="Center"
+ IsIndeterminate="True" />
<ui:TextBlock
- FontTypography="BodyStrong"
HorizontalAlignment="Center"
+ FontTypography="BodyStrong"
Text="{ext:Loc DiskCleanup.Loading}" />
<ui:TextBlock
+ Margin="0,4,0,0"
+ HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Caption"
- HorizontalAlignment="Center"
- Margin="0,4,0,0"
Text="{ext:Loc DiskCleanup.Header.Description}" />
</StackPanel>
</Border>
<!-- Main content -->
- <Grid
+ <Border
Grid.Row="1"
- RowDefinitions="Auto,Auto,Auto,*"
+ CornerRadius="6"
Visibility="{Binding ViewModel.HasData, Converter={StaticResource BooleanToVisibilityConverter}}">
+ <Grid RowDefinitions="Auto,Auto,Auto,*">
- <!-- Summary card -->
- <Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="8"
- Margin="0,0,0,12"
- Padding="16">
- <Grid ColumnDefinitions="Auto,*,Auto">
- <!-- Icon -->
- <Border
- CornerRadius="22"
- Height="44"
- Margin="0,0,16,0"
- VerticalAlignment="Center"
- Width="44">
- <ui:SymbolIcon
- FontSize="22"
- HorizontalAlignment="Center"
- Symbol="HardDrive20"
- VerticalAlignment="Center" />
- </Border>
-
- <!-- Info -->
- <StackPanel Grid.Column="1" VerticalAlignment="Center">
- <ui:TextBlock FontTypography="BodyStrong" Text="{ext:Loc DiskCleanup.TotalSpace}" />
- <ui:TextBlock
- Appearance="Secondary"
- FontTypography="Body"
- Margin="0,2,0,0"
- Text="{ext:Loc DiskCleanup.ItemsAndFilesSelected,
- {Binding ViewModel.TotalSelectedSizeFormatted},
- {Binding ViewModel.SelectedCount},
- {Binding ViewModel.TotalSelectedFileCount}}" />
- </StackPanel>
+ <!-- Summary card with Scan button / Indicator -->
+ <Border
+ Margin="0,0,0,12"
+ Padding="16"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="8">
+ <Grid ColumnDefinitions="Auto,*,Auto">
+ <!-- Icon -->
+ <Border
+ Width="44"
+ Height="44"
+ Margin="0,0,16,0"
+ VerticalAlignment="Center"
+ CornerRadius="22">
+ <ui:SymbolIcon
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ FontSize="22"
+ Symbol="HardDrive20" />
+ </Border>
- <!-- Scanning indicator in summary -->
- <StackPanel
- Grid.Column="2"
- Orientation="Horizontal"
- VerticalAlignment="Center"
- Visibility="{Binding ViewModel.IsScanning, Converter={StaticResource BooleanToVisibilityConverter}}">
- <ui:ProgressRing
- Height="16"
- IsIndeterminate="True"
- Margin="0,0,8,0"
- Width="16" />
- <ui:TextBlock
- Appearance="Secondary"
- FontTypography="Caption"
- Text="{ext:Loc DiskCleanup.Scanning}"
- VerticalAlignment="Center" />
- </StackPanel>
- </Grid>
- </Border>
+ <!-- Info -->
+ <StackPanel Grid.Column="1" VerticalAlignment="Center">
+ <ui:TextBlock FontTypography="BodyStrong" Text="{ext:Loc DiskCleanup.TotalSpace}" />
+ <ui:TextBlock
+ Margin="0,2,0,0"
+ Appearance="Secondary"
+ FontTypography="Body"
+ Text="{ext:Loc DiskCleanup.ItemsAndFilesSelected,
+ {Binding ViewModel.TotalSelectedSizeFormatted},
+ {Binding ViewModel.SelectedCount},
+ {Binding ViewModel.TotalSelectedFileCount}}" />
+ </StackPanel>
- <!-- Sort toolbar -->
- <WrapPanel
- Grid.Row="1"
- Margin="0,0,0,8"
- Orientation="Horizontal">
+ <!-- Scan button -->
+ <ui:Button
+ Grid.Column="2"
+ VerticalAlignment="Center"
+ Appearance="Primary"
+ Command="{Binding ViewModel.ScanCommand}"
+ Content="{ext:Loc DiskCleanup.Button.Scan}"
+ Icon="{ui:SymbolIcon Search24,
+ FontSize=18}"
+ Visibility="{Binding ViewModel.IsScanning, Converter={StaticResource InverseBooleanToVisibilityConverter}}" />
- <!-- Sort By -->
- <ComboBox
- Margin="0,0,8,0"
- SelectedIndex="{Binding ViewModel.SelectedSortByIndex}"
- ToolTip="{ext:Loc Common.SortBy}"
- ToolTipService.BetweenShowDelay="160"
- ToolTipService.Placement="Top"
- VerticalAlignment="Center">
- <ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
- <ui:SymbolIcon
- HorizontalAlignment="Left"
- Margin="0,0,6,0"
- Symbol="Storage24" />
- <TextBlock
- Grid.Column="1"
- HorizontalAlignment="Left"
- Text="{ext:Loc Common.SortBy.Size}" />
- </Grid>
- </ComboBoxItem>
- <ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
- <ui:SymbolIcon
- HorizontalAlignment="Left"
- Margin="0,0,6,0"
- Symbol="TextSortAscending24" />
- <TextBlock
- Grid.Column="1"
- HorizontalAlignment="Left"
- Text="{ext:Loc Common.SortBy.Name}" />
- </Grid>
- </ComboBoxItem>
- <ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
- <ui:SymbolIcon
- HorizontalAlignment="Left"
- Margin="0,0,6,0"
- Symbol="Folder24" />
- <TextBlock
- Grid.Column="1"
- HorizontalAlignment="Left"
- Text="{ext:Loc Common.SortBy.Path}" />
- </Grid>
- </ComboBoxItem>
- </ComboBox>
- </WrapPanel>
+ <!-- Scanning indicator -->
+ <StackPanel
+ Grid.Column="2"
+ VerticalAlignment="Center"
+ Orientation="Horizontal"
+ Visibility="{Binding ViewModel.IsScanning, Converter={StaticResource BooleanToVisibilityConverter}}">
+ <ui:ProgressRing
+ Width="16"
+ Height="16"
+ Margin="0,0,8,0"
+ IsIndeterminate="True" />
+ <ui:TextBlock
+ VerticalAlignment="Center"
+ Appearance="Secondary"
+ FontTypography="Caption"
+ Text="{ext:Loc DiskCleanup.Scanning}" />
+ </StackPanel>
+ </Grid>
+ </Border>
- <!-- Action buttons -->
- <StackPanel
- Grid.Row="2"
- Margin="0,0,0,12"
- Orientation="Horizontal">
+ <!-- Sort toolbar -->
+ <WrapPanel
+ Grid.Row="1"
+ Margin="0,0,0,8"
+ Orientation="Horizontal">
- <!-- Scan button -->
- <ui:Button
- Appearance="Primary"
- Command="{Binding ViewModel.ScanCommand}"
- Content="{ext:Loc DiskCleanup.Button.Scan}"
- Icon="{ui:SymbolIcon Search24,
- FontSize=18}"
- IsEnabled="{Binding ViewModel.IsScanning, Converter={StaticResource InverseBooleanConverter}}" />
+ <!-- Sort By -->
+ <ComboBox
+ Margin="0,0,8,0"
+ VerticalAlignment="Center"
+ SelectedIndex="{Binding ViewModel.SelectedSortByIndex}"
+ ToolTip="{ext:Loc Common.SortBy}"
+ ToolTipService.BetweenShowDelay="160"
+ ToolTipService.Placement="Top">
+ <ComboBoxItem HorizontalContentAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <ui:SymbolIcon
+ Margin="0,0,6,0"
+ HorizontalAlignment="Left"
+ Symbol="Storage24" />
+ <TextBlock
+ Grid.Column="1"
+ HorizontalAlignment="Left"
+ Text="{ext:Loc Common.SortBy.Size}" />
+ </Grid>
+ </ComboBoxItem>
+ <ComboBoxItem HorizontalContentAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <ui:SymbolIcon
+ Margin="0,0,6,0"
+ HorizontalAlignment="Left"
+ Symbol="TextSortAscending24" />
+ <TextBlock
+ Grid.Column="1"
+ HorizontalAlignment="Left"
+ Text="{ext:Loc Common.SortBy.Name}" />
+ </Grid>
+ </ComboBoxItem>
+ <ComboBoxItem HorizontalContentAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <ui:SymbolIcon
+ Margin="0,0,6,0"
+ HorizontalAlignment="Left"
+ Symbol="Folder24" />
+ <TextBlock
+ Grid.Column="1"
+ HorizontalAlignment="Left"
+ Text="{ext:Loc Common.SortBy.Path}" />
+ </Grid>
+ </ComboBoxItem>
+ </ComboBox>
+ </WrapPanel>
- <Separator Margin="4,0,4,0" />
+ <!-- Action buttons -->
+ <StackPanel
+ Grid.Row="2"
+ Margin="0,0,0,12"
+ Orientation="Horizontal">
- <!-- Clean button -->
- <ui:Button
- Appearance="Danger"
- Command="{Binding ViewModel.CleanSelectedCommand}"
- IsEnabled="{Binding ViewModel.CanClean}">
- <ui:Button.Content>
- <StackPanel Orientation="Horizontal">
- <ui:SymbolIcon
- FontSize="18"
- Margin="0,0,6,0"
- Symbol="Delete24" />
- <TextBlock Text="{ext:Loc DiskCleanup.Button.CleanSelected, {Binding ViewModel.TotalSelectedSizeFormatted}}" />
- </StackPanel>
- </ui:Button.Content>
- </ui:Button>
+ <!-- Clean button -->
+ <ui:Button
+ Appearance="Danger"
+ Command="{Binding ViewModel.CleanSelectedCommand}"
+ IsEnabled="{Binding ViewModel.CanClean}">
+ <ui:Button.Content>
+ <StackPanel Orientation="Horizontal">
+ <ui:SymbolIcon
+ Margin="0,0,6,0"
+ FontSize="18"
+ Symbol="Delete24" />
+ <TextBlock Text="{ext:Loc DiskCleanup.Button.CleanSelected, {Binding ViewModel.TotalSelectedSizeFormatted}}" />
+ </StackPanel>
+ </ui:Button.Content>
+ </ui:Button>
- <Separator Margin="4,0,4,0" />
+ <Separator Margin="4,0,4,0" />
- <!-- Select/Deselect All -->
- <ui:Button Command="{Binding ViewModel.SelectAllCommand}">
- <ui:Button.Style>
- <Style BasedOn="{StaticResource {x:Type ui:Button}}" TargetType="ui:Button">
- <Setter Property="Appearance" Value="Success" />
- <Setter Property="Content" Value="{ext:Loc DiskCleanup.Button.SelectAll}" />
- <Setter Property="Icon">
- <Setter.Value>
- <ui:SymbolIcon FontSize="18" Symbol="CheckboxChecked24" />
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ViewModel.IsAllSelected}" Value="True">
- <Setter Property="Appearance" Value="Danger" />
- <Setter Property="Content" Value="{ext:Loc DiskCleanup.Button.DeselectAll}" />
- <Setter Property="Icon">
- <Setter.Value>
- <ui:SymbolIcon FontSize="18" Symbol="CheckboxUnchecked24" />
- </Setter.Value>
- </Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </ui:Button.Style>
- </ui:Button>
- </StackPanel>
+ <!-- Select/Deselect All -->
+ <ui:Button Command="{Binding ViewModel.SelectAllCommand}">
+ <ui:Button.Style>
+ <Style BasedOn="{StaticResource {x:Type ui:Button}}" TargetType="ui:Button">
+ <Setter Property="Appearance" Value="Success" />
+ <Setter Property="Content" Value="{ext:Loc DiskCleanup.Button.SelectAll}" />
+ <Setter Property="Icon">
+ <Setter.Value>
+ <ui:SymbolIcon FontSize="18" Symbol="CheckboxChecked24" />
+ </Setter.Value>
+ </Setter>
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding ViewModel.IsAllSelected}" Value="True">
+ <Setter Property="Appearance" Value="Danger" />
+ <Setter Property="Content" Value="{ext:Loc DiskCleanup.Button.DeselectAll}" />
+ <Setter Property="Icon">
+ <Setter.Value>
+ <ui:SymbolIcon FontSize="18" Symbol="CheckboxUnchecked24" />
+ </Setter.Value>
+ </Setter>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </ui:Button.Style>
+ </ui:Button>
+ </StackPanel>
- <!-- Items list (virtualized) -->
- <ItemsControl Grid.Row="3" ItemsSource="{Binding ViewModel.CleanupItems}">
- <ItemsControl.Template>
- <ControlTemplate TargetType="ItemsControl">
- <ScrollViewer HorizontalScrollBarVisibility="Disabled">
- <ItemsPresenter />
- </ScrollViewer>
- </ControlTemplate>
- </ItemsControl.Template>
+ <!-- Items list (virtualized) -->
+ <ItemsControl Grid.Row="3" ItemsSource="{Binding ViewModel.CleanupItems}">
+ <ItemsControl.Template>
+ <ControlTemplate TargetType="ItemsControl">
+ <ScrollViewer HorizontalScrollBarVisibility="Disabled">
+ <ItemsPresenter Margin="0,0,16,0" />
+ </ScrollViewer>
+ </ControlTemplate>
+ </ItemsControl.Template>
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <VirtualizingStackPanel />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
+ <ItemsControl.ItemsPanel>
+ <ItemsPanelTemplate>
+ <VirtualizingStackPanel />
+ </ItemsPanelTemplate>
+ </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate DataType="{x:Type cleanup1:CleanupItem}">
- <Border
- Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
- CornerRadius="8"
- Margin="0,0,0,4"
- Padding="14">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
+ <ItemsControl.ItemTemplate>
+ <DataTemplate DataType="{x:Type cleanup1:CleanupItem}">
+ <Border
+ Margin="0,0,0,4"
+ Padding="14,10"
+ Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
+ CornerRadius="6">
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto" />
+ <ColumnDefinition Width="Auto" />
+ <ColumnDefinition Width="*" />
+ <ColumnDefinition Width="Auto" />
+ </Grid.ColumnDefinitions>
- <!-- Checkbox -->
- <CheckBox
- Grid.Column="0"
- IsChecked="{Binding IsSelected, Mode=TwoWay}"
- Margin="0,0,12,0"
- VerticalAlignment="Center" />
+ <!-- Checkbox -->
+ <CheckBox
+ Grid.Column="0"
+ Margin="0,0,12,0"
+ VerticalAlignment="Center"
+ IsChecked="{Binding IsSelected, Mode=TwoWay}" />
- <!-- Icon with circle background -->
- <Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="19"
- Grid.Column="1"
- Height="38"
- Margin="0,0,14,0"
- VerticalAlignment="Center"
- Width="38">
- <ui:SymbolIcon
- FontSize="20"
- Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- HorizontalAlignment="Center"
- Symbol="{Binding Icon}"
- VerticalAlignment="Center" />
- </Border>
+ <!-- Icon with circle background -->
+ <Border
+ Grid.Column="1"
+ Width="38"
+ Height="38"
+ Margin="0,0,14,0"
+ VerticalAlignment="Center"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="19">
+ <ui:SymbolIcon
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ FontSize="20"
+ Foreground="{DynamicResource TextFillColorSecondaryBrush}"
+ Symbol="{Binding Icon}" />
+ </Border>
- <!-- Info -->
- <StackPanel Grid.Column="2" VerticalAlignment="Center">
- <ui:TextBlock FontTypography="BodyStrong" Text="{Binding Name}" />
- <ui:TextBlock
- Appearance="Disabled"
- FontTypography="Body"
- Margin="0,2,0,0"
- Text="{Binding Description}"
- TextWrapping="Wrap" />
- <ui:TextBlock
- Appearance="Secondary"
- FontTypography="Caption"
- Margin="0,2,0,0"
- Text="{Binding Path}"
- TextTrimming="CharacterEllipsis" />
+ <!-- Info -->
+ <StackPanel Grid.Column="2" VerticalAlignment="Center">
+ <ui:TextBlock FontTypography="BodyStrong" Text="{Binding Name}" />
+ <ui:TextBlock
+ Margin="0,2,0,0"
+ Appearance="Disabled"
+ FontTypography="Body"
+ Text="{Binding Description}"
+ TextWrapping="Wrap" />
+ <ui:TextBlock
+ Margin="0,2,0,0"
+ Appearance="Secondary"
+ FontTypography="Caption"
+ Text="{Binding Path}"
+ TextTrimming="CharacterEllipsis" />
- <Border
- CornerRadius="10"
- HorizontalAlignment="Left"
- Margin="0,6,0,0">
- <Border.Style>
- <Style TargetType="Border">
- <Setter Property="Visibility" Value="{Binding IsScanned, Converter={StaticResource BooleanToVisibilityConverter}}" />
- <Setter Property="Padding" Value="8,3" />
- <Setter Property="Background" Value="{Binding SizeBytes, Converter={StaticResource SizeToBrushConverter}}" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsScanning}" Value="True">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- <DataTrigger Binding="{Binding IsCleaning}" Value="True">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- <DataTrigger Binding="{Binding FormattedSize}" Value="0 B">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Padding" Value="0,3" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Border.Style>
- <Grid>
- <Border>
- <Border.Style>
- <Style TargetType="Border">
- <Setter Property="Visibility" Value="Visible" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding FormattedSize}" Value="0 B">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Border.Style>
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
+ <Border
+ Margin="0,6,0,0"
+ HorizontalAlignment="Left"
+ CornerRadius="8">
+ <Border.Style>
+ <Style TargetType="Border">
+ <Setter Property="Visibility" Value="{Binding IsScanned, Converter={StaticResource BooleanToVisibilityConverter}}" />
+ <Setter Property="Padding" Value="8,3" />
+ <Setter Property="Background" Value="{Binding SizeBytes, Converter={StaticResource SizeToBrushConverter}}" />
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding IsScanning}" Value="True">
+ <Setter Property="Visibility" Value="Collapsed" />
+ </DataTrigger>
+ <DataTrigger Binding="{Binding IsCleaning}" Value="True">
+ <Setter Property="Visibility" Value="Collapsed" />
+ </DataTrigger>
+ <DataTrigger Binding="{Binding FormattedSize}" Value="0 B">
+ <Setter Property="Background" Value="Transparent" />
+ <Setter Property="Padding" Value="0,3" />
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Border.Style>
+ <Grid>
+ <Border>
+ <Border.Style>
+ <Style TargetType="Border">
+ <Setter Property="Visibility" Value="Visible" />
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding FormattedSize}" Value="0 B">
+ <Setter Property="Visibility" Value="Collapsed" />
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Border.Style>
+ <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
+ <ui:TextBlock
+ FontTypography="Caption"
+ Foreground="{DynamicResource TextFillColorInverseBrush}"
+ Text="{Binding FormattedSize}" />
+ <ui:TextBlock
+ Margin="6,0,6,0"
+ FontTypography="Caption"
+ Foreground="{DynamicResource TextFillColorInverseBrush}"
+ Opacity="0.8"
+ Text="•" />
+ <ui:TextBlock
+ FontTypography="Caption"
+ Foreground="{DynamicResource TextFillColorInverseBrush}"
+ Text="{ext:Loc DiskCleanup.FilesCount,
+ {Binding FileCount}}" />
+ </StackPanel>
+ </Border>
+ <Border>
+ <Border.Style>
+ <Style TargetType="Border">
+ <Setter Property="Visibility" Value="Collapsed" />
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding FormattedSize}" Value="0 B">
+ <Setter Property="Visibility" Value="Visible" />
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Border.Style>
<ui:TextBlock
FontTypography="Caption"
- Foreground="{DynamicResource TextFillColorInverseBrush}"
- Text="{Binding FormattedSize}" />
- <ui:TextBlock
- FontTypography="Caption"
- Foreground="{DynamicResource TextFillColorInverseBrush}"
- Margin="6,0,6,0"
- Opacity="0.8"
- Text="•" />
- <ui:TextBlock
- FontTypography="Caption"
- Foreground="{DynamicResource TextFillColorInverseBrush}"
- Text="{ext:Loc DiskCleanup.FilesCount,
- {Binding FileCount}}" />
- </StackPanel>
- </Border>
- <Border>
- <Border.Style>
- <Style TargetType="Border">
- <Setter Property="Visibility" Value="Collapsed" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding FormattedSize}" Value="0 B">
- <Setter Property="Visibility" Value="Visible" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Border.Style>
- <ui:TextBlock
- FontTypography="Caption"
- Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Text="{ext:Loc DiskCleanup.EmptySize}" />
- </Border>
- </Grid>
- </Border>
- </StackPanel>
+ Foreground="{DynamicResource TextFillColorSecondaryBrush}"
+ Text="{ext:Loc DiskCleanup.EmptySize}" />
+ </Border>
+ </Grid>
+ </Border>
+ </StackPanel>
- <!-- Scanning / Cleaning spinners -->
- <StackPanel
- Grid.Column="3"
- HorizontalAlignment="Right"
- Margin="14,0,0,0"
- VerticalAlignment="Center">
- <ui:ProgressRing
- Height="22"
- IsIndeterminate="True"
- Visibility="{Binding IsScanning, Converter={StaticResource BooleanToVisibilityConverter}}"
- Width="22" />
- <ui:ProgressRing
- Height="22"
- IsIndeterminate="True"
- Visibility="{Binding IsCleaning, Converter={StaticResource BooleanToVisibilityConverter}}"
- Width="22" />
- </StackPanel>
- </Grid>
- </Border>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </Grid>
+ <!-- Scanning / Cleaning spinners -->
+ <StackPanel
+ Grid.Column="3"
+ Margin="14,0,0,0"
+ HorizontalAlignment="Right"
+ VerticalAlignment="Center">
+ <ui:ProgressRing
+ Width="22"
+ Height="22"
+ IsIndeterminate="True"
+ Visibility="{Binding IsScanning, Converter={StaticResource BooleanToVisibilityConverter}}" />
+ <ui:ProgressRing
+ Width="22"
+ Height="22"
+ IsIndeterminate="True"
+ Visibility="{Binding IsCleaning, Converter={StaticResource BooleanToVisibilityConverter}}" />
+ </StackPanel>
+ </Grid>
+ </Border>
+ </DataTemplate>
+ </ItemsControl.ItemTemplate>
+ </ItemsControl>
+ </Grid>
+ </Border>
</Grid>
</Page>
\ No newline at end of file
diff --git a/optimizerDuck/UI/Pages/Features/Categories/FeatureCategoryPage.xaml b/optimizerDuck/UI/Pages/Features/Categories/FeatureCategoryPage.xaml
index 2c5d5f1..fba71dd 100644
--- a/optimizerDuck/UI/Pages/Features/Categories/FeatureCategoryPage.xaml
+++ b/optimizerDuck/UI/Pages/Features/Categories/FeatureCategoryPage.xaml
@@ -30,7 +30,7 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Margin="42,0,42,16">
+ <StackPanel Grid.Row="0" Margin="0,0,0,16">
<StackPanel Margin="0,0,0,8" Orientation="Horizontal">
<ui:SymbolIcon
Margin="0,0,12,0"
@@ -50,7 +50,7 @@
<WrapPanel
Grid.Row="1"
- Margin="42,0,42,16"
+ Margin="0,0,0,16"
Orientation="Horizontal">
<ui:TextBox
MinWidth="200"
@@ -65,7 +65,9 @@
Margin="0,0,8,0"
VerticalAlignment="Center"
SelectedIndex="{Binding ViewModel.SelectedSortByIndex}"
- ToolTip="{ext:Loc Common.SortBy}">
+ ToolTip="{ext:Loc Common.SortBy}"
+ ToolTipService.BetweenShowDelay="160"
+ ToolTipService.Placement="Top">
<ComboBoxItem HorizontalContentAlignment="Left">
<Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
@@ -95,15 +97,14 @@
<ScrollViewer
Grid.Row="2"
- Margin="42,0,42,0"
HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto">
<!-- Sections -->
- <ItemsControl Margin="0,0,0,16" ItemsSource="{Binding ViewModel.Sections}">
+ <ItemsControl Margin="0,0,16,0" ItemsSource="{Binding ViewModel.Sections}">
<ItemsControl.ItemTemplate>
<DataTemplate>
- <StackPanel Margin="0,0,0,0">
+ <StackPanel Margin="0,0,0,10">
<ui:TextBlock
Margin="0,0,0,6"
FontTypography="BodyStrong"
diff --git a/optimizerDuck/UI/Pages/Optimize/Categories/OptimizationPage.xaml b/optimizerDuck/UI/Pages/Optimize/Categories/OptimizationPage.xaml
index 81abefb..b8939c0 100644
--- a/optimizerDuck/UI/Pages/Optimize/Categories/OptimizationPage.xaml
+++ b/optimizerDuck/UI/Pages/Optimize/Categories/OptimizationPage.xaml
@@ -202,7 +202,7 @@
<ui:VirtualizingItemsControl.Template>
<ControlTemplate TargetType="ItemsControl">
<ScrollViewer HorizontalScrollBarVisibility="Disabled">
- <ItemsPresenter />
+ <ItemsPresenter Margin="0,0,7,0" />
</ScrollViewer>
</ControlTemplate>
</ui:VirtualizingItemsControl.Template>
diff --git a/optimizerDuck/UI/Pages/ScheduledTasksPage.xaml b/optimizerDuck/UI/Pages/ScheduledTasksPage.xaml
index 782965a..22b3545 100644
--- a/optimizerDuck/UI/Pages/ScheduledTasksPage.xaml
+++ b/optimizerDuck/UI/Pages/ScheduledTasksPage.xaml
@@ -1,16 +1,7 @@
<Page
- Foreground="{DynamicResource TextFillColorPrimaryBrush}"
- Margin="0,32,0,0"
- ScrollViewer.CanContentScroll="False"
- Title="ScheduledTasksPage"
- d:DataContext="{d:DesignInstance local:ScheduledTasksPage}"
- d:DesignHeight="1200"
- d:DesignWidth="800"
- mc:Ignorable="d"
- ui:Design.Background="Black"
- ui:Design.Foreground="White"
x:Class="optimizerDuck.UI.Pages.ScheduledTasksPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:optimizerDuck.Common.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ext="clr-namespace:optimizerDuck.Common.Extensions"
@@ -18,7 +9,16 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:scheduledTask="clr-namespace:optimizerDuck.Domain.Optimizations.Models.ScheduledTask"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+ Title="ScheduledTasksPage"
+ Margin="0,32,0,0"
+ d:DataContext="{d:DesignInstance local:ScheduledTasksPage}"
+ d:DesignHeight="1200"
+ d:DesignWidth="800"
+ ui:Design.Background="Black"
+ ui:Design.Foreground="White"
+ Foreground="{DynamicResource TextFillColorPrimaryBrush}"
+ ScrollViewer.CanContentScroll="False"
+ mc:Ignorable="d">
<Page.Resources>
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
@@ -38,23 +38,23 @@
<StackPanel Grid.Column="0">
<ui:TextBlock FontTypography="Title" Text="{ext:Loc ScheduledTasks.Header.Title}" />
<ui:TextBlock
+ Margin="0,4,0,0"
Appearance="Secondary"
FontTypography="Body"
- Margin="0,4,0,0"
Text="{ext:Loc ScheduledTasks.Header.Description}"
TextWrapping="Wrap" />
</StackPanel>
<WrapPanel
Grid.Column="1"
- Orientation="Horizontal"
- VerticalAlignment="Center">
+ VerticalAlignment="Center"
+ Orientation="Horizontal">
<ui:Button
+ Margin="0,0,8,0"
Appearance="Secondary"
Command="{Binding ViewModel.OpenTaskSchedulerCommand}"
Content="{ext:Loc ScheduledTasks.Menu.OpenSettings}"
Icon="{ui:SymbolIcon Settings24,
- FontSize=18}"
- Margin="0,0,8,0" />
+ FontSize=18}" />
<ui:Button
Appearance="Primary"
Command="{Binding ViewModel.RefreshCommand}"
@@ -69,21 +69,21 @@
<Border Grid.Row="1" Visibility="{Binding ViewModel.IsLoading, Converter={StaticResource BooleanToVisibilityConverter}}">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<ui:ProgressRing
+ Width="48"
Height="48"
- HorizontalAlignment="Center"
- IsIndeterminate="True"
Margin="0,0,0,16"
+ HorizontalAlignment="Center"
VerticalAlignment="Center"
- Width="48" />
+ IsIndeterminate="True" />
<ui:TextBlock
- FontTypography="BodyStrong"
HorizontalAlignment="Center"
+ FontTypography="BodyStrong"
Text="{ext:Loc ScheduledTasks.Loading}" />
<ui:TextBlock
+ Margin="0,4,0,0"
+ HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Caption"
- HorizontalAlignment="Center"
- Margin="0,4,0,0"
Text="{ext:Loc ScheduledTasks.Loading.Hint}" />
</StackPanel>
</Border>
@@ -115,24 +115,24 @@
Orientation="Horizontal">
<!-- Search -->
<ui:TextBox
- Icon="{ui:SymbolIcon Search24}"
+ MinWidth="200"
Margin="0,0,8,0"
- MinWidth="250"
+ VerticalAlignment="Center"
+ Icon="{ui:SymbolIcon Search24}"
PlaceholderText="{ext:Loc Common.Search.Placeholder}"
- Text="{Binding ViewModel.SearchText, UpdateSourceTrigger=PropertyChanged}"
- VerticalAlignment="Center" />
+ Text="{Binding ViewModel.SearchText, UpdateSourceTrigger=PropertyChanged}" />
<!-- Sort By -->
<ComboBox
Margin="0,0,8,0"
+ VerticalAlignment="Center"
SelectedIndex="{Binding ViewModel.SortByIndex}"
- ToolTip="{ext:Loc Common.SortBy}"
- VerticalAlignment="Center">
+ ToolTip="{ext:Loc Common.SortBy}">
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
- HorizontalAlignment="Left"
Margin="0,0,6,0"
+ HorizontalAlignment="Left"
Symbol="TextSortAscending24" />
<TextBlock
Grid.Column="1"
@@ -141,10 +141,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
- HorizontalAlignment="Left"
Margin="0,0,6,0"
+ HorizontalAlignment="Left"
Symbol="ToggleRight24" />
<TextBlock
Grid.Column="1"
@@ -153,10 +153,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
- HorizontalAlignment="Left"
Margin="0,0,6,0"
+ HorizontalAlignment="Left"
Symbol="Folder24" />
<TextBlock
Grid.Column="1"
@@ -165,10 +165,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
- HorizontalAlignment="Left"
Margin="0,0,6,0"
+ HorizontalAlignment="Left"
Symbol="Flash24" />
<TextBlock
Grid.Column="1"
@@ -180,44 +180,44 @@
<!-- Hide Microsoft -->
<ui:ToggleSwitch
+ Margin="0,0,8,0"
+ VerticalAlignment="Center"
Cursor="Hand"
IsChecked="{Binding ViewModel.HideMicrosoftTasks, Mode=TwoWay}"
- Margin="0,0,8,0"
OffContent="{ext:Loc ScheduledTasks.HideMicrosoft}"
- OnContent="{ext:Loc ScheduledTasks.HideMicrosoft}"
- VerticalAlignment="Center" />
+ OnContent="{ext:Loc ScheduledTasks.HideMicrosoft}" />
</WrapPanel>
<!-- No search results -->
<StackPanel
Grid.Row="1"
- HorizontalAlignment="Center"
Margin="0,64,0,32"
+ HorizontalAlignment="Center"
VerticalAlignment="Top"
Visibility="{Binding ViewModel.Tasks.Count, Converter={StaticResource ZeroToVisibilityConverter}}">
<ui:SymbolIcon
+ Margin="0,0,0,10"
+ HorizontalAlignment="Center"
FontSize="36"
Foreground="{DynamicResource SystemFillColorCriticalBrush}"
- HorizontalAlignment="Center"
- Margin="0,0,0,10"
Symbol="SearchInfo24" />
<ui:TextBlock
+ HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Body"
- HorizontalAlignment="Center"
Text="{ext:Loc Bloatware.Search.NoResults}" />
</StackPanel>
<!-- Task List -->
- <ScrollViewer Grid.Row="1" Margin="0,0,16,0">
+ <ScrollViewer Grid.Row="1" Margin="0,0,0,0">
<ItemsControl ItemsSource="{Binding ViewModel.Tasks}" Visibility="{Binding ViewModel.Tasks.Count, Converter={StaticResource GreaterThanZeroToVisibilityConverter}}">
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type scheduledTask:ScheduledTaskModel}">
<Border
+ Margin="0,0,16,6"
+ Padding="16,12"
Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
- CornerRadius="6"
- Margin="0,0,0,6"
- Padding="16,12">
+ CornerRadius="6">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
@@ -228,12 +228,12 @@
<!-- Task Logo -->
<Image
Grid.Column="0"
+ Width="36"
Height="36"
Margin="0,0,12,0"
- Source="{Binding LogoImage}"
- Stretch="UniformToFill"
VerticalAlignment="Center"
- Width="36" />
+ Source="{Binding LogoImage}"
+ Stretch="UniformToFill" />
<!-- Task info -->
<StackPanel
@@ -245,10 +245,10 @@
<DockPanel LastChildFill="False">
<ui:TextBlock FontTypography="BodyStrong" Text="{Binding Name}" />
<Border
- CornerRadius="4"
Margin="8,0,0,0"
Padding="6,1"
- VerticalAlignment="Center">
+ VerticalAlignment="Center"
+ CornerRadius="4">
<Border.Style>
<Style TargetType="Border">
<Setter Property="Background" Value="{DynamicResource CardBackgroundFillColorSecondaryBrush}" />
@@ -267,9 +267,9 @@
</Border.Style>
<StackPanel Orientation="Horizontal">
<ui:SymbolIcon
- FontSize="10"
+ x:Name="StateIcon"
Margin="0,0,4,0"
- x:Name="StateIcon">
+ FontSize="10">
<ui:SymbolIcon.Style>
<Style TargetType="ui:SymbolIcon">
<Setter Property="Symbol" Value="Circle24" />
@@ -292,31 +292,31 @@
</ui:SymbolIcon.Style>
</ui:SymbolIcon>
<ui:TextBlock
+ VerticalAlignment="Center"
FontTypography="Caption"
Foreground="{Binding ElementName=StateIcon, Path=Foreground}"
- Text="{Binding State}"
- VerticalAlignment="Center" />
+ Text="{Binding State}" />
</StackPanel>
</Border>
</DockPanel>
<!-- Row 2: Description -->
<ui:TextBlock
+ Margin="0,4,0,0"
Appearance="Secondary"
FontTypography="Caption"
- Margin="0,4,0,0"
Text="{Binding Description}"
TextWrapping="Wrap" />
<!-- Row 3: Path -->
<ui:TextBlock
+ Margin="0,2,0,0"
Appearance="Disabled"
FontTypography="Caption"
- Margin="0,2,0,0"
Text="{Binding FullPath}" />
<!-- Row 4: Trigger badges -->
- <ItemsControl ItemsSource="{Binding TriggerTypes}" Margin="0,4,0,0">
+ <ItemsControl Margin="0,4,0,0" ItemsSource="{Binding TriggerTypes}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" />
@@ -325,20 +325,20 @@
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,2"
- Padding="6,2">
+ Padding="6,2"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<StackPanel Orientation="Horizontal">
<ui:SymbolIcon
- Foreground="{DynamicResource TextFillColorSecondaryBrush}"
Margin="0,0,4,0"
+ Foreground="{DynamicResource TextFillColorSecondaryBrush}"
Symbol="Timer24" />
<ui:TextBlock
+ VerticalAlignment="Center"
FontTypography="Caption"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Text="{Binding}"
- VerticalAlignment="Center" />
+ Text="{Binding}" />
</StackPanel>
</Border>
</DataTemplate>
@@ -347,9 +347,9 @@
<!-- Row 5: Action summary -->
<ui:TextBlock
+ Margin="0,2,0,0"
Appearance="Disabled"
FontTypography="Caption"
- Margin="0,2,0,0"
Text="{Binding ActionSummary}"
TextTrimming="CharacterEllipsis" />
</StackPanel>
@@ -357,26 +357,26 @@
<!-- Actions -->
<StackPanel
Grid.Column="2"
- Orientation="Horizontal"
- VerticalAlignment="Center">
+ VerticalAlignment="Center"
+ Orientation="Horizontal">
<ui:Button
+ Margin="0,0,4,0"
+ Padding="8"
Appearance="Transparent"
Command="{Binding DataContext.ViewModel.ViewDetailsCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
Icon="{ui:SymbolIcon Info24,
FontSize=16}"
- Margin="0,0,4,0"
- Padding="8"
ToolTip="{ext:Loc ScheduledTasks.Action.Details}" />
<!-- Run: visible only when not running -->
<ui:Button
+ Margin="0,0,4,0"
+ Padding="8"
Appearance="Transparent"
Command="{Binding DataContext.ViewModel.RunTaskCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
Icon="{ui:SymbolIcon Play24,
FontSize=16}"
- Margin="0,0,4,0"
- Padding="8"
ToolTip="{ext:Loc ScheduledTasks.Action.Run}">
<ui:Button.Style>
<Style BasedOn="{StaticResource {x:Type ui:Button}}" TargetType="ui:Button">
@@ -391,30 +391,30 @@
</ui:Button>
<!-- Stop: visible only when running -->
<ui:Button
+ Margin="0,0,4,0"
+ Padding="8"
Appearance="Transparent"
Command="{Binding DataContext.ViewModel.StopTaskCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
Icon="{ui:SymbolIcon Stop24,
FontSize=16}"
- Margin="0,0,4,0"
- Padding="8"
ToolTip="{ext:Loc ScheduledTasks.Action.Stop}"
Visibility="{Binding IsRunning, Converter={StaticResource WpfBoolToVis}}" />
<ui:Button
+ Margin="0,0,8,0"
+ Padding="8"
Appearance="Transparent"
Command="{Binding DataContext.ViewModel.DeleteTaskCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
Icon="{ui:SymbolIcon Delete24,
FontSize=16}"
- Margin="0,0,8,0"
- Padding="8"
ToolTip="{ext:Loc ScheduledTasks.Action.Delete}" />
<ui:ToggleSwitch
+ VerticalAlignment="Center"
Cursor="Hand"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
OffContent="{ext:Loc Common.Toggle.Off}"
- OnContent="{ext:Loc Common.Toggle.On}"
- VerticalAlignment="Center" />
+ OnContent="{ext:Loc Common.Toggle.On}" />
</StackPanel>
</Grid>
</Border>
diff --git a/optimizerDuck/UI/Pages/StartupManagerPage.xaml b/optimizerDuck/UI/Pages/StartupManagerPage.xaml
index 8e9f9f5..8e99d74 100644
--- a/optimizerDuck/UI/Pages/StartupManagerPage.xaml
+++ b/optimizerDuck/UI/Pages/StartupManagerPage.xaml
@@ -1,16 +1,7 @@
<Page
- Foreground="{DynamicResource TextFillColorPrimaryBrush}"
- Margin="0,32,0,0"
- ScrollViewer.CanContentScroll="False"
- Title="StartupManagerPage"
- d:DataContext="{d:DesignInstance local:StartupManagerPage}"
- d:DesignHeight="1200"
- d:DesignWidth="800"
- mc:Ignorable="d"
- ui:Design.Background="Black"
- ui:Design.Foreground="White"
x:Class="optimizerDuck.UI.Pages.StartupManagerPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:optimizerDuck.Common.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ext="clr-namespace:optimizerDuck.Common.Extensions"
@@ -18,7 +9,16 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:startupManager="clr-namespace:optimizerDuck.Domain.Optimizations.Models.StartupManager"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+ Title="StartupManagerPage"
+ Margin="0,32,0,0"
+ d:DataContext="{d:DesignInstance local:StartupManagerPage}"
+ d:DesignHeight="1200"
+ d:DesignWidth="800"
+ ui:Design.Background="Black"
+ ui:Design.Foreground="White"
+ Foreground="{DynamicResource TextFillColorPrimaryBrush}"
+ ScrollViewer.CanContentScroll="False"
+ mc:Ignorable="d">
<Page.Resources>
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
@@ -37,16 +37,16 @@
<StackPanel Grid.Column="0">
<ui:TextBlock FontTypography="Title" Text="{ext:Loc StartupManager.Header.Title}" />
<ui:TextBlock
+ Margin="0,4,0,0"
Appearance="Secondary"
FontTypography="Body"
- Margin="0,4,0,0"
Text="{ext:Loc StartupManager.Header.Description}"
TextWrapping="Wrap" />
</StackPanel>
<WrapPanel
Grid.Column="1"
- Orientation="Horizontal"
- VerticalAlignment="Center">
+ VerticalAlignment="Center"
+ Orientation="Horizontal">
<ui:Button
Appearance="Primary"
Command="{Binding ViewModel.RefreshCommand}"
@@ -61,21 +61,21 @@
<Border Grid.Row="1" Visibility="{Binding ViewModel.IsLoading, Converter={StaticResource BooleanToVisibilityConverter}}">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<ui:ProgressRing
+ Width="48"
Height="48"
- HorizontalAlignment="Center"
- IsIndeterminate="True"
Margin="0,0,0,16"
+ HorizontalAlignment="Center"
VerticalAlignment="Center"
- Width="48" />
+ IsIndeterminate="True" />
<ui:TextBlock
- FontTypography="BodyStrong"
HorizontalAlignment="Center"
+ FontTypography="BodyStrong"
Text="{ext:Loc StartupManager.Loading}" />
<ui:TextBlock
+ Margin="0,4,0,0"
+ HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Caption"
- HorizontalAlignment="Center"
- Margin="0,4,0,0"
Text="{ext:Loc StartupManager.Loading.Hint}" />
</StackPanel>
</Border>
@@ -99,26 +99,26 @@
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<ui:SymbolIcon
+ Margin="0,0,0,15"
+ HorizontalAlignment="Center"
FontSize="46"
Foreground="{DynamicResource SystemFillColorCriticalBrush}"
- HorizontalAlignment="Center"
- Margin="0,0,0,15"
Symbol="AppGeneric24" />
<ui:TextBlock
- FontTypography="Subtitle"
HorizontalAlignment="Center"
+ FontTypography="Subtitle"
Text="{ext:Loc StartupManager.Empty.Title}" />
<ui:TextBlock
+ Margin="0,0,0,10"
+ HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Body"
- HorizontalAlignment="Center"
- Margin="0,0,0,10"
Text="{ext:Loc StartupManager.Empty.Description}" />
<ui:Button
+ HorizontalAlignment="Center"
Appearance="Primary"
Command="{Binding ViewModel.RefreshCommand}"
Content="{ext:Loc StartupManager.Menu.Refresh}"
- HorizontalAlignment="Center"
Icon="{ui:SymbolIcon ArrowClockwise24,
FontSize=18}" />
</StackPanel>
@@ -126,32 +126,42 @@
<!-- Main Content -->
<Border Grid.Row="1" Visibility="{Binding ViewModel.HasData, Converter={StaticResource BooleanToVisibilityConverter}}">
- <ScrollViewer Margin="0,0,16,0">
- <StackPanel>
+ <ScrollViewer>
+ <StackPanel Margin="0,0,16,0">
<!-- ═══════════ Startup Apps Section ═══════════ -->
<ui:CardExpander
+ Margin="0,0,0,12"
Icon="{ui:SymbolIcon Apps24}"
IsExpanded="True"
- Margin="0,0,0,12"
Visibility="{Binding ViewModel.HasApps, Converter={StaticResource BooleanToVisibilityConverter}}">
<ui:CardExpander.Header>
- <StackPanel Orientation="Horizontal">
- <ui:TextBlock
- FontTypography="BodyStrong"
- Text="{ext:Loc StartupManager.Apps.Title}"
- VerticalAlignment="Center" />
- <Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="10"
- Margin="8,0,0,0"
- Padding="8,2"
- VerticalAlignment="Center">
+ <StackPanel>
+ <StackPanel Orientation="Horizontal">
<ui:TextBlock
- Appearance="Tertiary"
- FontTypography="Caption"
- Text="{Binding ViewModel.Apps.Count}"
- VerticalAlignment="Center" />
- </Border>
+ VerticalAlignment="Center"
+ FontTypography="BodyStrong"
+ Text="{ext:Loc StartupManager.Apps.Title}" />
+ <Border
+ Margin="8,0,0,0"
+ Padding="8,2"
+ VerticalAlignment="Center"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="10">
+
+ <ui:TextBlock
+ VerticalAlignment="Center"
+ Appearance="Tertiary"
+ FontTypography="Caption"
+ Text="{ext:Loc StartupManager.Apps.CountSuffix,
+ {Binding ViewModel.Apps.Count}}" />
+ </Border>
+ </StackPanel>
+ <ui:TextBlock
+ Margin="0,4,0,0"
+ Appearance="Secondary"
+ FontTypography="Caption"
+ Text="{ext:Loc StartupManager.Apps.Description}"
+ TextWrapping="Wrap" />
</StackPanel>
</ui:CardExpander.Header>
@@ -159,22 +169,22 @@
<!-- Apps Toolbar -->
<WrapPanel Margin="0,0,0,8" Orientation="Horizontal">
<ui:TextBox
- Icon="{ui:SymbolIcon Search24}"
- Margin="0,0,8,0"
MinWidth="200"
+ Margin="0,0,8,0"
+ VerticalAlignment="Center"
+ Icon="{ui:SymbolIcon Search24}"
PlaceholderText="{ext:Loc Common.Search.Placeholder}"
- Text="{Binding ViewModel.AppSearchText, UpdateSourceTrigger=PropertyChanged}"
- VerticalAlignment="Center" />
+ Text="{Binding ViewModel.AppSearchText, UpdateSourceTrigger=PropertyChanged}" />
<ComboBox
Margin="0,0,8,0"
+ VerticalAlignment="Center"
SelectedIndex="{Binding ViewModel.AppSortByIndex}"
- ToolTip="{ext:Loc Common.SortBy}"
- VerticalAlignment="Center">
+ ToolTip="{ext:Loc Common.SortBy}">
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
- HorizontalAlignment="Left"
Margin="0,0,6,0"
+ HorizontalAlignment="Left"
Symbol="TextSortAscending24" />
<TextBlock
Grid.Column="1"
@@ -183,10 +193,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
- HorizontalAlignment="Left"
Margin="0,0,6,0"
+ HorizontalAlignment="Left"
Symbol="ToggleRight24" />
<TextBlock
Grid.Column="1"
@@ -195,10 +205,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
- HorizontalAlignment="Left"
Margin="0,0,6,0"
+ HorizontalAlignment="Left"
Symbol="Folder24" />
<TextBlock
Grid.Column="1"
@@ -208,19 +218,19 @@
</ComboBoxItem>
</ComboBox>
<ui:Button
+ Padding="8"
+ VerticalAlignment="Center"
Appearance="Secondary"
Command="{Binding ViewModel.OpenStartupSettingsCommand}"
Icon="{ui:SymbolIcon Settings24,
FontSize=16}"
- Padding="8"
- ToolTip="{ext:Loc StartupManager.Menu.OpenSettings}"
- VerticalAlignment="Center" />
+ ToolTip="{ext:Loc StartupManager.Menu.OpenSettings}" />
</WrapPanel>
<!-- No search results (Apps) -->
<StackPanel
- HorizontalAlignment="Center"
Margin="0,32,0,32"
+ HorizontalAlignment="Center"
VerticalAlignment="Center">
<StackPanel.Visibility>
<MultiBinding Converter="{StaticResource EmptyWhileNotLoadingConverter}">
@@ -229,15 +239,15 @@
</MultiBinding>
</StackPanel.Visibility>
<ui:SymbolIcon
+ Margin="0,0,0,10"
+ HorizontalAlignment="Center"
FontSize="36"
Foreground="{DynamicResource SystemFillColorCriticalBrush}"
- HorizontalAlignment="Center"
- Margin="0,0,0,10"
Symbol="SearchInfo24" />
<ui:TextBlock
+ HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Body"
- HorizontalAlignment="Center"
Text="{ext:Loc Bloatware.Search.NoResults}" />
</StackPanel>
@@ -247,12 +257,12 @@
<DataTemplate DataType="{x:Type startupManager:StartupApp}">
<Grid>
<ui:CardAction
- Command="{Binding DataContext.ViewModel.OpenLocationCommand, RelativeSource={RelativeSource AncestorType=Page}}"
- CommandParameter="{Binding}"
- IsChevronVisible="False"
+ x:Name="ActionCard"
Margin="0,0,0,4"
Padding="12,10"
- x:Name="ActionCard">
+ Command="{Binding DataContext.ViewModel.OpenLocationCommand, RelativeSource={RelativeSource AncestorType=Page}}"
+ CommandParameter="{Binding}"
+ IsChevronVisible="False">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
@@ -261,48 +271,48 @@
</Grid.ColumnDefinitions>
<Image
Grid.Column="0"
+ Width="36"
Height="36"
Margin="0,0,12,0"
- Source="{Binding LogoImage}"
- Stretch="UniformToFill"
VerticalAlignment="Center"
- Width="36" />
+ Source="{Binding LogoImage}"
+ Stretch="UniformToFill" />
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<DockPanel LastChildFill="False">
<ui:TextBlock FontTypography="BodyStrong" Text="{Binding Name}" />
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="8,0,0,0"
Padding="6,1"
- VerticalAlignment="Center">
+ VerticalAlignment="Center"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<ui:TextBlock
+ VerticalAlignment="Center"
Appearance="Tertiary"
FontTypography="Caption"
- Text="{Binding LocationDisplay}"
- VerticalAlignment="Center" />
+ Text="{Binding LocationDisplay}" />
</Border>
</DockPanel>
<ui:TextBlock
+ Margin="0,2,0,0"
Appearance="Secondary"
FontTypography="Caption"
- Margin="0,2,0,0"
Text="{Binding Publisher}" />
<ui:TextBlock
+ Margin="0,2,0,0"
Appearance="Disabled"
FontTypography="Caption"
- Margin="0,2,0,0"
Text="{Binding Command}"
TextTrimming="CharacterEllipsis" />
</StackPanel>
<StackPanel Grid.Column="2" Orientation="Horizontal">
<ui:ToggleSwitch
+ Margin="0,0,16,0"
+ VerticalAlignment="Center"
Cursor="Hand"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
- Margin="0,0,16,0"
OffContent="{ext:Loc Common.Toggle.Off}"
- OnContent="{ext:Loc Common.Toggle.On}"
- VerticalAlignment="Center" />
+ OnContent="{ext:Loc Common.Toggle.On}" />
<ui:SymbolIcon FontSize="16" Symbol="Open24" />
</StackPanel>
</Grid>
@@ -316,28 +326,37 @@
<!-- ═══════════ Scheduled Tasks Section ═══════════ -->
<ui:CardExpander
+ Margin="0,0,0,12"
Icon="{ui:SymbolIcon CalculatorArrowClockwise24}"
IsExpanded="True"
- Margin="0,0,0,12"
Visibility="{Binding ViewModel.HasTasks, Converter={StaticResource BooleanToVisibilityConverter}}">
<ui:CardExpander.Header>
- <StackPanel Orientation="Horizontal">
- <ui:TextBlock
- FontTypography="BodyStrong"
- Text="{ext:Loc StartupManager.Tasks.Title}"
- VerticalAlignment="Center" />
- <Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="10"
- Margin="8,0,0,0"
- Padding="8,2"
- VerticalAlignment="Center">
+ <StackPanel>
+ <StackPanel Orientation="Horizontal">
<ui:TextBlock
- Appearance="Tertiary"
- FontTypography="Caption"
- Text="{Binding ViewModel.Tasks.Count}"
- VerticalAlignment="Center" />
- </Border>
+ VerticalAlignment="Center"
+ FontTypography="BodyStrong"
+ Text="{ext:Loc StartupManager.Tasks.Title}" />
+ <Border
+ Margin="8,0,0,0"
+ Padding="8,2"
+ VerticalAlignment="Center"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="10">
+ <ui:TextBlock
+ VerticalAlignment="Center"
+ Appearance="Tertiary"
+ FontTypography="Caption"
+ Text="{ext:Loc StartupManager.Tasks.CountSuffix,
+ {Binding ViewModel.Tasks.Count}}" />
+ </Border>
+ </StackPanel>
+ <ui:TextBlock
+ Margin="0,4,0,0"
+ Appearance="Secondary"
+ FontTypography="Caption"
+ Text="{ext:Loc StartupManager.Tasks.Description}"
+ TextWrapping="Wrap" />
</StackPanel>
</ui:CardExpander.Header>
@@ -345,22 +364,22 @@
<!-- Tasks Toolbar -->
<WrapPanel Margin="0,0,0,8" Orientation="Horizontal">
<ui:TextBox
- Icon="{ui:SymbolIcon Search24}"
- Margin="0,0,8,0"
MinWidth="200"
+ Margin="0,0,8,0"
+ VerticalAlignment="Center"
+ Icon="{ui:SymbolIcon Search24}"
PlaceholderText="{ext:Loc Common.Search.Placeholder}"
- Text="{Binding ViewModel.TaskSearchText, UpdateSourceTrigger=PropertyChanged}"
- VerticalAlignment="Center" />
+ Text="{Binding ViewModel.TaskSearchText, UpdateSourceTrigger=PropertyChanged}" />
<ComboBox
Margin="0,0,8,0"
+ VerticalAlignment="Center"
SelectedIndex="{Binding ViewModel.TaskSortByIndex}"
- ToolTip="{ext:Loc Common.SortBy}"
- VerticalAlignment="Center">
+ ToolTip="{ext:Loc Common.SortBy}">
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
- HorizontalAlignment="Left"
Margin="0,0,6,0"
+ HorizontalAlignment="Left"
Symbol="TextSortAscending24" />
<TextBlock
Grid.Column="1"
@@ -369,10 +388,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
- HorizontalAlignment="Left"
Margin="0,0,6,0"
+ HorizontalAlignment="Left"
Symbol="ToggleRight24" />
<TextBlock
Grid.Column="1"
@@ -381,10 +400,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
+ <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
<ui:SymbolIcon
- HorizontalAlignment="Left"
Margin="0,0,6,0"
+ HorizontalAlignment="Left"
Symbol="Folder24" />
<TextBlock
Grid.Column="1"
@@ -394,26 +413,26 @@
</ComboBoxItem>
</ComboBox>
<ui:ToggleSwitch
+ Margin="0,0,8,0"
+ VerticalAlignment="Center"
Cursor="Hand"
IsChecked="{Binding ViewModel.HideMicrosoftTasks, Mode=TwoWay}"
- Margin="0,0,8,0"
OffContent="{ext:Loc StartupManager.Tasks.HideMicrosoft}"
- OnContent="{ext:Loc StartupManager.Tasks.HideMicrosoft}"
- VerticalAlignment="Center" />
+ OnContent="{ext:Loc StartupManager.Tasks.HideMicrosoft}" />
<ui:Button
+ Padding="8"
+ VerticalAlignment="Center"
Appearance="Secondary"
Command="{Binding ViewModel.OpenTaskSchedulerCommand}"
Icon="{ui:SymbolIcon Settings24,
FontSize=16}"
- Padding="8"
- ToolTip="{ext:Loc ScheduledTasks.Menu.OpenSettings}"
- VerticalAlignment="Center" />
+ ToolTip="{ext:Loc ScheduledTasks.Menu.OpenSettings}" />
</WrapPanel>
<!-- No search results (Tasks) -->
<StackPanel
- HorizontalAlignment="Center"
Margin="0,32,0,32"
+ HorizontalAlignment="Center"
VerticalAlignment="Center">
<StackPanel.Visibility>
<MultiBinding Converter="{StaticResource EmptyWhileNotLoadingConverter}">
@@ -422,15 +441,15 @@
</MultiBinding>
</StackPanel.Visibility>
<ui:SymbolIcon
+ Margin="0,0,0,10"
+ HorizontalAlignment="Center"
FontSize="36"
Foreground="{DynamicResource SystemFillColorCriticalBrush}"
- HorizontalAlignment="Center"
- Margin="0,0,0,10"
Symbol="SearchInfo24" />
<ui:TextBlock
+ HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Body"
- HorizontalAlignment="Center"
Text="{ext:Loc Bloatware.Search.NoResults}" />
</StackPanel>
@@ -439,10 +458,10 @@
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type startupManager:StartupTask}">
<Border
- Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
- CornerRadius="6"
Margin="0,0,0,6"
- Padding="16,12">
+ Padding="16,12"
+ Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
+ CornerRadius="6">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
@@ -452,12 +471,12 @@
<Image
Grid.Column="0"
+ Width="36"
Height="36"
Margin="0,0,12,0"
- Source="{Binding LogoImage}"
- Stretch="UniformToFill"
VerticalAlignment="Center"
- Width="36" />
+ Source="{Binding LogoImage}"
+ Stretch="UniformToFill" />
<StackPanel
Grid.Column="1"
@@ -465,17 +484,17 @@
VerticalAlignment="Center">
<ui:TextBlock FontTypography="BodyStrong" Text="{Binding TaskName}" />
<ui:TextBlock
+ Margin="0,4,0,0"
Appearance="Secondary"
FontTypography="Caption"
- Margin="0,4,0,0"
Text="{Binding Description}"
TextWrapping="Wrap" />
<ui:TextBlock
+ Margin="0,2,0,0"
Appearance="Disabled"
FontTypography="Caption"
- Margin="0,2,0,0"
Text="{Binding TaskPath}" />
- <ItemsControl ItemsSource="{Binding TriggerTypes}" Margin="0,4,0,0">
+ <ItemsControl Margin="0,4,0,0" ItemsSource="{Binding TriggerTypes}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" />
@@ -484,53 +503,53 @@
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4"
Margin="0,0,4,2"
- Padding="6,2">
+ Padding="6,2"
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4">
<StackPanel Orientation="Horizontal">
<ui:SymbolIcon
+ Margin="0,0,4,0"
FontSize="15"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Margin="0,0,4,0"
Symbol="Timer24" />
<ui:TextBlock
+ VerticalAlignment="Center"
FontTypography="Caption"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Text="{Binding}"
- VerticalAlignment="Center" />
+ Text="{Binding}" />
</StackPanel>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<ui:TextBlock
+ Margin="0,2,0,0"
Appearance="Disabled"
FontTypography="Caption"
- Margin="0,2,0,0"
Text="{Binding ActionSummary}"
TextTrimming="CharacterEllipsis" />
</StackPanel>
<StackPanel
Grid.Column="2"
- Orientation="Horizontal"
- VerticalAlignment="Center">
+ VerticalAlignment="Center"
+ Orientation="Horizontal">
<ui:Button
+ Margin="0,0,4,0"
+ Padding="8"
Appearance="Transparent"
Command="{Binding DataContext.ViewModel.ViewTaskDetailsCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
Icon="{ui:SymbolIcon Info24,
FontSize=16}"
- Margin="0,0,4,0"
- Padding="8"
ToolTip="{ext:Loc ScheduledTasks.Action.Details}" />
<ui:ToggleSwitch
+ VerticalAlignment="Center"
Cursor="Hand"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
OffContent="{ext:Loc Common.Toggle.Off}"
- OnContent="{ext:Loc Common.Toggle.On}"
- VerticalAlignment="Center" />
+ OnContent="{ext:Loc Common.Toggle.On}" />
</StackPanel>
</Grid>
</Border>
diff --git a/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs
index 7e3bbda..dec0822 100644
--- a/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs
@@ -1,10 +1,10 @@
-using System.Collections.ObjectModel;
-using System.Diagnostics;
-using CommunityToolkit.Mvvm.ComponentModel;
+using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Microsoft.Extensions.Logging;
using optimizerDuck.Resources.Languages;
using optimizerDuck.Services;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
using Wpf.Ui;
using Wpf.Ui.Controls;
using CleanupItem = optimizerDuck.Domain.Optimizations.Models.Cleanup.CleanupItem;
@@ -75,7 +75,6 @@ public partial class DiskCleanupViewModel(
UpdateProperties();
}
- // Automatically start scanning
await ScanAsync();
CleanupItems =
diff --git a/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs
index 7bd9605..47beaad 100644
--- a/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs
@@ -1,8 +1,4 @@
-using System.Collections.ObjectModel;
-using System.Diagnostics;
-using System.Globalization;
-using System.Windows.Media;
-using CommunityToolkit.Mvvm.ComponentModel;
+using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
@@ -12,6 +8,10 @@ using optimizerDuck.Domain.UI;
using optimizerDuck.Resources.Languages;
using optimizerDuck.Services;
using optimizerDuck.Services.Managers;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Globalization;
+using System.Windows.Media;
using Wpf.Ui;
using Wpf.Ui.Appearance;
using Wpf.Ui.Controls;
@@ -260,7 +260,7 @@ public partial class SettingsViewModel(
{
if (!_isInitialized) return;
if (string.IsNullOrEmpty(value)) return;
- _ = configManager.SetAsync("app:language", value);
+ _ = configManager.SetAsync(x => x.App.Language, value);
if (value == Loc.CurrentCulture.Name) return;
contentDialogService.ShowAlertAsync(Translations.Settings_LanguageChanged_Title,
@@ -272,14 +272,14 @@ public partial class SettingsViewModel(
{
if (!_isInitialized) return;
ApplicationThemeManager.Apply(newValue, updateAccent: false);
- _ = configManager.SetAsync("app:theme", newValue.ToString());
+ _ = configManager.SetAsync(x => x.App.Theme, newValue);
}
partial void OnShellTimeoutMsChanged(int value)
{
if (!_isInitialized) return;
if (value <= 0) return;
- _ = configManager.SetAsync("optimize:shellTimeoutMs", value.ToString(CultureInfo.InvariantCulture));
+ _ = configManager.SetAsync(x => x.Optimize.ShellTimeoutMs, value);
}
#endregion Property Changed
diff --git a/optimizerDuck/UI/Windows/MainWindow.xaml.cs b/optimizerDuck/UI/Windows/MainWindow.xaml.cs
index 9a4bd71..0cc187f 100644
--- a/optimizerDuck/UI/Windows/MainWindow.xaml.cs
+++ b/optimizerDuck/UI/Windows/MainWindow.xaml.cs
@@ -1,17 +1,30 @@
-using System.Windows;
+using Microsoft.Extensions.Options;
using optimizerDuck.Domain.Abstractions;
+using optimizerDuck.Domain.Configuration;
+using optimizerDuck.Resources.Languages;
using optimizerDuck.Services;
+using optimizerDuck.Services.Managers;
+using optimizerDuck.UI.Dialogs;
using optimizerDuck.UI.Pages;
+using System.Windows;
using Wpf.Ui;
using Wpf.Ui.Abstractions;
+using Wpf.Ui.Controls;
namespace optimizerDuck.UI.Windows;
public partial class MainWindow : IWindow
{
- public MainWindow(INavigationService navigationService, IContentDialogService contentDialogService,
- INavigationViewPageProvider pageProvider, ISnackbarService snackbarService, FeatureRegistry featureRegistry)
+ private readonly IContentDialogService _contentDialogService;
+ private readonly IOptionsMonitor<AppSettings> _appOptionsMonitor;
+ private readonly ConfigManager _configManager;
+
+ public MainWindow(ConfigManager configManager, INavigationService navigationService, IContentDialogService contentDialogService,
+ INavigationViewPageProvider pageProvider, IOptionsMonitor<AppSettings> appOptionsMonitor, ISnackbarService snackbarService, FeatureRegistry featureRegistry)
{
+ _contentDialogService = contentDialogService;
+ _appOptionsMonitor = appOptionsMonitor;
+ _configManager = configManager;
InitializeComponent();
snackbarService.SetSnackbarPresenter(SnackbarPresenter);
@@ -26,9 +39,35 @@ public partial class MainWindow : IWindow
RootNavigation.Loaded += OnRootNavigationLoaded;
}
- private void OnRootNavigationLoaded(object sender, RoutedEventArgs e)
+ private async void OnRootNavigationLoaded(object sender, RoutedEventArgs e)
{
RootNavigation.Loaded -= OnRootNavigationLoaded;
+
+ if (!_appOptionsMonitor.CurrentValue.App.LegalAccepted)
+ {
+
+ var legalDialog = new LegalDialog();
+ var dialog = new ContentDialog
+ {
+ Title = Translations.LegalDialog_Title,
+ Content = legalDialog,
+ PrimaryButtonText = Translations.Button_Accept,
+ CloseButtonText = Translations.Button_Close,
+ DefaultButton = ContentDialogButton.Primary
+ };
+
+ var result = await _contentDialogService.ShowAsync(dialog, CancellationToken.None);
+ if (result == ContentDialogResult.Primary)
+ {
+ await _configManager.SetAsync(x => x.App.LegalAccepted, true);
+ }
+ else
+ {
+ Close();
+ return;
+ }
+ }
+
RootNavigation.Navigate(typeof(DashboardPage));
}
}
\ No newline at end of file
diff --git a/optimizerDuck/optimizerDuck.csproj b/optimizerDuck/optimizerDuck.csproj
index 804904b..d6e6f30 100644
--- a/optimizerDuck/optimizerDuck.csproj
+++ b/optimizerDuck/optimizerDuck.csproj
@@ -10,7 +10,7 @@
<Authors>fatDuck</Authors>
<ApplicationIcon>Logo.ico</ApplicationIcon>
<Company>fatDuck</Company>
- <FileVersion>2.8.0</FileVersion>
+ <FileVersion>2.9.0</FileVersion>
<Version>1.0.0</Version>
<Product>optimizerDuck</Product>
<Copyright>Copyright fatDuck 2026</Copyright>