Free, open-source Windows optimization tool for performance, privacy, and simplicity.
C# csharpdebloatdotnetgamingopen-sourceoptimizationoptimizeroptimizerduckperformanceprivacytweakertweakswindowswinui
feat: adding features to Features/
itsfatduck79c96dfad15c
diff --git a/optimizerDuck.Test/Services/OptimizationServices/RegistryServiceTests.cs b/optimizerDuck.Test/Services/OptimizationServices/RegistryServiceTests.csindex 84a65d2..303b7f0 100644--- a/optimizerDuck.Test/Services/OptimizationServices/RegistryServiceTests.cs+++ b/optimizerDuck.Test/Services/OptimizationServices/RegistryServiceTests.cs@@ -1,17 +1,67 @@+using System;+using System.Linq;+using System.Threading.Tasks;+using Microsoft.Extensions.Logging.Abstractions;+using Microsoft.Win32;+using optimizerDuck.Core.Models.Execution;+using optimizerDuck.Core.Interfaces;+using optimizerDuck.Core.Models.Optimization;using optimizerDuck.Core.Models.Optimization.Services;+using optimizerDuck.Core.Models.UI;using optimizerDuck.Services.OptimizationServices;+using Xunit;namespace optimizerDuck.Test.Services.OptimizationServices;-public class RegistryServiceTests+public class RegistryServiceTests : IDisposable{+ private const string BaseTestKey = @"HKCU\Software\TestOptimizerDuck";+ private readonly ExecutionScope _scope;++ private class DummyOptimization : IOptimization+ {+ public Guid Id { get; } = Guid.NewGuid();+ public OptimizationRisk Risk => OptimizationRisk.Safe;+ public string OptimizationKey => "TestOpt";+ public string Name => "Test";+ public string ShortDescription => "";+ public OptimizationState State { get; set; } = new();+ public Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress, OptimizationContext context) => Task.FromResult(ApplyResult.True());+ }++ public RegistryServiceTests()+ {+ // Setup execution scope to capture revert steps and logs+ _scope = ExecutionScope.Begin(new DummyOptimization(), NullLogger.Instance);++ // Ensure clean state+ CleanupTestKey();+ }++ public void Dispose()+ {+ CleanupTestKey();+ _scope.Dispose();+ }++ private static void CleanupTestKey()+ {+ try+ {+ using var hkcu = Registry.CurrentUser;+ hkcu.DeleteSubKeyTree(@"Software\TestOptimizerDuck", false);+ }+ catch+ {+ // Ignore if it doesn't exist+ }+ }+[Fact]public void Read_WithInvalidRoot_ReturnsDefault(){var item = new RegistryItem("BADROOT\\SomePath", "ValueName");-var result = RegistryService.Read<string>(item);-Assert.Null(result);}@@ -19,19 +69,103 @@ public class RegistryServiceTestspublic void DeleteValue_WithInvalidRoot_ReturnsFalse(){var item = new RegistryItem("BADROOT\\SomePath", "ValueName");-var result = RegistryService.DeleteValue(item);-Assert.False(result);}[Fact]public void Write_WithNullValue_ReturnsFalse(){- var item = new RegistryItem("HKCU\\Software\\optimizerDuck.Test", "TestValue");-+ var item = new RegistryItem(BaseTestKey, "TestValue");var result = RegistryService.Write(item);-Assert.False(result);}++ [Fact]+ public async Task DeleteValue_RestorePreviousValue_OnRevert()+ {+ var key = $@"{BaseTestKey}\DeleteValueTest";++ RegistryService.Write(new RegistryItem(key, "A", "Hello"));+ RegistryService.DeleteValue(new RegistryItem(key, "A"));++ var step = _scope.ExecutedSteps.Last();++ await step.RevertStep!.ExecuteAsync();++ var val = RegistryService.Read<string>(new RegistryItem(key, "A"));+ Assert.Equal("Hello", val);+ }++ [Fact]+ public async Task DeleteSubKeyTree_CreatesRecursiveBackupAndRestoresCorrectly()+ {+ // 1. Setup a complex tree structure+ // A+ // |- Value1: "Data1"+ // |- Value2 (Default): "DefaultData"+ // |- B+ // |- Value3: 42 (DWORD)+ // |- C+ var keyPathA = $@"{BaseTestKey}\A";+ var keyPathB = $@"{keyPathA}\B";+ var keyPathC = $@"{keyPathB}\C";++ Assert.True(RegistryService.Write(new RegistryItem(keyPathA, "Value1", "Data1")));+ Assert.True(RegistryService.Write(new RegistryItem(keyPathA, null, "DefaultData")));+ Assert.True(RegistryService.Write(new RegistryItem(keyPathB, "Value3", 42, RegistryValueKind.DWord)));+ Assert.True(RegistryService.CreateSubKey(new RegistryItem(keyPathC)));++ // 2. Perform the deletion of tree A+ Assert.True(RegistryService.DeleteSubKeyTree(new RegistryItem(keyPathA)));++ // Verify keys are gone+ Assert.False(RegistryService.KeyExists(new RegistryItem(keyPathA)));++ // 3. Obtain the revert step generated out of the deleted tree+ var deleteStep = _scope.ExecutedSteps.LastOrDefault(s => s.Name == "Registry" && s.RevertStep != null);+ Assert.NotNull(deleteStep);++ var revertStep = deleteStep.RevertStep;+ Assert.NotNull(revertStep);+ Assert.Equal("Registry", revertStep.Type);++ // 4. Act: Execute the Revert Step+ Assert.True(await revertStep.ExecuteAsync());++ // 5. Assert: Verify the tree structure is perfectly restored+ Assert.True(RegistryService.KeyExists(new RegistryItem(keyPathC))); // C exists, implies A and B exist++ // Check values+ var value1 = RegistryService.Read<string>(new RegistryItem(keyPathA, "Value1"));+ Assert.Equal("Data1", value1);++ var defaultVal = RegistryService.Read<string>(new RegistryItem(keyPathA, null));+ Assert.Equal("DefaultData", defaultVal);++ var value3 = RegistryService.Read<int>(new RegistryItem(keyPathB, "Value3"));+ Assert.Equal(42, value3);+ }++ [Fact]+ public async Task CreateSubKey_TracksCreatedKeysAndRemovesIfEmptyOnRevert()+ {+ var keyPathA = $@"{BaseTestKey}\CreateTest_A";+ var keyPathB = $@"{keyPathA}\B";++ // Create the deep subkey+ Assert.True(RegistryService.CreateSubKey(new RegistryItem(keyPathB)));+ Assert.True(RegistryService.KeyExists(new RegistryItem(keyPathB)));++ // Obtain revert step+ var createStep = _scope.ExecutedSteps.LastOrDefault(s => s.Name == "Registry" && s.RevertStep != null);+ Assert.NotNull(createStep);++ // Execute revert+ Assert.True(await createStep.RevertStep!.ExecuteAsync());++ // Verify that B and A were cleaned up since they were empty+ Assert.False(RegistryService.KeyExists(new RegistryItem(keyPathB)));+ Assert.False(RegistryService.KeyExists(new RegistryItem(keyPathA)));+ }}\ No newline at end of filediff --git a/optimizerDuck/Core/Features/Preferences.cs b/optimizerDuck/Core/Features/Preferences.csnew file mode 100644index 0000000..bf07077--- /dev/null+++ b/optimizerDuck/Core/Features/Preferences.cs@@ -0,0 +1,313 @@+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(PreferencesFeatureCategory))]+public class Preferences : IFeatureCategory+{+ private enum Sections+ {+ Taskbar,+ Appearance,+ Explorer+ }++ public string Name => Loc.Instance[$"Features.{nameof(Preferences)}.Name"];+ public string Description => Loc.Instance[$"Features.{nameof(Preferences)}.Description"];+ public SymbolRegular Icon { get; init; } = SymbolRegular.Color24;+ public FeatureCategoryOrder Order { get; init; } = FeatureCategoryOrder.UserExperience;+ public ObservableCollection<IFeature> Features { get; init; } = [];++ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.News24)]+ public class TaskbarNewsAndInterests : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [+ new()+ {+ Path = @"HKLM\SOFTWARE\Policies\Microsoft\Dsh",+ Name = "AllowNewsAndInterests",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds",+ Name = "EnableFeeds",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ }+ ];+ }++ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.LayoutCellFour24)]+ public class TaskbarExtraButtons : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ Name = "TaskbarMn",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ Name = "ShowTaskViewButton",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ }+ ];+ }++ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.Search24)]+ public class TaskbarSearchAndBing : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Search",+ Name = "SearchboxTaskbarMode",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Search",+ Name = "BingSearchEnabled",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ }+ ];+ }++ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.People24)]+ public class MeetNowAndPeople : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer",+ Name = "HideSCAMeetNow",+ OnValue = 0,+ OffValue = 1,+ DefaultValue = 0+ },+ new()+ {+ Path = @"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People",+ Name = "PeopleBand",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ }+ ];+ }++ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.WindowConsole20)]+ public class TaskbarEndTask : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings",+ Name = "TaskbarEndTask",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 0+ }+ ];+ }++ [Feature(Section = nameof(Sections.Appearance), Icon = SymbolRegular.DarkTheme24)]+ public class DarkMode : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [+ new()+ {+ Path = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize",+ Name = "AppsUseLightTheme",+ OnValue = 0,+ OffValue = 1,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize",+ Name = "SystemUsesLightTheme",+ OnValue = 0,+ OffValue = 1,+ DefaultValue = 1+ }+ ];+ }++ [Feature(Section = nameof(Sections.Appearance), Icon = SymbolRegular.EyeOff24)]+ public class VisualEffects : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ Name = "TaskbarAnimations",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ Name = "ListviewShadow",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize",+ Name = "EnableTransparency",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\DWM",+ Name = "EnableAeroPeek",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ }+ ];+ }++ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.AlertOff24)]+ public class ExplorerAndSystemNotifications : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ Name = "ShowSyncProviderNotifications",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",+ Name = "SystemPaneSuggestionsEnabled",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications",+ Name = "ToastEnabled",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications",+ Name = "LockScreenToastEnabled",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 1+ }+ ];+ }++ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.DocumentText24)]+ public class HiddenFilesAndExtensions : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ Name = "HideFileExt",+ OnValue = 0,+ OffValue = 1,+ DefaultValue = 1+ },+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ Name = "Hidden",+ OnValue = 1,+ OffValue = 2,+ DefaultValue = 2+ }+ ];+ }++ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.Clock24)]+ public class ShowSecondsInSystemClock : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [+ new()+ {+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ Name = "ShowSecondsInSystemClock",+ OnValue = 1,+ OffValue = 0,+ DefaultValue = 0+ }+ ];+ }++ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.CursorClick24)]+ public class ClassicContextMenu : BaseFeature+ {+ private const string BasePath =+ @"HKCU\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}";++ private const string InprocPath =+ BasePath + @"\InprocServer32";++ public override Task<bool> GetStateAsync()+ {+ var exists = RegistryService.KeyExists(new RegistryItem(InprocPath));+ return Task.FromResult(exists);+ }++ public override Task EnableAsync()+ {+ RegistryService.CreateSubKey(new RegistryItem(InprocPath));+ return Task.CompletedTask;+ }++ public override Task DisableAsync()+ {+ RegistryService.DeleteSubKeyTree(new RegistryItem(BasePath));+ return Task.CompletedTask;+ }+ }+}\ No newline at end of filediff --git a/optimizerDuck/Core/Features/System.cs b/optimizerDuck/Core/Features/System.csdeleted file mode 100644index 23e63fb..0000000--- a/optimizerDuck/Core/Features/System.cs+++ /dev/null@@ -1,42 +0,0 @@-using System.Collections.ObjectModel;-using optimizerDuck.Core.Interfaces;-using optimizerDuck.Core.Models.Attributes;-using optimizerDuck.Core.Models.Features;-using optimizerDuck.Core.Models.UI;-using optimizerDuck.Services.Managers;-using optimizerDuck.UI.Views.Pages.Features;-using Wpf.Ui.Controls;--namespace optimizerDuck.Core.Features;--[FeatureCategory(PageType = typeof(SystemFeatureCategory))]-public class System : IFeatureCategory-{- private enum Sections- {- Storage- }-- public string Name => Loc.Instance[$"Features.{nameof(System)}"];- public string Description => Loc.Instance[$"Features.{nameof(System)}.Description"];- public SymbolRegular Icon { get; init; } = SymbolRegular.Desktop24;- public FeatureCategoryOrder Order { get; init; } = FeatureCategoryOrder.System;- public ObservableCollection<IFeature> Features { get; init; } = [];--- [Feature(Section = nameof(Sections.Storage), Icon = SymbolRegular.HardDrive20)]- public class StorageSense : BaseFeature- {- protected override IEnumerable<RegistryToggle> RegistryToggles =>- [- new()- {- Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\StorageSense",- Name = "StorageSenseStatus",- OnValue = 0,- OffValue = 1,- DefaultValue = 1- }- ];- }-}\ No newline at end of filediff --git a/optimizerDuck/Core/Features/UserExperience.cs b/optimizerDuck/Core/Features/UserExperience.csdeleted file mode 100644index 4370d6b..0000000--- a/optimizerDuck/Core/Features/UserExperience.cs+++ /dev/null@@ -1,105 +0,0 @@-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(UserExperienceFeatureCategory))]-public class UserExperience : IFeatureCategory-{- private enum Sections- {- Taskbar,- Appearance,- Explorer- }-- public string Name => Loc.Instance[$"ToggleFeature.{nameof(UserExperience)}"];- public string Description => Loc.Instance[$"ToggleFeature.{nameof(UserExperience)}.Description"];- public SymbolRegular Icon { get; init; } = SymbolRegular.Color24;- public FeatureCategoryOrder Order { get; init; } = FeatureCategoryOrder.UserExperience;- public ObservableCollection<IFeature> Features { get; init; } = [];-- [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.News24)]- public class TaskbarNewsAndInterests : BaseFeature- {- protected override IEnumerable<RegistryToggle> RegistryToggles =>- [- new()- {- Path = @"HKLM\SOFTWARE\Policies\Microsoft\Dsh",- Name = "AllowNewsAndInterests",- OnValue = 0,- OffValue = 1,- DefaultValue = 1- }- ];- }-- [Feature(Section = nameof(Sections.Appearance), Icon = SymbolRegular.DarkTheme24)]- public class DarkMode : BaseFeature- {- protected override IEnumerable<RegistryToggle> RegistryToggles =>- [- new()- {- Path = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize",- Name = "AppsUseLightTheme",- OnValue = 0,- OffValue = 1,- DefaultValue = 1- }- ];- }-- [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.Clock24)]- public class ShowSecondsInSystemClock : BaseFeature- {- protected override IEnumerable<RegistryToggle> RegistryToggles =>- [- new()- {- Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",- Name = "ShowSecondsInSystemClock",- OnValue = 1,- OffValue = 0,- DefaultValue = 0- }- ];- }-- [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.CursorClick24)]- public class ClassicContextMenu : BaseFeature- {- private const string BasePath =- @"HKCU\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}";-- private const string InprocPath =- BasePath + @"\InprocServer32";-- public override Task<bool> GetStateAsync()- {- var exists = RegistryService.KeyExists(new RegistryItem(InprocPath));- return Task.FromResult(exists);- }-- public override Task EnableAsync()- {- RegistryService.CreateSubKey(new RegistryItem(InprocPath));- return Task.CompletedTask;- }-- public override Task DisableAsync()- {- RegistryService.DeleteSubKeyTree(new RegistryItem(BasePath));- return Task.CompletedTask;- }- }-}\ No newline at end of filediff --git a/optimizerDuck/Core/Models/UI/FeatureCategoryOrder.cs b/optimizerDuck/Core/Models/UI/FeatureCategoryOrder.csindex 43ca57a..5bb04c6 100644--- a/optimizerDuck/Core/Models/UI/FeatureCategoryOrder.cs+++ b/optimizerDuck/Core/Models/UI/FeatureCategoryOrder.cs@@ -3,5 +3,6 @@ namespace optimizerDuck.Core.Models.UI;public enum FeatureCategoryOrder{System,- UserExperience+ UserExperience,+ Gaming}\ No newline at end of filediff --git a/optimizerDuck/Core/Optimizers/Gpu.cs b/optimizerDuck/Core/Optimizers/Gpu.csindex 91b6df8..6bb8eef 100644--- a/optimizerDuck/Core/Optimizers/Gpu.cs+++ b/optimizerDuck/Core/Optimizers/Gpu.cs@@ -263,21 +263,4 @@ public class Gpu : IOptimizationCategory];}}-- [Optimization(- Id = "754B65CB-3A72-462F-9D33-2383F98F6B67",- Risk = OptimizationRisk.Moderate,- Tags = OptimizationTags.Performance | OptimizationTags.Latency)]- public class EnableHardwareAcceleratedGpuScheduling : BaseOptimization- {- public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,- OptimizationContext context)- {- RegistryService.Write(- new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers", "HwSchMode", 2)- );- context.Logger.LogInformation("Enabled Hardware-Accelerated GPU Scheduling");- return Task.FromResult(ApplyResult.True());- }- }}\ No newline at end of filediff --git a/optimizerDuck/Core/Optimizers/Performance.cs b/optimizerDuck/Core/Optimizers/Performance.csindex 6b86dff..70909d1 100644--- a/optimizerDuck/Core/Optimizers/Performance.cs+++ b/optimizerDuck/Core/Optimizers/Performance.cs@@ -154,87 +154,6 @@ public class Performance : IOptimizationCategory}}- [Optimization(- Id = "70D84D83-01DB-455A-8004-D80BC372094C",- Risk = OptimizationRisk.Moderate,- Tags = OptimizationTags.System | OptimizationTags.Performance | OptimizationTags.Latency)]- public class DisableGameBar : BaseOptimization- {- public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,- OptimizationContext context)- {- RegistryService.Write(- new RegistryItem(@"HKCU\System\GameConfigStore", "GameBarEnabled", 0),- new RegistryItem(@"HKCU\Software\Microsoft\GameBar", "ShowStartupPanel", 0),- new RegistryItem(@"HKCU\Software\Microsoft\GameBar", "UseNexusForGameBarEnabled", 0),- new RegistryItem(@"HKCU\Software\Microsoft\GameBar", "GamePanelStartupTipIndex", 0)- );- context.Logger.LogInformation("Disabled Xbox Game Bar");- return Task.FromResult(ApplyResult.True());- }- }-- [Optimization(- Id = "B453F151-7408-49FD-8898-F810E7E45902",- Risk = OptimizationRisk.Safe,- Tags = OptimizationTags.System | OptimizationTags.Performance | OptimizationTags.Latency |- OptimizationTags.Power)]- public class EnableGameMode : BaseOptimization- {- public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,- OptimizationContext context)- {- RegistryService.Write(- new RegistryItem(@"HKCU\Software\Microsoft\GameBar", "AllowAutoGameMode", 1),- new RegistryItem(@"HKCU\Software\Microsoft\GameBar", "AutoGameModeEnabled", 1)- );- context.Logger.LogInformation("Enabled Windows Game Mode");- return Task.FromResult(ApplyResult.True());- }- }-- [Optimization(- Id = "E6DBF550-0191-49D2-AEED-3F80A11592EE",- Risk = OptimizationRisk.Moderate,- Tags = OptimizationTags.System | OptimizationTags.Performance | OptimizationTags.Latency |- OptimizationTags.Power)]- public class DisableGameDVR : BaseOptimization- {- public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,- OptimizationContext context)- {- RegistryService.Write(- new RegistryItem(@"HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR", "AppCaptureEnabled", 0),- new RegistryItem(@"HKCU\System\GameConfigStore", "GameDVR_Enabled", 0),- new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR", "AllowGameDVR", 0),- new RegistryItem(@"HKLM\SOFTWARE\Microsoft\PolicyManager\default\ApplicationManagement\AllowGameDVR",- "value", 0)- );- context.Logger.LogInformation("Disabled Game DVR recording");- return Task.FromResult(ApplyResult.True());- }- }-- [Optimization(- Id = "7D386B99-CDAD-42C9-924E-84307AA683AD",- Risk = OptimizationRisk.Safe,- Tags = OptimizationTags.Latency)]- public class DisableMouseAcceleration : BaseOptimization- {- public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,- OptimizationContext context)- {- RegistryService.Write(- new RegistryItem(@"HKCU\Control Panel\Mouse", "MouseSpeed", "0"),- new RegistryItem(@"HKCU\Control Panel\Mouse", "MouseThreshold1", "0"),- new RegistryItem(@"HKCU\Control Panel\Mouse", "MouseThreshold2", "0"),- new RegistryItem(@"HKCU\Control Panel\Mouse", "MouseSensitivity", "10")- );- context.Logger.LogInformation("Disabled mouse acceleration");- return Task.FromResult(ApplyResult.True());- }- }-[Optimization(Id = "613FE85C-770D-441C-B97A-147B89B99028",Risk = OptimizationRisk.Safe,@@ -256,24 +175,4 @@ public class Performance : IOptimizationCategoryreturn Task.FromResult(ApplyResult.True());}}-- [Optimization(- Id = "3046C006-AD21-4BDB-9C55-8EF15B367487",- Risk = OptimizationRisk.Safe,- Tags = OptimizationTags.Performance | OptimizationTags.Display)]- public class DisableFullscreenOptimizations : BaseOptimization- {- public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,- OptimizationContext context)- {- RegistryService.Write(- new RegistryItem(@"HKCU\System\GameConfigStore", "GameDVR_DXGIHonorFSEWindowsCompatible", 1),- new RegistryItem(@"HKCU\System\GameConfigStore", "GameDVR_FSEBehavior", 2),- new RegistryItem(@"HKCU\System\GameConfigStore", "GameDVR_FSEBehaviorMode", 2),- new RegistryItem(@"HKCU\System\GameConfigStore", "GameDVR_HonorUserFSEBehaviorMode", 1)- );- context.Logger.LogInformation("Disabled full-screen optimizations");- return Task.FromResult(ApplyResult.True());- }- }}\ No newline at end of filediff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resxindex b525102..6d38c56 100644--- a/optimizerDuck/Resources/Languages/Translations.resx+++ b/optimizerDuck/Resources/Languages/Translations.resx@@ -170,11 +170,17 @@<data name="Features.Description" xml:space="preserve"><value>Enable or disable continuous Windows features</value></data>- <data name="Features.UserExperience.Name" xml:space="preserve">- <value>User Experience</value>+ <data name="Features.Preferences.Name" xml:space="preserve">+ <value>Preferences</value></data>- <data name="Features.UserExperience.Description" xml:space="preserve">+ <data name="Features.Preferences.Description" xml:space="preserve"><value>Customize visual and interaction settings</value>+ </data>+ <data name="Features.Gaming.Name" xml:space="preserve">+ <value>Gaming</value>+ </data>+ <data name="Features.Gaming.Description" xml:space="preserve">+ <value>Game-related display, input, and recording settings</value></data><data name="Features.System.Name" xml:space="preserve"><value>System</value>@@ -615,30 +621,6 @@ Current version: {0}</value></data><data name="Optimizer.Performance.MultimediaResponsiveness.ShortDescription" xml:space="preserve"><value>Reduces latency for audio, video, and network tasks to improve real-time media and gaming performance.</value>- </data>- <data name="Optimizer.Performance.DisableGameBar.Name" xml:space="preserve">- <value>Disable Xbox Game Bar</value>- </data>- <data name="Optimizer.Performance.DisableGameBar.ShortDescription" xml:space="preserve">- <value>Disables Xbox Game Bar overlays and background features to save system resources while gaming.</value>- </data>- <data name="Optimizer.Performance.EnableGameMode.Name" xml:space="preserve">- <value>Enable Game Mode</value>- </data>- <data name="Optimizer.Performance.EnableGameMode.ShortDescription" xml:space="preserve">- <value>Activates Windows Game Mode to prioritize game processes and prevent interruptions from Windows Update.</value>- </data>- <data name="Optimizer.Performance.DisableGameDVR.Name" xml:space="preserve">- <value>Disable Background Recording</value>- </data>- <data name="Optimizer.Performance.DisableGameDVR.ShortDescription" xml:space="preserve">- <value>Turns off automatic background game recording (DVR) to reclaim lost performance and disk bandwidth.</value>- </data>- <data name="Optimizer.Performance.DisableMouseAcceleration.Name" xml:space="preserve">- <value>Disable Mouse Acceleration</value>- </data>- <data name="Optimizer.Performance.DisableMouseAcceleration.ShortDescription" xml:space="preserve">- <value>Disables Windows' automatic mouse speed adjustment for precise, 1:1 cursor movement.</value></data><data name="Optimizer.Performance.KeyboardLatencyOptimization.Name" xml:space="preserve"><value>Optimize Keyboard Response</value>@@ -748,6 +730,12 @@ Current version: {0}</value></data><data name="Optimizer.UserExperience" xml:space="preserve"><value>User Experience</value>+ </data>+ <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.Name" xml:space="preserve">+ <value>Speed Up Explorer & Menus</value>+ </data>+ <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.ShortDescription" xml:space="preserve">+ <value>Sets StartupDelayInMSec=0, MenuShowDelay=0 to eliminate Explorer startup delay and reduce menu hover delay to minimum.</value></data><data name="Optimizer.Gpu.AmdDisableUlps.Name" xml:space="preserve"><value>Disable AMD ULPS</value>@@ -797,77 +785,125 @@ Current version: {0}</value><data name="Optimizer.Gpu.IntelDisableAdaptiveVsync.ShortDescription" xml:space="preserve"><value>Sets AdaptiveVsyncEnable=0 to disable Intel's adaptive V-Sync that dynamically adjusts to frame rate, using fixed V-Sync instead for stable timing.</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarNewsAndInterests.Name" xml:space="preserve">- <value>Disable Taskbar News & Interests</value>+ <data name="Features.Preferences.Section.Taskbar" xml:space="preserve">+ <value>Taskbar</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarNewsAndInterests.ShortDescription" xml:space="preserve">- <value>Sets AllowNewsAndInterests=0, EnableFeeds=0 to remove the News and Interests widget from taskbar, eliminating MSN feed background updates.</value>+ <data name="Features.Preferences.Section.Appearance" xml:space="preserve">+ <value>Appearance</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarExtraButtons.Name" xml:space="preserve">- <value>Disable Extra Taskbar Buttons</value>+ <data name="Features.Preferences.Section.Explorer" xml:space="preserve">+ <value>Explorer</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarExtraButtons.ShortDescription" xml:space="preserve">- <value>Sets TaskbarMn=0 (Chat), ShowTaskViewButton=0 to hide taskbar buttons for a minimal interface.</value>+ <data name="Features.Preferences.TaskbarNewsAndInterests.Name" xml:space="preserve">+ <value>Taskbar News & Interests</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarSearchAndBing.Name" xml:space="preserve">- <value>Disable Taskbar Search & Bing</value>+ <data name="Features.Preferences.TaskbarNewsAndInterests.Description" xml:space="preserve">+ <value>Controls the News and Interests widget on the taskbar and MSN feed background updates.</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarSearchAndBing.ShortDescription" xml:space="preserve">- <value>Sets SearchboxTaskbarMode=0, BingSearchEnabled=0 to remove search box from taskbar and disable Bing web search in Start menu.</value>+ <data name="Features.Preferences.TaskbarExtraButtons.Name" xml:space="preserve">+ <value>Extra Taskbar Buttons</value></data>- <data name="Optimizer.UserExperience.RemoveMeetNowAndPeople.Name" xml:space="preserve">- <value>Remove Meet Now & People</value>+ <data name="Features.Preferences.TaskbarExtraButtons.Description" xml:space="preserve">+ <value>Controls visibility of Chat and Task View buttons on the taskbar.</value></data>- <data name="Optimizer.UserExperience.RemoveMeetNowAndPeople.ShortDescription" xml:space="preserve">- <value>Sets HideSCAMeetNow=1, PeopleBand=0 to remove Meet Now (Skype) and People icons from taskbar notification area.</value>+ <data name="Features.Preferences.TaskbarSearchAndBing.Name" xml:space="preserve">+ <value>Taskbar Search & Bing</value></data>- <data name="Optimizer.UserExperience.EnableTaskbarEndTask.Name" xml:space="preserve">- <value>Enable Taskbar End Task</value>+ <data name="Features.Preferences.TaskbarSearchAndBing.Description" xml:space="preserve">+ <value>Controls the search box on the taskbar and Bing web search in Start menu.</value></data>- <data name="Optimizer.UserExperience.EnableTaskbarEndTask.ShortDescription" xml:space="preserve">- <value>Sets TaskbarEndTask=1 to add "End task" option to taskbar right-click menu, allowing quick process termination without Task Manager.</value>+ <data name="Features.Preferences.MeetNowAndPeople.Name" xml:space="preserve">+ <value>Meet Now & People</value></data>- <data name="Optimizer.UserExperience.EnableDarkMode.Name" xml:space="preserve">- <value>Enable Dark Mode</value>+ <data name="Features.Preferences.MeetNowAndPeople.Description" xml:space="preserve">+ <value>Controls Meet Now (Skype) and People icons in the taskbar notification area.</value></data>- <data name="Optimizer.UserExperience.EnableDarkMode.ShortDescription" xml:space="preserve">- <value>Sets AppsUseLightTheme=0, SystemUsesLightTheme=0 to enable dark mode for system apps, Settings, and shell elements.</value>+ <data name="Features.Preferences.TaskbarEndTask.Name" xml:space="preserve">+ <value>Taskbar End Task</value></data>- <data name="Optimizer.UserExperience.DisableExplorerAndSystemNotifications.Name" xml:space="preserve">- <value>Disable Explorer & System Notifications</value>+ <data name="Features.Preferences.TaskbarEndTask.Description" xml:space="preserve">+ <value>Adds an "End task" option to the taskbar right-click menu for quick process termination.</value></data>- <data name="Optimizer.UserExperience.DisableExplorerAndSystemNotifications.ShortDescription" xml:space="preserve">- <value>Sets ShowSyncProviderNotifications=0, SystemPaneSuggestionsEnabled=0, ToastEnabled=0 to disable OneDrive sync ads, Windows tips, and toast notifications.</value>+ <data name="Features.Preferences.DarkMode.Name" xml:space="preserve">+ <value>Dark Mode</value></data>- <data name="Optimizer.UserExperience.ShowFileExtensionsAndHiddenFiles.Name" xml:space="preserve">- <value>Show File Extensions & Hidden Files</value>+ <data name="Features.Preferences.DarkMode.Description" xml:space="preserve">+ <value>Enables dark mode for system apps, Settings, and shell elements.</value></data>- <data name="Optimizer.UserExperience.ShowFileExtensionsAndHiddenFiles.ShortDescription" xml:space="preserve">- <value>Sets HideFileExt=0, Hidden=1 in Explorer to display file extensions and reveal hidden/system files for transparency.</value>+ <data name="Features.Preferences.VisualEffects.Name" xml:space="preserve">+ <value>Visual Effects</value></data>- <data name="Optimizer.UserExperience.EnableClassicContextMenu.Name" xml:space="preserve">- <value>Enable Classic Context Menu (for Windows 11)</value>+ <data name="Features.Preferences.VisualEffects.Description" xml:space="preserve">+ <value>Controls taskbar animations, listview shadows, window transparency, and Aero Peek effects.</value></data>- <data name="Optimizer.UserExperience.EnableClassicContextMenu.ShortDescription" xml:space="preserve">- <value>Creates InprocServer32 key at CLSID {86ca1aa0-34aa-4e8b-a509-50c905bae2a2} to restore Windows 10-style full context menu on Windows 11.</value>+ <data name="Features.Preferences.ExplorerAndSystemNotifications.Name" xml:space="preserve">+ <value>Explorer & System Notifications</value></data>- <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.Name" xml:space="preserve">- <value>Speed Up Explorer & Menus</value>+ <data name="Features.Preferences.ExplorerAndSystemNotifications.Description" xml:space="preserve">+ <value>Controls OneDrive sync ads, Windows tips, and toast notifications.</value></data>- <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.ShortDescription" xml:space="preserve">- <value>Sets StartupDelayInMSec=0, MenuShowDelay=0 to eliminate Explorer startup delay and reduce menu hover delay to minimum.</value>+ <data name="Features.Preferences.HiddenFilesAndExtensions.Name" xml:space="preserve">+ <value>File Extensions & Hidden Files</value></data>- <data name="Optimizer.UserExperience.ShowSecondsInSystemClock.Name" xml:space="preserve">- <value>Show Seconds in System Clock</value>+ <data name="Features.Preferences.HiddenFilesAndExtensions.Description" xml:space="preserve">+ <value>Controls visibility of file extensions and hidden/system files in Explorer.</value></data>- <data name="Optimizer.UserExperience.ShowSecondsInSystemClock.ShortDescription" xml:space="preserve">- <value>Sets ShowSecondsInSystemClock=1 to display seconds in taskbar clock for precise time monitoring.</value>+ <data name="Features.Preferences.ClassicContextMenu.Name" xml:space="preserve">+ <value>Classic Context Menu</value></data>- <data name="Optimizer.UserExperience.DisableVisualEffects.Name" xml:space="preserve">- <value>Disable Visual Effects</value>+ <data name="Features.Preferences.ClassicContextMenu.Description" xml:space="preserve">+ <value>Restores Windows 10-style full context menu on Windows 11.</value></data>- <data name="Optimizer.UserExperience.DisableVisualEffects.ShortDescription" xml:space="preserve">- <value>Sets TaskbarAnimations=0, ListviewShadow=0, EnableTransparency=0, EnableAeroPeek=0 to disable animations, shadows, transparency for improved UI responsiveness.</value>+ <data name="Features.Preferences.ShowSecondsInSystemClock.Name" xml:space="preserve">+ <value>Seconds in System Clock</value>+ </data>+ <data name="Features.Preferences.ShowSecondsInSystemClock.Description" xml:space="preserve">+ <value>Displays seconds in the taskbar clock for precise time monitoring.</value>+ </data>+ <data name="Features.Gaming.Section.GameSettings" xml:space="preserve">+ <value>Game Settings</value>+ </data>+ <data name="Features.Gaming.Section.Input" xml:space="preserve">+ <value>Input</value>+ </data>+ <data name="Features.Gaming.Section.Display" xml:space="preserve">+ <value>Display</value>+ </data>+ <data name="Features.Gaming.GameMode.Name" xml:space="preserve">+ <value>Game Mode</value>+ </data>+ <data name="Features.Gaming.GameMode.Description" xml:space="preserve">+ <value>Prioritizes game processes and prevents interruptions from Windows Update while gaming.</value>+ </data>+ <data name="Features.Gaming.GameBar.Name" xml:space="preserve">+ <value>Xbox Game Bar</value>+ </data>+ <data name="Features.Gaming.GameBar.Description" xml:space="preserve">+ <value>Controls Xbox Game Bar overlays, startup panel, and related background features.</value>+ </data>+ <data name="Features.Gaming.BackgroundRecording.Name" xml:space="preserve">+ <value>Background Recording (DVR)</value>+ </data>+ <data name="Features.Gaming.BackgroundRecording.Description" xml:space="preserve">+ <value>Controls automatic background game recording (Game DVR) and app capture.</value>+ </data>+ <data name="Features.Gaming.MouseAcceleration.Name" xml:space="preserve">+ <value>Mouse Acceleration</value>+ </data>+ <data name="Features.Gaming.MouseAcceleration.Description" xml:space="preserve">+ <value>Controls Windows' automatic mouse speed adjustment. Disabling provides precise, 1:1 cursor movement.</value>+ </data>+ <data name="Features.Gaming.FullscreenOptimizations.Name" xml:space="preserve">+ <value>Fullscreen Optimizations</value>+ </data>+ <data name="Features.Gaming.FullscreenOptimizations.Description" xml:space="preserve">+ <value>Controls Windows DWM-based full-screen optimizations that may cause input lag or forced borderless windowed mode.</value>+ </data>+ <data name="Features.Gaming.HardwareAcceleratedGpuScheduling.Name" xml:space="preserve">+ <value>Hardware-Accelerated GPU Scheduling</value>+ </data>+ <data name="Features.Gaming.HardwareAcceleratedGpuScheduling.Description" xml:space="preserve">+ <value>Lets the GPU manage its own video memory scheduling directly, reducing CPU overhead and display latency. Requires a compatible GPU driver.</value></data><data name="Settings.Optimize.ShellTimeout.Warning" xml:space="preserve"><value>Do NOT change unless you know exactly what you are doing</value>@@ -983,18 +1019,7 @@ This ensures you can always go back if anything goes wrong.</value><value>optimizerDuck (v{0}) is available!Update now to enjoy the latest features, improvements, and bug fixes.</value></data>- <data name="Optimizer.Performance.DisableFullscreenOptimizations.Name" xml:space="preserve">- <value>Disable Full-Screen Optimizations</value>- </data>- <data name="Optimizer.Performance.DisableFullscreenOptimizations.ShortDescription" xml:space="preserve">- <value>Disables Windows DWM-based full-screen optimizations to eliminate input lag, frame pacing issues, and forced borderless windowed mode in games.</value>- </data>- <data name="Optimizer.Gpu.EnableHardwareAcceleratedGpuScheduling.Name" xml:space="preserve">- <value>Enable Hardware-Accelerated GPU Scheduling</value>- </data>- <data name="Optimizer.Gpu.EnableHardwareAcceleratedGpuScheduling.ShortDescription" xml:space="preserve">- <value>Enables HAGS to let the GPU manage its own video memory scheduling directly, reducing CPU overhead and display latency. Requires a compatible GPU driver and reboot.</value>- </data>+<data name="Common.Search.Placeholder" xml:space="preserve"><value>Search...</value></data>diff --git a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx b/optimizerDuck/Resources/Languages/Translations.vi-VN.resxindex 5578267..32e8130 100644--- a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx+++ b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx@@ -170,11 +170,17 @@<data name="Features.Description" xml:space="preserve"><value>Bật hoặc tắt các tính năng liên tục của Windows</value></data>- <data name="Features.UserExperience.Name" xml:space="preserve">- <value>Trải nghiệm người dùng</value>+ <data name="Features.Preferences.Name" xml:space="preserve">+ <value>Tùy chỉnh giao diện</value></data>- <data name="Features.UserExperience.Description" xml:space="preserve">+ <data name="Features.Preferences.Description" xml:space="preserve"><value>Tùy chỉnh cài đặt hiển thị và tương tác</value>+ </data>+ <data name="Features.Gaming.Name" xml:space="preserve">+ <value>Chơi game</value>+ </data>+ <data name="Features.Gaming.Description" xml:space="preserve">+ <value>Cài đặt hiển thị, đầu vào và ghi hình liên quan đến chơi game</value></data><data name="Features.System.Name" xml:space="preserve"><value>Hệ thống</value>@@ -609,30 +615,6 @@ Phiên bản hiện tại: {0} </value></data><data name="Optimizer.Performance.MultimediaResponsiveness.ShortDescription" xml:space="preserve"><value>Giảm thiểu độ trễ MMCSS bằng cách đặt SystemResponsiveness thành 10 và vô hiệu hóa điều tiết mạng (0xFFFFFFFF) cho các tác vụ thời gian thực.</value>- </data>- <data name="Optimizer.Performance.DisableGameBar.Name" xml:space="preserve">- <value>Tắt Xbox Game Bar</value>- </data>- <data name="Optimizer.Performance.DisableGameBar.ShortDescription" xml:space="preserve">- <value>Vô hiệu hóa lớp phủ Xbox Game Bar, thông báo khởi động và tích hợp phím tắt để loại bỏ chi phí xử lý nền từ tính năng ghi hình.</value>- </data>- <data name="Optimizer.Performance.EnableGameMode.Name" xml:space="preserve">- <value>Kích hoạt Chế độ trò chơi</value>- </data>- <data name="Optimizer.Performance.EnableGameMode.ShortDescription" xml:space="preserve">- <value>Bật Game Mode để ưu tiên game và tạm hoãn các hoạt động gây gián đoạn của Windows Update.</value>- </data>- <data name="Optimizer.Performance.DisableGameDVR.Name" xml:space="preserve">- <value>Vô hiệu hóa ghi hình nền</value>- </data>- <data name="Optimizer.Performance.DisableGameDVR.ShortDescription" xml:space="preserve">- <value>Tắt tính năng tự động ghi hình game chạy ngầm (DVR) để thu hồi hiệu năng bị chiếm dụng.</value>- </data>- <data name="Optimizer.Performance.DisableMouseAcceleration.Name" xml:space="preserve">- <value>Loại bỏ gia tốc chuột</value>- </data>- <data name="Optimizer.Performance.DisableMouseAcceleration.ShortDescription" xml:space="preserve">- <value>Vô hiệu hóa việc tự động tăng tốc chuột của Windows, mang lại cảm giác di chuột chính xác 1:1.</value></data><data name="Optimizer.Performance.KeyboardLatencyOptimization.Name" xml:space="preserve"><value>Tối ưu hóa độ trễ bàn phím</value>@@ -742,6 +724,12 @@ Phiên bản hiện tại: {0} </value></data><data name="Optimizer.UserExperience" xml:space="preserve"><value>Trải nghiệm người dùng</value>+ </data>+ <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.Name" xml:space="preserve">+ <value>Tăng tốc Explorer & Menu</value>+ </data>+ <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.ShortDescription" xml:space="preserve">+ <value>Loại bỏ thời gian trễ khi mở thư mục và hiển thị menu để giao diện phản hồi tức thì.</value></data><data name="Optimizer.Gpu.AmdDisableUlps.Name" xml:space="preserve"><value>Vô hiệu hóa AMD ULPS</value>@@ -791,77 +779,125 @@ Phiên bản hiện tại: {0} </value><data name="Optimizer.Gpu.IntelDisableAdaptiveVsync.ShortDescription" xml:space="preserve"><value>Duy trì thời gian xuất khung hình ổn định bằng cách tắt tính năng V-Sync thích ứng của Intel.</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarNewsAndInterests.Name" xml:space="preserve">- <value>Tắt Tin tức & Sở thích</value>+ <data name="Features.Preferences.Section.Taskbar" xml:space="preserve">+ <value>Thanh tác vụ</value>+ </data>+ <data name="Features.Preferences.Section.Appearance" xml:space="preserve">+ <value>Giao diện</value>+ </data>+ <data name="Features.Preferences.Section.Explorer" xml:space="preserve">+ <value>Explorer</value>+ </data>+ <data name="Features.Preferences.TaskbarNewsAndInterests.Name" xml:space="preserve">+ <value>Tin tức & Sở thích trên Taskbar</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarNewsAndInterests.ShortDescription" xml:space="preserve">- <value>Gỡ bỏ tiện ích tin tức trên thanh tác vụ để tập trung hơn và giảm tải cho hệ thống.</value>+ <data name="Features.Preferences.TaskbarNewsAndInterests.Description" xml:space="preserve">+ <value>Kiểm soát tiện ích tin tức trên thanh tác vụ và cập nhật nền từ MSN.</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarExtraButtons.Name" xml:space="preserve">- <value>Ẩn các nút không dùng trên Taskbar</value>+ <data name="Features.Preferences.TaskbarExtraButtons.Name" xml:space="preserve">+ <value>Các nút phụ trên Taskbar</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarExtraButtons.ShortDescription" xml:space="preserve">- <value>Dọn dẹp thanh tác vụ bằng cách ẩn các nút Widgets, Chat và Task View.</value>+ <data name="Features.Preferences.TaskbarExtraButtons.Description" xml:space="preserve">+ <value>Kiểm soát hiển thị nút Chat và Task View trên thanh tác vụ.</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarSearchAndBing.Name" xml:space="preserve">- <value>Tắt Tìm kiếm & Bing trên Taskbar</value>+ <data name="Features.Preferences.TaskbarSearchAndBing.Name" xml:space="preserve">+ <value>Tìm kiếm & Bing trên Taskbar</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarSearchAndBing.ShortDescription" xml:space="preserve">- <value>Gỡ bỏ hộp tìm kiếm và tắt kết quả từ Bing để thanh tác vụ và menu Start sạch sẽ hơn.</value>+ <data name="Features.Preferences.TaskbarSearchAndBing.Description" xml:space="preserve">+ <value>Kiểm soát hộp tìm kiếm trên thanh tác vụ và tìm kiếm Bing trong menu Start.</value></data>- <data name="Optimizer.UserExperience.RemoveMeetNowAndPeople.Name" xml:space="preserve">- <value>Xóa Meet Now & People</value>+ <data name="Features.Preferences.MeetNowAndPeople.Name" xml:space="preserve">+ <value>Meet Now & People</value></data>- <data name="Optimizer.UserExperience.RemoveMeetNowAndPeople.ShortDescription" xml:space="preserve">- <value>Gỡ bỏ các biểu tượng Meet Now và People khỏi thanh hệ thống để giảm sự lộn xộn.</value>+ <data name="Features.Preferences.MeetNowAndPeople.Description" xml:space="preserve">+ <value>Kiểm soát biểu tượng Meet Now (Skype) và People trong khu vực thông báo.</value></data>- <data name="Optimizer.UserExperience.EnableTaskbarEndTask.Name" xml:space="preserve">- <value>Bật tính năng "Kết thúc tác vụ"</value>+ <data name="Features.Preferences.TaskbarEndTask.Name" xml:space="preserve">+ <value>Kết thúc tác vụ trên Taskbar</value></data>- <data name="Optimizer.UserExperience.EnableTaskbarEndTask.ShortDescription" xml:space="preserve">- <value>Cho phép nhanh chóng tắt ứng dụng bị treo ngay từ thanh tác vụ mà không cần mở Task Manager.</value>+ <data name="Features.Preferences.TaskbarEndTask.Description" xml:space="preserve">+ <value>Thêm tùy chọn "Kết thúc tác vụ" vào menu chuột phải trên thanh tác vụ.</value></data>- <data name="Optimizer.UserExperience.EnableDarkMode.Name" xml:space="preserve">- <value>Kích hoạt Chế độ tối (Dark Mode)</value>+ <data name="Features.Preferences.DarkMode.Name" xml:space="preserve">+ <value>Chế độ tối (Dark Mode)</value></data>- <data name="Optimizer.UserExperience.EnableDarkMode.ShortDescription" xml:space="preserve">- <value>Chuyển hệ điều hành và ứng dụng sang giao diện tối giúp dịu mắt và tiết kiệm điện.</value>+ <data name="Features.Preferences.DarkMode.Description" xml:space="preserve">+ <value>Bật chế độ tối cho ứng dụng hệ thống, Cài đặt và các thành phần shell.</value></data>- <data name="Optimizer.UserExperience.DisableExplorerAndSystemNotifications.Name" xml:space="preserve">- <value>Vô hiệu hóa thông báo phiền hà</value>+ <data name="Features.Preferences.VisualEffects.Name" xml:space="preserve">+ <value>Hiệu ứng hình ảnh</value></data>- <data name="Optimizer.UserExperience.DisableExplorerAndSystemNotifications.ShortDescription" xml:space="preserve">- <value>Chặn các thông báo quảng cáo, mẹo sử dụng và thông báo không cần thiết từ Windows.</value>+ <data name="Features.Preferences.VisualEffects.Description" xml:space="preserve">+ <value>Kiểm soát hiệu ứng chuyển động, bóng đổ, độ trong suốt và Aero Peek trên giao diện.</value></data>- <data name="Optimizer.UserExperience.ShowFileExtensionsAndHiddenFiles.Name" xml:space="preserve">- <value>Hiện đuôi tệp & tệp ẩn</value>+ <data name="Features.Preferences.ExplorerAndSystemNotifications.Name" xml:space="preserve">+ <value>Explorer & Thông báo hệ thống</value></data>- <data name="Optimizer.UserExperience.ShowFileExtensionsAndHiddenFiles.ShortDescription" xml:space="preserve">- <value>Hiển thị đầy đủ phần mở rộng tệp và các tệp tin ẩn để thuận tiện cho việc quản lý hệ thống.</value>+ <data name="Features.Preferences.ExplorerAndSystemNotifications.Description" xml:space="preserve">+ <value>Kiểm soát quảng cáo OneDrive, mẹo Windows và thông báo toast.</value></data>- <data name="Optimizer.UserExperience.EnableClassicContextMenu.Name" xml:space="preserve">- <value>Sử dụng Menu chuột phải cổ điển</value>+ <data name="Features.Preferences.HiddenFilesAndExtensions.Name" xml:space="preserve">+ <value>Đuôi tệp & Tệp ẩn</value></data>- <data name="Optimizer.UserExperience.EnableClassicContextMenu.ShortDescription" xml:space="preserve">+ <data name="Features.Preferences.HiddenFilesAndExtensions.Description" xml:space="preserve">+ <value>Kiểm soát hiển thị đuôi tệp và tệp ẩn/hệ thống trong Explorer.</value>+ </data>+ <data name="Features.Preferences.ClassicContextMenu.Name" xml:space="preserve">+ <value>Menu chuột phải cổ điển</value>+ </data>+ <data name="Features.Preferences.ClassicContextMenu.Description" xml:space="preserve"><value>Khôi phục menu chuột phải đầy đủ kiểu Windows 10 trên Windows 11.</value></data>- <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.Name" xml:space="preserve">- <value>Tăng tốc Explorer & Menu</value>+ <data name="Features.Preferences.ShowSecondsInSystemClock.Name" xml:space="preserve">+ <value>Giây trên đồng hồ hệ thống</value></data>- <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.ShortDescription" xml:space="preserve">- <value>Loại bỏ thời gian trễ khi mở thư mục và hiển thị menu để giao diện phản hồi tức thì.</value>+ <data name="Features.Preferences.ShowSecondsInSystemClock.Description" xml:space="preserve">+ <value>Hiển thị giây trên đồng hồ thanh tác vụ để theo dõi thời gian chính xác.</value>+ </data>+ <data name="Features.Gaming.Section.GameSettings" xml:space="preserve">+ <value>Cài đặt trò chơi</value>+ </data>+ <data name="Features.Gaming.Section.Input" xml:space="preserve">+ <value>Đầu vào</value>+ </data>+ <data name="Features.Gaming.Section.Display" xml:space="preserve">+ <value>Hiển thị</value>+ </data>+ <data name="Features.Gaming.GameMode.Name" xml:space="preserve">+ <value>Chế độ trò chơi</value>+ </data>+ <data name="Features.Gaming.GameMode.Description" xml:space="preserve">+ <value>Ưu tiên tiến trình game và ngăn gián đoạn từ Windows Update khi chơi game.</value></data>- <data name="Optimizer.UserExperience.ShowSecondsInSystemClock.Name" xml:space="preserve">- <value>Hiển thị giây trên đồng hồ</value>+ <data name="Features.Gaming.GameBar.Name" xml:space="preserve">+ <value>Xbox Game Bar</value></data>- <data name="Optimizer.UserExperience.ShowSecondsInSystemClock.ShortDescription" xml:space="preserve">- <value>Thêm hiển thị kim giây vào đồng hồ hệ thống trên thanh tác vụ để theo dõi giờ chính xác.</value>+ <data name="Features.Gaming.GameBar.Description" xml:space="preserve">+ <value>Kiểm soát lớp phủ Xbox Game Bar, bảng khởi động và các tính năng nền liên quan.</value></data>- <data name="Optimizer.UserExperience.DisableVisualEffects.Name" xml:space="preserve">- <value>Tắt hiệu ứng chuyển động</value>+ <data name="Features.Gaming.BackgroundRecording.Name" xml:space="preserve">+ <value>Ghi hình nền (DVR)</value></data>- <data name="Optimizer.UserExperience.DisableVisualEffects.ShortDescription" xml:space="preserve">- <value>Vô hiệu hóa các hiệu ứng cửa sổ, bóng đổ và độ trong suốt để tăng tối đa tốc độ giao diện.</value>+ <data name="Features.Gaming.BackgroundRecording.Description" xml:space="preserve">+ <value>Kiểm soát tự động ghi hình game chạy ngầm (Game DVR) và chụp ứng dụng.</value>+ </data>+ <data name="Features.Gaming.MouseAcceleration.Name" xml:space="preserve">+ <value>Gia tốc chuột</value>+ </data>+ <data name="Features.Gaming.MouseAcceleration.Description" xml:space="preserve">+ <value>Kiểm soát tự động điều chỉnh tốc độ chuột của Windows. Tắt để di chuột chính xác 1:1.</value>+ </data>+ <data name="Features.Gaming.FullscreenOptimizations.Name" xml:space="preserve">+ <value>Tối ưu hóa toàn màn hình</value>+ </data>+ <data name="Features.Gaming.FullscreenOptimizations.Description" xml:space="preserve">+ <value>Kiểm soát tối ưu hóa toàn màn hình DWM có thể gây độ trễ đầu vào hoặc chế độ cửa sổ không viền bị ép buộc.</value>+ </data>+ <data name="Features.Gaming.HardwareAcceleratedGpuScheduling.Name" xml:space="preserve">+ <value>Lập lịch GPU tăng tốc phần cứng</value>+ </data>+ <data name="Features.Gaming.HardwareAcceleratedGpuScheduling.Description" xml:space="preserve">+ <value>Cho phép GPU trực tiếp quản lý bộ nhớ video, giảm tải CPU và giảm độ trễ hiển thị. Yêu cầu driver GPU tương thích.</value></data><data name="Settings.Optimize.ShellTimeout.Warning" xml:space="preserve"><value>ĐỪNG thay đổi trừ khi bạn biết chính xác mình đang làm gì</value>@@ -977,18 +1013,7 @@ Hãy yên tâm rằng hệ thống của bạn luôn có đường lui nếu có<value>Đã có phiên bản optimizerDuck (v{0})!Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và sửa lỗi mới nhất.</value></data>- <data name="Optimizer.Performance.DisableFullscreenOptimizations.Name" xml:space="preserve">- <value>Tắt tối ưu hóa toàn màn hình</value>- </data>- <data name="Optimizer.Performance.DisableFullscreenOptimizations.ShortDescription" xml:space="preserve">- <value>Vô hiệu hóa tối ưu hóa toàn màn hình của Windows (FSO) để loại bỏ độ trễ đầu vào, giật hình và chế độ cửa sổ không viền bị ép buộc trong game.</value>- </data>- <data name="Optimizer.Gpu.EnableHardwareAcceleratedGpuScheduling.Name" xml:space="preserve">- <value>Bật lập lịch GPU tăng tốc phần cứng</value>- </data>- <data name="Optimizer.Gpu.EnableHardwareAcceleratedGpuScheduling.ShortDescription" xml:space="preserve">- <value>Cho phép GPU trực tiếp quản lý bộ nhớ video, giảm tải CPU và giảm độ trễ hiển thị. Yêu cầu driver GPU tương thích và khởi động lại.</value>- </data>+<data name="Common.Search.Placeholder" xml:space="preserve"><value>Tìm kiếm...</value></data>diff --git a/optimizerDuck/Resources/Languages/Translations.zh-Hant-TW.resx b/optimizerDuck/Resources/Languages/Translations.zh-Hant-TW.resxindex 8cc8c91..2a5bb92 100644--- a/optimizerDuck/Resources/Languages/Translations.zh-Hant-TW.resx+++ b/optimizerDuck/Resources/Languages/Translations.zh-Hant-TW.resx@@ -760,76 +760,76 @@<data name="Optimizer.Gpu.IntelDisableAdaptiveVsync.ShortDescription" xml:space="preserve"><value>設定 AdaptiveVsyncEnable=0 以停用會根據影格率動態調整的 Intel 自適應垂直同步,改用固定的垂直同步以獲得穩定的時序。</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarNewsAndInterests.Name" xml:space="preserve">+ <data name="Features.UserExperience.TaskbarNewsAndInterests.Name" xml:space="preserve"><value>停用工作列新聞與興趣</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarNewsAndInterests.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.TaskbarNewsAndInterests.Description" xml:space="preserve"><value>設定 AllowNewsAndInterests=0、EnableFeeds=0 以從工作列中移除「新聞與興趣」小工具,消除 MSN 摘要的背景更新。</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarExtraButtons.Name" xml:space="preserve">+ <data name="Features.UserExperience.TaskbarExtraButtons.Name" xml:space="preserve"><value>停用額外的工作列按鈕</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarExtraButtons.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.TaskbarExtraButtons.Description" xml:space="preserve"><value>設定 TaskbarMn=0 (聊天)、ShowTaskViewButton=0 以隱藏工作列按鈕,獲得極簡的介面。</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarSearchAndBing.Name" xml:space="preserve">+ <data name="Features.UserExperience.TaskbarSearchAndBing.Name" xml:space="preserve"><value>停用工作列搜尋與 Bing</value></data>- <data name="Optimizer.UserExperience.DisableTaskbarSearchAndBing.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.TaskbarSearchAndBing.Description" xml:space="preserve"><value>設定 SearchboxTaskbarMode=0、BingSearchEnabled=0 以從工作列移除搜尋方塊,並停用開始功能表中的 Bing 網頁搜尋。</value></data>- <data name="Optimizer.UserExperience.RemoveMeetNowAndPeople.Name" xml:space="preserve">+ <data name="Features.UserExperience.MeetNowAndPeople.Name" xml:space="preserve"><value>移除立即開會與聯絡人</value></data>- <data name="Optimizer.UserExperience.RemoveMeetNowAndPeople.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.MeetNowAndPeople.Description" xml:space="preserve"><value>設定 HideSCAMeetNow=1、PeopleBand=0 以從工作列通知區域移除「立即開會」(Skype) 和「聯絡人」圖示。</value></data>- <data name="Optimizer.UserExperience.EnableTaskbarEndTask.Name" xml:space="preserve">+ <data name="Features.UserExperience.TaskbarEndTask.Name" xml:space="preserve"><value>啟用工作列結束工作</value></data>- <data name="Optimizer.UserExperience.EnableTaskbarEndTask.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.TaskbarEndTask.Description" xml:space="preserve"><value>設定 TaskbarEndTask=1 將「結束工作」選項新增至工作列右鍵選單,允許在沒有工作管理員的情況下快速終止處理程序。</value></data>- <data name="Optimizer.UserExperience.EnableDarkMode.Name" xml:space="preserve">+ <data name="Features.UserExperience.DarkMode.Name" xml:space="preserve"><value>啟用深色模式</value></data>- <data name="Optimizer.UserExperience.EnableDarkMode.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.DarkMode.Description" xml:space="preserve"><value>設定 AppsUseLightTheme=0、SystemUsesLightTheme=0 為系統應用程式、設定和殼層元件啟用深色模式。</value></data>- <data name="Optimizer.UserExperience.DisableExplorerAndSystemNotifications.Name" xml:space="preserve">+ <data name="Features.UserExperience.ExplorerAndSystemNotifications.Name" xml:space="preserve"><value>停用檔案總管與系統通知</value></data>- <data name="Optimizer.UserExperience.DisableExplorerAndSystemNotifications.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.ExplorerAndSystemNotifications.Description" xml:space="preserve"><value>設定 ShowSyncProviderNotifications=0、SystemPaneSuggestionsEnabled=0、ToastEnabled=0 以停用 OneDrive 同步廣告、Windows 提示和快顯通知。</value></data>- <data name="Optimizer.UserExperience.ShowFileExtensionsAndHiddenFiles.Name" xml:space="preserve">+ <data name="Features.UserExperience.HiddenFilesAndExtensions.Name" xml:space="preserve"><value>顯示副檔名與隱藏的檔案</value></data>- <data name="Optimizer.UserExperience.ShowFileExtensionsAndHiddenFiles.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.HiddenFilesAndExtensions.Description" xml:space="preserve"><value>在檔案總管中設定 HideFileExt=0、Hidden=1,以顯示副檔名並顯示隱藏/系統檔案以增加透明度。</value></data>- <data name="Optimizer.UserExperience.EnableClassicContextMenu.Name" xml:space="preserve">+ <data name="Features.UserExperience.ClassicContextMenu.Name" xml:space="preserve"><value>啟用傳統右鍵選單 (適用於 Windows 11)</value></data>- <data name="Optimizer.UserExperience.EnableClassicContextMenu.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.ClassicContextMenu.Description" xml:space="preserve"><value>在 CLSID {86ca1aa0-34aa-4e8b-a509-50c905bae2a2} 建立 InprocServer32 機碼,以在 Windows 11 上還原 Windows 10 風格的完整右鍵選單。</value></data>- <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.Name" xml:space="preserve">+ <data name="Features.UserExperience.FastExplorerAndMenus.Name" xml:space="preserve"><value>加速檔案總管與選單</value></data>- <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.FastExplorerAndMenus.Description" xml:space="preserve"><value>設定 StartupDelayInMSec=0、MenuShowDelay=0 以消除檔案總管的啟動延遲,並將選單懸停延遲降至最低。</value></data>- <data name="Optimizer.UserExperience.ShowSecondsInSystemClock.Name" xml:space="preserve">+ <data name="Features.UserExperience.ShowSecondsInSystemClock.Name" xml:space="preserve"><value>在系統時鐘顯示秒數</value></data>- <data name="Optimizer.UserExperience.ShowSecondsInSystemClock.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.ShowSecondsInSystemClock.Description" xml:space="preserve"><value>設定 ShowSecondsInSystemClock=1 以在工作列時鐘中顯示秒數,以便進行精確的時間監控。</value></data>- <data name="Optimizer.UserExperience.DisableVisualEffects.Name" xml:space="preserve">+ <data name="Features.UserExperience.VisualEffects.Name" xml:space="preserve"><value>停用視覺效果</value></data>- <data name="Optimizer.UserExperience.DisableVisualEffects.ShortDescription" xml:space="preserve">+ <data name="Features.UserExperience.VisualEffects.Description" xml:space="preserve"><value>設定 TaskbarAnimations=0、ListviewShadow=0、EnableTransparency=0、EnableAeroPeek=0 以停用動畫、陰影和透明度,從而提高 UI 的反應速度。</value></data><data name="Settings.Optimize.ShellTimeout.Warning" xml:space="preserve">diff --git a/optimizerDuck/UI/Views/Pages/Features/FeatureCategoryPages.cs b/optimizerDuck/UI/Views/Pages/Features/FeatureCategoryPages.csindex e5e3c31..451bac5 100644--- a/optimizerDuck/UI/Views/Pages/Features/FeatureCategoryPages.cs+++ b/optimizerDuck/UI/Views/Pages/Features/FeatureCategoryPages.cs@@ -2,9 +2,9 @@ using optimizerDuck.UI.ViewModels.Pages;namespace optimizerDuck.UI.Views.Pages.Features;-public sealed class UserExperienceFeatureCategory : FeatureCategoryPage+public sealed class PreferencesFeatureCategory : FeatureCategoryPage{- public UserExperienceFeatureCategory(FeatureCategoryViewModel viewModel) : base(viewModel)+ public PreferencesFeatureCategory(FeatureCategoryViewModel viewModel) : base(viewModel){InitializeComponent();}@@ -16,4 +16,12 @@ public sealed class SystemFeatureCategory : FeatureCategoryPage{InitializeComponent();}+}++public sealed class GamingFeatureCategory : FeatureCategoryPage+{+ public GamingFeatureCategory(FeatureCategoryViewModel viewModel) : base(viewModel)+ {+ InitializeComponent();+ }}\ No newline at end of file