Skip to content

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

feat: configure features

fatDuckb4458e10c462
diff --git a/README.md b/README.md
index edc36f0..dd34254 100644
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@ optimizerDuck currently supports the following languages:
- 🇺🇸 **English** (United States) - _Primary & recommended_
- 🇻🇳 **Vietnamese** (Tiếng Việt)
-- 🇹🇼 **Traditional Chinese** (正體中文) - contributed by [abc0922001](https://github.com/abc0922001)
+- 🇹🇼 **Traditional Chinese** (正體中文) - translation by [abc0922001](https://github.com/abc0922001)
> [!NOTE]
> - **English is the primary and recommended language**, as it provides the most accurate, complete, and stable descriptions across all features and optimizations.
diff --git a/optimizerDuck/Core/Features/Desktop.cs b/optimizerDuck/Core/Features/Desktop.cs
new file mode 100644
index 0000000..a4427df
--- /dev/null
+++ b/optimizerDuck/Core/Features/Desktop.cs
@@ -0,0 +1,93 @@
+using System.Collections.ObjectModel;
+using optimizerDuck.Core.Interfaces;
+using optimizerDuck.Core.Models.Attributes;
+using optimizerDuck.Core.Models.Features;
+using optimizerDuck.Core.Models.Optimization.Services;
+using optimizerDuck.Core.Models.UI;
+using optimizerDuck.Services.Managers;
+using optimizerDuck.Services.OptimizationServices;
+using optimizerDuck.UI.Views.Pages.Features;
+using Wpf.Ui.Controls;
+
+namespace optimizerDuck.Core.Features;
+
+[FeatureCategory(PageType = typeof(DesktopFeatureCategory))]
+public class Desktop : IFeatureCategory
+{
+ private enum Sections
+ {
+ Icons,
+ Behaviors
+ }
+
+ public string Name => Loc.Instance[$"Features.{nameof(Desktop)}.Name"];
+ public string Description => Loc.Instance[$"Features.{nameof(Desktop)}.Description"];
+ public SymbolRegular Icon { get; init; } = SymbolRegular.Desktop16;
+ public FeatureCategoryOrder Order { get; init; } = FeatureCategoryOrder.Desktop;
+ public ObservableCollection<IFeature> Features { get; init; } = [];
+
+ [Feature(Section = nameof(Sections.Icons), Icon = SymbolRegular.Laptop24)]
+ public class ShowThisPc : BaseFeature
+ {
+ protected override bool NeedsPostAction => true;
+
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel",
+ Name = "{20D04FE0-3AEA-1069-A2D8-08002B30309D}",
+ OnValue = 0,
+ OffValue = 1,
+ DefaultValue = 0
+ }
+ ];
+ }
+
+ [Feature(Section = nameof(Sections.Icons), Icon = SymbolRegular.Delete24)]
+ public class ShowRecycleBin : BaseFeature
+ {
+ protected override bool NeedsPostAction => true;
+
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel",
+ Name = "{645FF040-5081-101B-9F08-00AA002F954E}",
+ OnValue = 0,
+ OffValue = 1,
+ DefaultValue = 0
+ }
+ ];
+ }
+
+
+ [Feature(Section = nameof(Sections.Behaviors), Icon = SymbolRegular.ArrowForward24)]
+ public class RemoveShortcutArrow : BaseFeature
+ {
+ private const string Path = @"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons";
+
+ protected override bool NeedsPostAction => true;
+
+ public override Task<bool> GetStateAsync()
+ {
+ var value = RegistryService.Read<string>(new RegistryItem(Path, "29"));
+ return Task.FromResult(value?.ToString() == @"%windir%\System32\shell32.dll,-50");
+ }
+
+ public override async Task EnableAsync()
+ {
+ RegistryService.Write(new RegistryItem(Path, "29", @"%windir%\System32\shell32.dll,-50", Microsoft.Win32.RegistryValueKind.String));
+ if (NeedsPostAction)
+ await ExecutePostActionAsync();
+ }
+
+ public override async Task DisableAsync()
+ {
+ RegistryService.DeleteValue(new RegistryItem(Path, "29"));
+ if (NeedsPostAction)
+ await ExecutePostActionAsync();
+ }
+ }
+}
diff --git a/optimizerDuck/Core/Features/Preferences.cs b/optimizerDuck/Core/Features/Preferences.cs
index 7984b9c..d0a938a 100644
--- a/optimizerDuck/Core/Features/Preferences.cs
+++ b/optimizerDuck/Core/Features/Preferences.cs
@@ -30,6 +30,7 @@ public class Preferences : IFeatureCategory
[Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.TextAlignDistributedEvenly24)]
public class TaskbarAlignment : BaseFeature
{
+ protected override bool NeedsPostAction => true;
protected override IEnumerable<RegistryToggle> RegistryToggles =>
[
@@ -47,6 +48,7 @@ public class Preferences : IFeatureCategory
[Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.Grid24)]
public class TaskbarWidgets : BaseFeature
{
+ protected override bool NeedsPostAction => true;
protected override IEnumerable<RegistryToggle> RegistryToggles =>
[
@@ -80,6 +82,7 @@ public class Preferences : IFeatureCategory
[Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.DesktopMac24)]
public class TaskbarTaskViewButton : BaseFeature
{
+ protected override bool NeedsPostAction => true;
protected override IEnumerable<RegistryToggle> RegistryToggles =>
[
@@ -298,6 +301,40 @@ public class Preferences : IFeatureCategory
];
}
+ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.Folder24)]
+ public class LaunchToThisPc : BaseFeature
+ {
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
+ Name = "LaunchTo",
+ OnValue = 1,
+ OffValue = 2,
+ DefaultValue = 2
+ }
+ ];
+ }
+
+ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.Search24)]
+ public class DisableBingSearch : BaseFeature
+ {
+ protected override bool NeedsPostAction => true;
+
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKCU\Software\Policies\Microsoft\Windows\Explorer",
+ Name = "DisableSearchBoxSuggestions",
+ OnValue = 1,
+ OffValue = 0,
+ DefaultValue = 0
+ }
+ ];
+ }
+
[Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.CursorClick24)]
public class ClassicContextMenu : BaseFeature
{
diff --git a/optimizerDuck/Core/Features/SystemFeatures.cs b/optimizerDuck/Core/Features/SystemFeatures.cs
new file mode 100644
index 0000000..6e9c762
--- /dev/null
+++ b/optimizerDuck/Core/Features/SystemFeatures.cs
@@ -0,0 +1,51 @@
+using System.Collections.ObjectModel;
+using optimizerDuck.Core.Interfaces;
+using optimizerDuck.Core.Models.Attributes;
+using optimizerDuck.Core.Models.Features;
+using optimizerDuck.Core.Models.Optimization.Services;
+using optimizerDuck.Services.Managers;
+using optimizerDuck.Core.Models.UI;
+using optimizerDuck.UI.Views.Pages.Features;
+using Wpf.Ui.Controls;
+
+namespace optimizerDuck.Core.Features;
+
+[FeatureCategory(PageType = typeof(SystemFeatureCategory))]
+public class SystemFeatures : IFeatureCategory
+{
+ private enum Sections
+ {
+ Boot,
+ Input
+ }
+
+ public string Name => Loc.Instance[$"Features.{nameof(SystemFeatures)}.Name"];
+ public string Description => Loc.Instance[$"Features.{nameof(SystemFeatures)}.Description"];
+ public SymbolRegular Icon { get; init; } = SymbolRegular.Desktop16;
+ public FeatureCategoryOrder Order { get; init; } = FeatureCategoryOrder.System;
+ public ObservableCollection<IFeature> Features { get; init; } = [];
+
+ [Feature(Section = nameof(Sections.Input), Icon = SymbolRegular.NumberSymbol24)]
+ public class EnableNumLockOnBoot : BaseFeature
+ {
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKU\.DEFAULT\Control Panel\Keyboard",
+ Name = "InitialKeyboardIndicators",
+ OnValue = "2",
+ OffValue = "0",
+ DefaultValue = "0"
+ },
+ new()
+ {
+ Path = @"HKCU\\Control Panel\\Keyboard",
+ Name = "InitialKeyboardIndicators",
+ OnValue = "2",
+ OffValue = "0",
+ DefaultValue = "0"
+ }
+ ];
+ }
+}
diff --git a/optimizerDuck/Core/Models/Optimization/Services/RegistryItem.cs b/optimizerDuck/Core/Models/Optimization/Services/RegistryItem.cs
index 5d921a8..8d351bf 100644
--- a/optimizerDuck/Core/Models/Optimization/Services/RegistryItem.cs
+++ b/optimizerDuck/Core/Models/Optimization/Services/RegistryItem.cs
@@ -34,7 +34,7 @@ public record struct RegistryItem
/// <param name="name">The value name.</param>
/// <param name="value">The value data.</param>
/// <param name="kind">The value kind.</param>
- public RegistryItem(string path, string name, object value, RegistryValueKind kind)
+ public RegistryItem(string path, string? name, object value, RegistryValueKind kind)
{
Path = path;
Name = name;
diff --git a/optimizerDuck/Core/Models/UI/FeatureCategoryOrder.cs b/optimizerDuck/Core/Models/UI/FeatureCategoryOrder.cs
index 5bb04c6..5b4a3cb 100644
--- a/optimizerDuck/Core/Models/UI/FeatureCategoryOrder.cs
+++ b/optimizerDuck/Core/Models/UI/FeatureCategoryOrder.cs
@@ -3,6 +3,7 @@ namespace optimizerDuck.Core.Models.UI;
public enum FeatureCategoryOrder
{
System,
+ Desktop,
UserExperience,
Gaming
}
\ No newline at end of file
diff --git a/optimizerDuck/Core/Optimizers/PowerManagement.cs b/optimizerDuck/Core/Optimizers/PowerManagement.cs
index 485357a..004b212 100644
--- a/optimizerDuck/Core/Optimizers/PowerManagement.cs
+++ b/optimizerDuck/Core/Optimizers/PowerManagement.cs
@@ -28,12 +28,11 @@ public class PowerManagement : IOptimizationCategory
OptimizationContext context)
{
RegistryService.Write(
- new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\Power", "HibernateEnabled", 0),
- new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling",
- "HibernateEnabledDefault", 0),
- new RegistryItem(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings",
- "ShowHibernateOption", 0),
- new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power", "HiberbootEnabled", 0)
+ new RegistryItem(
+ @"HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power",
+ "HiberbootEnabled",
+ 0
+ )
);
ShellService.CMD("powercfg /h off", "powercfg /h on");
context.Logger.LogInformation("Disabled hibernate and fast startup");
diff --git a/optimizerDuck/Resources/Languages/Translations.Designer.cs b/optimizerDuck/Resources/Languages/Translations.Designer.cs
index 658c4cd..fee760e 100644
--- a/optimizerDuck/Resources/Languages/Translations.Designer.cs
+++ b/optimizerDuck/Resources/Languages/Translations.Designer.cs
@@ -1060,6 +1060,96 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Manage desktop icons and shortcut behaviors.
+ /// </summary>
+ internal static string Features_Desktop_Description {
+ get {
+ return ResourceManager.GetString("Features.Desktop.Description", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Desktop.
+ /// </summary>
+ internal static string Features_Desktop_Name {
+ get {
+ return ResourceManager.GetString("Features.Desktop.Name", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Hide the small arrow overlay on desktop shortcut icons.
+ /// </summary>
+ internal static string Features_Desktop_RemoveShortcutArrow_Description {
+ get {
+ return ResourceManager.GetString("Features.Desktop.RemoveShortcutArrow.Description", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Remove Shortcut Arrow.
+ /// </summary>
+ internal static string Features_Desktop_RemoveShortcutArrow_Name {
+ get {
+ return ResourceManager.GetString("Features.Desktop.RemoveShortcutArrow.Name", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Shortcut Behaviors.
+ /// </summary>
+ internal static string Features_Desktop_Section_Behaviors {
+ get {
+ return ResourceManager.GetString("Features.Desktop.Section.Behaviors", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Desktop Icons.
+ /// </summary>
+ internal static string Features_Desktop_Section_Icons {
+ get {
+ return ResourceManager.GetString("Features.Desktop.Section.Icons", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Display the Recycle Bin icon on your desktop.
+ /// </summary>
+ internal static string Features_Desktop_ShowRecycleBin_Description {
+ get {
+ return ResourceManager.GetString("Features.Desktop.ShowRecycleBin.Description", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Show Recycle Bin.
+ /// </summary>
+ internal static string Features_Desktop_ShowRecycleBin_Name {
+ get {
+ return ResourceManager.GetString("Features.Desktop.ShowRecycleBin.Name", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Display the This PC icon on your desktop.
+ /// </summary>
+ internal static string Features_Desktop_ShowThisPc_Description {
+ get {
+ return ResourceManager.GetString("Features.Desktop.ShowThisPc.Description", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Show &quot;This PC&quot;.
+ /// </summary>
+ internal static string Features_Desktop_ShowThisPc_Name {
+ get {
+ return ResourceManager.GetString("Features.Desktop.ShowThisPc.Name", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Controls automatic background game recording (Game DVR) and app capture..
/// </summary>
@@ -1276,6 +1366,24 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Remove Bing web results and suggestions from Windows Search.
+ /// </summary>
+ internal static string Features_Preferences_DisableBingSearch_Description {
+ get {
+ return ResourceManager.GetString("Features.Preferences.DisableBingSearch.Description", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Disable Bing Search.
+ /// </summary>
+ internal static string Features_Preferences_DisableBingSearch_Name {
+ get {
+ return ResourceManager.GetString("Features.Preferences.DisableBingSearch.Name", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Decreases spacing between items in File Explorer for a denser view..
/// </summary>
@@ -1330,6 +1438,24 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Open File Explorer to This PC instead of Quick Access.
+ /// </summary>
+ internal static string Features_Preferences_LaunchToThisPc_Description {
+ get {
+ return ResourceManager.GetString("Features.Preferences.LaunchToThisPc.Description", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Launch to &quot;This PC&quot;.
+ /// </summary>
+ internal static string Features_Preferences_LaunchToThisPc_Name {
+ get {
+ return ResourceManager.GetString("Features.Preferences.LaunchToThisPc.Name", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Controls the Meet Now (Skype) icon in the taskbar notification area..
/// </summary>
@@ -1636,6 +1762,60 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Optimize core system features and behaviors.
+ /// </summary>
+ internal static string Features_SystemFeatures_Description {
+ get {
+ return ResourceManager.GetString("Features.SystemFeatures.Description", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Automatically turns on NumLock at the Windows login screen.
+ /// </summary>
+ internal static string Features_SystemFeatures_EnableNumLockOnBoot_Description {
+ get {
+ return ResourceManager.GetString("Features.SystemFeatures.EnableNumLockOnBoot.Description", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Enable NumLock on Boot.
+ /// </summary>
+ internal static string Features_SystemFeatures_EnableNumLockOnBoot_Name {
+ get {
+ return ResourceManager.GetString("Features.SystemFeatures.EnableNumLockOnBoot.Name", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to System.
+ /// </summary>
+ internal static string Features_SystemFeatures_Name {
+ get {
+ return ResourceManager.GetString("Features.SystemFeatures.Name", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Boot Operations.
+ /// </summary>
+ internal static string Features_SystemFeatures_Section_Boot {
+ get {
+ return ResourceManager.GetString("Features.SystemFeatures.Section.Boot", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Input Settings.
+ /// </summary>
+ internal static string Features_SystemFeatures_Section_Input {
+ get {
+ return ResourceManager.GetString("Features.SystemFeatures.Section.Input", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Features.
/// </summary>
diff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resx
index 39194f0..08d358c 100644
--- a/optimizerDuck/Resources/Languages/Translations.resx
+++ b/optimizerDuck/Resources/Languages/Translations.resx
@@ -1546,4 +1546,64 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<data name="Features.Title" xml:space="preserve">
<value>Features</value>
</data>
+ <data name="Features.SystemFeatures.Name" xml:space="preserve">
+ <value>System</value>
+ </data>
+ <data name="Features.SystemFeatures.Description" xml:space="preserve">
+ <value>Optimize core system features and behaviors</value>
+ </data>
+ <data name="Features.SystemFeatures.Section.Boot" xml:space="preserve">
+ <value>Boot Operations</value>
+ </data>
+ <data name="Features.SystemFeatures.Section.Input" xml:space="preserve">
+ <value>Input Settings</value>
+ </data>
+ <data name="Features.SystemFeatures.EnableNumLockOnBoot.Name" xml:space="preserve">
+ <value>Enable NumLock on Boot</value>
+ </data>
+ <data name="Features.SystemFeatures.EnableNumLockOnBoot.Description" xml:space="preserve">
+ <value>Automatically turns on NumLock at the Windows login screen</value>
+ </data>
+ <data name="Features.Desktop.Name" xml:space="preserve">
+ <value>Desktop</value>
+ </data>
+ <data name="Features.Desktop.Description" xml:space="preserve">
+ <value>Manage desktop icons and shortcut behaviors</value>
+ </data>
+ <data name="Features.Desktop.Section.Icons" xml:space="preserve">
+ <value>Desktop Icons</value>
+ </data>
+ <data name="Features.Desktop.Section.Behaviors" xml:space="preserve">
+ <value>Shortcut Behaviors</value>
+ </data>
+ <data name="Features.Desktop.ShowThisPc.Name" xml:space="preserve">
+ <value>Show "This PC"</value>
+ </data>
+ <data name="Features.Desktop.ShowThisPc.Description" xml:space="preserve">
+ <value>Display the This PC icon on your desktop</value>
+ </data>
+ <data name="Features.Desktop.ShowRecycleBin.Name" xml:space="preserve">
+ <value>Show Recycle Bin</value>
+ </data>
+ <data name="Features.Desktop.ShowRecycleBin.Description" xml:space="preserve">
+ <value>Display the Recycle Bin icon on your desktop</value>
+ </data>
+ <data name="Features.Desktop.RemoveShortcutArrow.Name" xml:space="preserve">
+ <value>Remove Shortcut Arrow</value>
+ </data>
+ <data name="Features.Desktop.RemoveShortcutArrow.Description" xml:space="preserve">
+ <value>Hide the small arrow overlay on desktop shortcut icons</value>
+ </data>
+ <data name="Features.Preferences.LaunchToThisPc.Name" xml:space="preserve">
+ <value>Launch to "This PC"</value>
+ </data>
+ <data name="Features.Preferences.LaunchToThisPc.Description" xml:space="preserve">
+ <value>Open File Explorer to This PC instead of Quick Access</value>
+ </data>
+ <data name="Features.Preferences.DisableBingSearch.Name" xml:space="preserve">
+ <value>Disable Bing Search</value>
+ </data>
+ <data name="Features.Preferences.DisableBingSearch.Description" xml:space="preserve">
+ <value>Remove Bing web results and suggestions from Windows Search</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 85cb9b5..d459a9e 100644
--- a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
+++ b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
@@ -1538,4 +1538,64 @@ 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.Title" xml:space="preserve">
<value>Tính năng</value>
</data>
+ <data name="Features.SystemFeatures.Name" xml:space="preserve">
+ <value>Hệ thống</value>
+ </data>
+ <data name="Features.SystemFeatures.Description" xml:space="preserve">
+ <value>Tối ưu hóa các tính năng và hoạt động cốt lõi của hệ thống</value>
+ </data>
+ <data name="Features.SystemFeatures.Section.Boot" xml:space="preserve">
+ <value>Khởi động</value>
+ </data>
+ <data name="Features.SystemFeatures.Section.Input" xml:space="preserve">
+ <value>Đầu vào</value>
+ </data>
+ <data name="Features.SystemFeatures.EnableNumLockOnBoot.Name" xml:space="preserve">
+ <value>Bật NumLock khi khởi động</value>
+ </data>
+ <data name="Features.SystemFeatures.EnableNumLockOnBoot.Description" xml:space="preserve">
+ <value>Tự động bật NumLock ở màn hình đăng nhập Windows</value>
+ </data>
+ <data name="Features.Desktop.Name" xml:space="preserve">
+ <value>Màn hình chính</value>
+ </data>
+ <data name="Features.Desktop.Description" xml:space="preserve">
+ <value>Quản lý biểu tượng và hành vi lối tắt trên Desktop</value>
+ </data>
+ <data name="Features.Desktop.Section.Icons" xml:space="preserve">
+ <value>Biểu tượng Desktop</value>
+ </data>
+ <data name="Features.Desktop.Section.Behaviors" xml:space="preserve">
+ <value>Hành vi lối tắt</value>
+ </data>
+ <data name="Features.Desktop.ShowThisPc.Name" xml:space="preserve">
+ <value>Hiển thị "This PC"</value>
+ </data>
+ <data name="Features.Desktop.ShowThisPc.Description" xml:space="preserve">
+ <value>Hiển thị biểu tượng This PC trên màn hình Desktop của bạn</value>
+ </data>
+ <data name="Features.Desktop.ShowRecycleBin.Name" xml:space="preserve">
+ <value>Hiển thị Thùng rác (Recycle Bin)</value>
+ </data>
+ <data name="Features.Desktop.ShowRecycleBin.Description" xml:space="preserve">
+ <value>Hiển thị biểu tượng Thùng rác trên màn hình Desktop của bạn</value>
+ </data>
+ <data name="Features.Desktop.RemoveShortcutArrow.Name" xml:space="preserve">
+ <value>Xóa mũi tên lối tắt</value>
+ </data>
+ <data name="Features.Desktop.RemoveShortcutArrow.Description" xml:space="preserve">
+ <value>Ẩn biểu tượng mũi tên nhỏ trên các lối tắt Desktop</value>
+ </data>
+ <data name="Features.Preferences.LaunchToThisPc.Name" xml:space="preserve">
+ <value>Mở mặc định vào "This PC"</value>
+ </data>
+ <data name="Features.Preferences.LaunchToThisPc.Description" xml:space="preserve">
+ <value>Mở File Explorer thẳng vào This PC thay vì Quick Access</value>
+ </data>
+ <data name="Features.Preferences.DisableBingSearch.Name" xml:space="preserve">
+ <value>Tắt Tìm kiếm Bing</value>
+ </data>
+ <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>
\ No newline at end of file
diff --git a/optimizerDuck/UI/ViewModels/Pages/FeatureCategoryViewModel.cs b/optimizerDuck/UI/ViewModels/Features/FeatureCategoryViewModel.cs
similarity index 100%
rename from optimizerDuck/UI/ViewModels/Pages/FeatureCategoryViewModel.cs
rename to optimizerDuck/UI/ViewModels/Features/FeatureCategoryViewModel.cs
diff --git a/optimizerDuck/UI/Views/Pages/Features/FeatureCategoryPages.cs b/optimizerDuck/UI/Views/Pages/Features/FeatureCategoryPages.cs
index 451bac5..5d82e84 100644
--- a/optimizerDuck/UI/Views/Pages/Features/FeatureCategoryPages.cs
+++ b/optimizerDuck/UI/Views/Pages/Features/FeatureCategoryPages.cs
@@ -24,4 +24,12 @@ public sealed class GamingFeatureCategory : FeatureCategoryPage
{
InitializeComponent();
}
+}
+
+public sealed class DesktopFeatureCategory : FeatureCategoryPage
+{
+ public DesktopFeatureCategory(FeatureCategoryViewModel viewModel) : base(viewModel)
+ {
+ InitializeComponent();
+ }
}
\ No newline at end of file
diff --git a/optimizerDuck/UI/Views/Windows/MainWindow.xaml b/optimizerDuck/UI/Views/Windows/MainWindow.xaml
index d8ffe66..141f48b 100644
--- a/optimizerDuck/UI/Views/Windows/MainWindow.xaml
+++ b/optimizerDuck/UI/Views/Windows/MainWindow.xaml
@@ -51,8 +51,7 @@
<ui:NavigationViewItem
x:Name="FeaturesMenuItem"
Content="{extensions:Loc Sidebar.Features}"
- Icon="{ui:SymbolIcon ToggleLeft24}"
- TargetPageType="{x:Type pages:FeaturesPage}" />
+ Icon="{ui:SymbolIcon ToggleLeft24}" />
<controls:FilledNavigationViewItem
Content="{extensions:Loc Sidebar.Bloatware}"