Free, open-source Windows optimization tool for performance, privacy, and simplicity.
C# csharpdebloatdotnetgamingopen-sourceoptimizationoptimizeroptimizerduckperformanceprivacytweakertweakswindowswinui
feat: add few features and move VisualEffects to optimize
fatDuckc31c5265bfff
diff --git a/optimizerDuck/Core/Features/Preferences.cs b/optimizerDuck/Core/Features/Preferences.csindex bf07077..f97bb54 100644--- a/optimizerDuck/Core/Features/Preferences.cs+++ b/optimizerDuck/Core/Features/Preferences.cs@@ -51,23 +51,31 @@ public class Preferences : IFeatureCategory];}- [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.LayoutCellFour24)]- public class TaskbarExtraButtons : BaseFeature+ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.Search24)]+ public class TaskbarSearchBox : BaseFeature{protected override IEnumerable<RegistryToggle> RegistryToggles =>[new(){- Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",- Name = "TaskbarMn",+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Search",+ Name = "SearchboxTaskbarMode",OnValue = 1,OffValue = 0,DefaultValue = 1- },+ }+ ];+ }++ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.Globe24)]+ public class BingSearchInStartMenu : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [new(){- Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",- Name = "ShowTaskViewButton",+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Search",+ Name = "BingSearchEnabled",OnValue = 1,OffValue = 0,DefaultValue = 1@@ -75,23 +83,31 @@ public class Preferences : IFeatureCategory];}- [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.Search24)]- public class TaskbarSearchAndBing : BaseFeature+ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.Chat24)]+ public class TaskbarChatButton : BaseFeature{protected override IEnumerable<RegistryToggle> RegistryToggles =>[new(){- Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Search",- Name = "SearchboxTaskbarMode",+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ Name = "TaskbarMn",OnValue = 1,OffValue = 0,DefaultValue = 1- },+ }+ ];+ }++ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.DesktopMac24)]+ public class TaskbarTaskViewButton : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [new(){- Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Search",- Name = "BingSearchEnabled",+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ Name = "ShowTaskViewButton",OnValue = 1,OffValue = 0,DefaultValue = 1@@ -99,8 +115,8 @@ public class Preferences : IFeatureCategory];}- [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.People24)]- public class MeetNowAndPeople : BaseFeature+ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.Video24)]+ public class MeetNow : BaseFeature{protected override IEnumerable<RegistryToggle> RegistryToggles =>[@@ -111,7 +127,15 @@ public class Preferences : IFeatureCategoryOnValue = 0,OffValue = 1,DefaultValue = 0- },+ }+ ];+ }++ [Feature(Section = nameof(Sections.Taskbar), Icon = SymbolRegular.People24)]+ public class TaskbarPeople : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [new(){Path = @"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People",@@ -163,39 +187,15 @@ public class Preferences : IFeatureCategory];}- [Feature(Section = nameof(Sections.Appearance), Icon = SymbolRegular.EyeOff24)]- public class VisualEffects : BaseFeature+ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.AlertOff24)]+ public class ExplorerSyncNotifications : 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",+ Name = "ShowSyncProviderNotifications",OnValue = 1,OffValue = 0,DefaultValue = 1@@ -203,19 +203,11 @@ public class Preferences : IFeatureCategory];}- [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.AlertOff24)]- public class ExplorerAndSystemNotifications : BaseFeature+ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.Lightbulb24)]+ public class SystemSuggestions : 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",@@ -223,7 +215,15 @@ public class Preferences : IFeatureCategoryOnValue = 1,OffValue = 0,DefaultValue = 1- },+ }+ ];+ }++ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.Alert24)]+ public class ToastNotifications : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [new(){Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications",@@ -244,7 +244,7 @@ public class Preferences : IFeatureCategory}[Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.DocumentText24)]- public class HiddenFilesAndExtensions : BaseFeature+ public class ShowFileExtensions : BaseFeature{protected override IEnumerable<RegistryToggle> RegistryToggles =>[@@ -255,7 +255,15 @@ public class Preferences : IFeatureCategoryOnValue = 0,OffValue = 1,DefaultValue = 1- },+ }+ ];+ }++ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.FolderSearch24)]+ public class ShowHiddenFiles : BaseFeature+ {+ protected override IEnumerable<RegistryToggle> RegistryToggles =>+ [new(){Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",diff --git a/optimizerDuck/Core/Optimizers/UserExperience.cs b/optimizerDuck/Core/Optimizers/UserExperience.csindex 86c2273..c3d90f5 100644--- a/optimizerDuck/Core/Optimizers/UserExperience.cs+++ b/optimizerDuck/Core/Optimizers/UserExperience.cs@@ -37,4 +37,28 @@ public class UserExperience : IOptimizationCategoryreturn Task.FromResult(ApplyResult.True());}}++ [Optimization(+ Id = "A3D1E8F2-7B4C-4A5D-9E62-8F3A1B7C4D59",+ Risk = OptimizationRisk.Safe,+ Tags = OptimizationTags.Performance | OptimizationTags.Visual)]+ public sealed class DisableVisualEffects : BaseOptimization+ {+ public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,+ OptimizationContext context)+ {+ RegistryService.Write(+ new RegistryItem(@"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ "TaskbarAnimations", 0),+ new RegistryItem(@"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",+ "ListviewShadow", 0),+ new RegistryItem(@"HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize",+ "EnableTransparency", 0),+ new RegistryItem(@"HKCU\Software\Microsoft\Windows\DWM",+ "EnableAeroPeek", 0)+ );+ context.Logger.LogInformation("Disabled visual effects for better performance");+ return Task.FromResult(ApplyResult.True());+ }+ }}\ No newline at end of filediff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resxindex 6d38c56..a316901 100644--- a/optimizerDuck/Resources/Languages/Translations.resx+++ b/optimizerDuck/Resources/Languages/Translations.resx@@ -736,6 +736,12 @@ Current version: {0}</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.UserExperience.DisableVisualEffects.Name" xml:space="preserve">+ <value>Disable Visual Effects</value>+ </data>+ <data name="Optimizer.UserExperience.DisableVisualEffects.ShortDescription" xml:space="preserve">+ <value>Disables taskbar animations, listview shadows, window transparency, and Aero Peek to free up GPU/CPU resources for better performance.</value></data><data name="Optimizer.Gpu.AmdDisableUlps.Name" xml:space="preserve"><value>Disable AMD ULPS</value>@@ -800,23 +806,41 @@ Current version: {0}</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="Features.Preferences.TaskbarExtraButtons.Name" xml:space="preserve">- <value>Extra Taskbar Buttons</value>+ <data name="Features.Preferences.TaskbarSearchBox.Name" xml:space="preserve">+ <value>Taskbar Search Box</value>+ </data>+ <data name="Features.Preferences.TaskbarSearchBox.Description" xml:space="preserve">+ <value>Controls visibility of the search box on the taskbar.</value>+ </data>+ <data name="Features.Preferences.BingSearchInStartMenu.Name" xml:space="preserve">+ <value>Bing Search in Start Menu</value>+ </data>+ <data name="Features.Preferences.BingSearchInStartMenu.Description" xml:space="preserve">+ <value>Controls Bing web search results appearing in the Start menu search.</value>+ </data>+ <data name="Features.Preferences.TaskbarChatButton.Name" xml:space="preserve">+ <value>Taskbar Chat Button</value></data>- <data name="Features.Preferences.TaskbarExtraButtons.Description" xml:space="preserve">- <value>Controls visibility of Chat and Task View buttons on the taskbar.</value>+ <data name="Features.Preferences.TaskbarChatButton.Description" xml:space="preserve">+ <value>Controls visibility of the Chat (Teams) button on the taskbar.</value></data>- <data name="Features.Preferences.TaskbarSearchAndBing.Name" xml:space="preserve">- <value>Taskbar Search & Bing</value>+ <data name="Features.Preferences.TaskbarTaskViewButton.Name" xml:space="preserve">+ <value>Taskbar Task View Button</value></data>- <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 name="Features.Preferences.TaskbarTaskViewButton.Description" xml:space="preserve">+ <value>Controls visibility of the Task View button on the taskbar.</value></data>- <data name="Features.Preferences.MeetNowAndPeople.Name" xml:space="preserve">- <value>Meet Now & People</value>+ <data name="Features.Preferences.MeetNow.Name" xml:space="preserve">+ <value>Meet Now</value></data>- <data name="Features.Preferences.MeetNowAndPeople.Description" xml:space="preserve">- <value>Controls Meet Now (Skype) and People icons in the taskbar notification area.</value>+ <data name="Features.Preferences.MeetNow.Description" xml:space="preserve">+ <value>Controls the Meet Now (Skype) icon in the taskbar notification area.</value>+ </data>+ <data name="Features.Preferences.TaskbarPeople.Name" xml:space="preserve">+ <value>Taskbar People</value>+ </data>+ <data name="Features.Preferences.TaskbarPeople.Description" xml:space="preserve">+ <value>Controls the People icon on the taskbar for quick contacts access.</value></data><data name="Features.Preferences.TaskbarEndTask.Name" xml:space="preserve"><value>Taskbar End Task</value>@@ -830,23 +854,35 @@ Current version: {0}</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="Features.Preferences.VisualEffects.Name" xml:space="preserve">- <value>Visual Effects</value>+ <data name="Features.Preferences.ExplorerSyncNotifications.Name" xml:space="preserve">+ <value>Explorer Sync Notifications</value>+ </data>+ <data name="Features.Preferences.ExplorerSyncNotifications.Description" xml:space="preserve">+ <value>Controls OneDrive and cloud sync provider notifications in File Explorer.</value>+ </data>+ <data name="Features.Preferences.SystemSuggestions.Name" xml:space="preserve">+ <value>System Suggestions</value>+ </data>+ <data name="Features.Preferences.SystemSuggestions.Description" xml:space="preserve">+ <value>Controls Windows tips and app suggestions in the Settings panel.</value>+ </data>+ <data name="Features.Preferences.ToastNotifications.Name" xml:space="preserve">+ <value>Toast Notifications</value></data>- <data name="Features.Preferences.VisualEffects.Description" xml:space="preserve">- <value>Controls taskbar animations, listview shadows, window transparency, and Aero Peek effects.</value>+ <data name="Features.Preferences.ToastNotifications.Description" xml:space="preserve">+ <value>Controls toast popup notifications and lock screen notifications.</value></data>- <data name="Features.Preferences.ExplorerAndSystemNotifications.Name" xml:space="preserve">- <value>Explorer & System Notifications</value>+ <data name="Features.Preferences.ShowFileExtensions.Name" xml:space="preserve">+ <value>Show File Extensions</value></data>- <data name="Features.Preferences.ExplorerAndSystemNotifications.Description" xml:space="preserve">- <value>Controls OneDrive sync ads, Windows tips, and toast notifications.</value>+ <data name="Features.Preferences.ShowFileExtensions.Description" xml:space="preserve">+ <value>Shows file extensions (e.g. .txt, .exe) in File Explorer.</value></data>- <data name="Features.Preferences.HiddenFilesAndExtensions.Name" xml:space="preserve">- <value>File Extensions & Hidden Files</value>+ <data name="Features.Preferences.ShowHiddenFiles.Name" xml:space="preserve">+ <value>Show Hidden Files</value></data>- <data name="Features.Preferences.HiddenFilesAndExtensions.Description" xml:space="preserve">- <value>Controls visibility of file extensions and hidden/system files in Explorer.</value>+ <data name="Features.Preferences.ShowHiddenFiles.Description" xml:space="preserve">+ <value>Shows hidden files and folders in File Explorer.</value></data><data name="Features.Preferences.ClassicContextMenu.Name" xml:space="preserve"><value>Classic Context Menu</value>diff --git a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx b/optimizerDuck/Resources/Languages/Translations.vi-VN.resxindex 32e8130..12e0c46 100644--- a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx+++ b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx@@ -730,6 +730,12 @@ Phiên bản hiện tại: {0} </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.UserExperience.DisableVisualEffects.Name" xml:space="preserve">+ <value>Tắt hiệu ứng hình ảnh</value>+ </data>+ <data name="Optimizer.UserExperience.DisableVisualEffects.ShortDescription" xml:space="preserve">+ <value>Tắt hiệu ứng chuyển động, bóng đổ, độ trong suốt và Aero Peek để giải phóng tài nguyên GPU/CPU cho hiệu suất tốt hơn.</value></data><data name="Optimizer.Gpu.AmdDisableUlps.Name" xml:space="preserve"><value>Vô hiệu hóa AMD ULPS</value>@@ -794,23 +800,41 @@ Phiên bản hiện tại: {0} </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="Features.Preferences.TaskbarExtraButtons.Name" xml:space="preserve">- <value>Các nút phụ trên Taskbar</value>+ <data name="Features.Preferences.TaskbarSearchBox.Name" xml:space="preserve">+ <value>Ô tìm kiếm trên Taskbar</value>+ </data>+ <data name="Features.Preferences.TaskbarSearchBox.Description" xml:space="preserve">+ <value>Kiểm soát hiển thị ô tìm kiếm trên thanh tác vụ.</value>+ </data>+ <data name="Features.Preferences.BingSearchInStartMenu.Name" xml:space="preserve">+ <value>Tìm kiếm Bing trong Start Menu</value>+ </data>+ <data name="Features.Preferences.BingSearchInStartMenu.Description" xml:space="preserve">+ <value>Kiểm soát kết quả tìm kiếm Bing xuất hiện trong menu Start.</value>+ </data>+ <data name="Features.Preferences.TaskbarChatButton.Name" xml:space="preserve">+ <value>Nút Chat trên Taskbar</value></data>- <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 name="Features.Preferences.TaskbarChatButton.Description" xml:space="preserve">+ <value>Kiểm soát hiển thị nút Chat (Teams) trên thanh tác vụ.</value></data>- <data name="Features.Preferences.TaskbarSearchAndBing.Name" xml:space="preserve">- <value>Tìm kiếm & Bing trên Taskbar</value>+ <data name="Features.Preferences.TaskbarTaskViewButton.Name" xml:space="preserve">+ <value>Nút Task View trên Taskbar</value></data>- <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 name="Features.Preferences.TaskbarTaskViewButton.Description" xml:space="preserve">+ <value>Kiểm soát hiển thị nút Task View trên thanh tác vụ.</value></data>- <data name="Features.Preferences.MeetNowAndPeople.Name" xml:space="preserve">- <value>Meet Now & People</value>+ <data name="Features.Preferences.MeetNow.Name" xml:space="preserve">+ <value>Meet Now</value></data>- <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 name="Features.Preferences.MeetNow.Description" xml:space="preserve">+ <value>Kiểm soát biểu tượng Meet Now (Skype) trong khu vực thông báo.</value>+ </data>+ <data name="Features.Preferences.TaskbarPeople.Name" xml:space="preserve">+ <value>People trên Taskbar</value>+ </data>+ <data name="Features.Preferences.TaskbarPeople.Description" xml:space="preserve">+ <value>Kiểm soát biểu tượng People trên thanh tác vụ để truy cập nhanh danh bạ.</value></data><data name="Features.Preferences.TaskbarEndTask.Name" xml:space="preserve"><value>Kết thúc tác vụ trên Taskbar</value>@@ -824,23 +848,35 @@ Phiên bản hiện tại: {0} </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="Features.Preferences.VisualEffects.Name" xml:space="preserve">- <value>Hiệu ứng hình ảnh</value>+ <data name="Features.Preferences.ExplorerSyncNotifications.Name" xml:space="preserve">+ <value>Thông báo đồng bộ Explorer</value>+ </data>+ <data name="Features.Preferences.ExplorerSyncNotifications.Description" xml:space="preserve">+ <value>Kiểm soát thông báo đồng bộ OneDrive và nhà cung cấp đám mây trong Explorer.</value>+ </data>+ <data name="Features.Preferences.SystemSuggestions.Name" xml:space="preserve">+ <value>Gợi ý hệ thống</value>+ </data>+ <data name="Features.Preferences.SystemSuggestions.Description" xml:space="preserve">+ <value>Kiểm soát mẹo Windows và gợi ý ứng dụng trong bảng Cài đặt.</value>+ </data>+ <data name="Features.Preferences.ToastNotifications.Name" xml:space="preserve">+ <value>Thông báo Toast</value></data>- <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 name="Features.Preferences.ToastNotifications.Description" xml:space="preserve">+ <value>Kiểm soát thông báo popup toast và thông báo trên màn hình khóa.</value></data>- <data name="Features.Preferences.ExplorerAndSystemNotifications.Name" xml:space="preserve">- <value>Explorer & Thông báo hệ thống</value>+ <data name="Features.Preferences.ShowFileExtensions.Name" xml:space="preserve">+ <value>Hiển thị đuôi tệp</value></data>- <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 name="Features.Preferences.ShowFileExtensions.Description" xml:space="preserve">+ <value>Hiển thị đuôi tệp (VD: .txt, .exe) trong Explorer.</value></data>- <data name="Features.Preferences.HiddenFilesAndExtensions.Name" xml:space="preserve">- <value>Đuôi tệp & Tệp ẩn</value>+ <data name="Features.Preferences.ShowHiddenFiles.Name" xml:space="preserve">+ <value>Hiển thị tệp ẩn</value></data>- <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 name="Features.Preferences.ShowHiddenFiles.Description" xml:space="preserve">+ <value>Hiển thị tệp và thư mục ẩn trong Explorer.</value></data><data name="Features.Preferences.ClassicContextMenu.Name" xml:space="preserve"><value>Menu chuột phải cổ điển</value>