Skip to content

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

feat: add desktop and explorer feature toggles

fatDuck5a57575065d9
diff --git a/optimizerDuck/Core/Features/Desktop.cs b/optimizerDuck/Core/Features/Desktop.cs
index a4427df..ba79993 100644
--- a/optimizerDuck/Core/Features/Desktop.cs
+++ b/optimizerDuck/Core/Features/Desktop.cs
@@ -62,6 +62,78 @@ public class Desktop : IFeatureCategory
];
}
+ [Feature(Section = nameof(Sections.Icons), Icon = SymbolRegular.Folder24)]
+ public class ShowUserFiles : BaseFeature
+ {
+ protected override bool NeedsPostAction => true;
+
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel",
+ Name = "{59031a47-3f72-44a7-89c5-5595fe6b30ee}",
+ OnValue = 0,
+ OffValue = 1,
+ DefaultValue = 1
+ }
+ ];
+ }
+
+ [Feature(Section = nameof(Sections.Icons), Icon = SymbolRegular.Desktop24)]
+ public class ShowNetwork : BaseFeature
+ {
+ protected override bool NeedsPostAction => true;
+
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel",
+ Name = "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}",
+ OnValue = 0,
+ OffValue = 1,
+ DefaultValue = 1
+ }
+ ];
+ }
+
+ [Feature(Section = nameof(Sections.Icons), Icon = SymbolRegular.Grid24)]
+ public class ShowControlPanel : BaseFeature
+ {
+ protected override bool NeedsPostAction => true;
+
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel",
+ Name = "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}",
+ OnValue = 0,
+ OffValue = 1,
+ DefaultValue = 1
+ }
+ ];
+ }
+
+ [Feature(Section = nameof(Sections.Icons), Icon = SymbolRegular.Desktop24)]
+ public class ShowDesktopIcons : BaseFeature
+ {
+ protected override bool NeedsPostAction => true;
+
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer",
+ Name = "NoDesktop",
+ OnValue = 0,
+ OffValue = 1,
+ DefaultValue = 0
+ }
+ ];
+ }
+
[Feature(Section = nameof(Sections.Behaviors), Icon = SymbolRegular.ArrowForward24)]
public class RemoveShortcutArrow : BaseFeature
diff --git a/optimizerDuck/Core/Features/Preferences.cs b/optimizerDuck/Core/Features/Preferences.cs
index d0a938a..b0e2e61 100644
--- a/optimizerDuck/Core/Features/Preferences.cs
+++ b/optimizerDuck/Core/Features/Preferences.cs
@@ -285,6 +285,40 @@ public class Preferences : IFeatureCategory
];
}
+ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.DocumentText24)]
+ public class ClipboardHistory : BaseFeature
+ {
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKCU\Software\Microsoft\Clipboard",
+ Name = "EnableClipboardHistory",
+ OnValue = 1,
+ OffValue = 0,
+ DefaultValue = 0
+ }
+ ];
+ }
+
+ [Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.CursorClick24)]
+ public class WindowShake : BaseFeature
+ {
+ protected override bool NeedsPostAction => true;
+
+ protected override IEnumerable<RegistryToggle> RegistryToggles =>
+ [
+ new()
+ {
+ Path = @"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced",
+ Name = "DisallowShaking",
+ OnValue = 0,
+ OffValue = 1,
+ DefaultValue = 0
+ }
+ ];
+ }
+
[Feature(Section = nameof(Sections.Explorer), Icon = SymbolRegular.Clock24)]
public class ShowSecondsInSystemClock : BaseFeature
{
@@ -366,4 +400,4 @@ public class Preferences : IFeatureCategory
return Task.CompletedTask;
}
}
-}
\ No newline at end of file
+}
diff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resx
index fc39110..77063e9 100644
--- a/optimizerDuck/Resources/Languages/Translations.resx
+++ b/optimizerDuck/Resources/Languages/Translations.resx
@@ -932,6 +932,18 @@ Current version: {0}</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.ClipboardHistory.Name" xml:space="preserve">
+ <value>Clipboard History</value>
+ </data>
+ <data name="Features.Preferences.ClipboardHistory.Description" xml:space="preserve">
+ <value>Keep multiple copied items so you can paste them later with Win+V.</value>
+ </data>
+ <data name="Features.Preferences.WindowShake.Name" xml:space="preserve">
+ <value>Window Shake</value>
+ </data>
+ <data name="Features.Preferences.WindowShake.Description" xml:space="preserve">
+ <value>Shake a window to minimize all other open windows.</value>
+ </data>
<data name="Features.Preferences.ClassicContextMenu.Name" xml:space="preserve">
<value>Classic Context Menu</value>
</data>
@@ -1594,6 +1606,30 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<data name="Features.Desktop.ShowRecycleBin.Description" xml:space="preserve">
<value>Display the Recycle Bin icon on your desktop</value>
</data>
+ <data name="Features.Desktop.ShowUserFiles.Name" xml:space="preserve">
+ <value>Show User Files</value>
+ </data>
+ <data name="Features.Desktop.ShowUserFiles.Description" xml:space="preserve">
+ <value>Display your user profile folder as a desktop icon</value>
+ </data>
+ <data name="Features.Desktop.ShowNetwork.Name" xml:space="preserve">
+ <value>Show Network</value>
+ </data>
+ <data name="Features.Desktop.ShowNetwork.Description" xml:space="preserve">
+ <value>Display the Network icon on your desktop</value>
+ </data>
+ <data name="Features.Desktop.ShowControlPanel.Name" xml:space="preserve">
+ <value>Show Control Panel</value>
+ </data>
+ <data name="Features.Desktop.ShowControlPanel.Description" xml:space="preserve">
+ <value>Display the Control Panel icon on your desktop</value>
+ </data>
+ <data name="Features.Desktop.ShowDesktopIcons.Name" xml:space="preserve">
+ <value>Show Desktop Icons</value>
+ </data>
+ <data name="Features.Desktop.ShowDesktopIcons.Description" xml:space="preserve">
+ <value>Show or hide all desktop icons at once</value>
+ </data>
<data name="Features.Desktop.RemoveShortcutArrow.Name" xml:space="preserve">
<value>Remove Shortcut Arrow</value>
</data>
@@ -1612,4 +1648,4 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<data name="Features.Preferences.DisableBingSearch.Description" xml:space="preserve">
<value>Remove Bing web results and suggestions from Windows Search</value>
</data>
-</root>
\ No newline at end of file
+</root>
diff --git a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
index daf6795..cf164b8 100644
--- a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
+++ b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
@@ -896,6 +896,18 @@ Phiên bản hiện tại: {0} </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.ClipboardHistory.Name" xml:space="preserve">
+ <value>Lịch sử khay nhớ tạm</value>
+ </data>
+ <data name="Features.Preferences.ClipboardHistory.Description" xml:space="preserve">
+ <value>Lưu nhiều nội dung đã sao chép để bạn có thể dán lại sau bằng Win+V.</value>
+ </data>
+ <data name="Features.Preferences.WindowShake.Name" xml:space="preserve">
+ <value>Lắc cửa sổ</value>
+ </data>
+ <data name="Features.Preferences.WindowShake.Description" xml:space="preserve">
+ <value>Lắc một cửa sổ để thu nhỏ tất cả các cửa sổ khác đang mở.</value>
+ </data>
<data name="Features.Preferences.ClassicContextMenu.Name" xml:space="preserve">
<value>Menu chuột phải cổ điển</value>
</data>
@@ -1586,6 +1598,30 @@ 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.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.ShowUserFiles.Name" xml:space="preserve">
+ <value>Hiển thị Thư mục người dùng</value>
+ </data>
+ <data name="Features.Desktop.ShowUserFiles.Description" xml:space="preserve">
+ <value>Hiển thị thư mục hồ sơ người dùng của bạn dưới dạng biểu tượng Desktop</value>
+ </data>
+ <data name="Features.Desktop.ShowNetwork.Name" xml:space="preserve">
+ <value>Hiển thị Mạng</value>
+ </data>
+ <data name="Features.Desktop.ShowNetwork.Description" xml:space="preserve">
+ <value>Hiển thị biểu tượng Mạng trên màn hình Desktop của bạn</value>
+ </data>
+ <data name="Features.Desktop.ShowControlPanel.Name" xml:space="preserve">
+ <value>Hiển thị Control Panel</value>
+ </data>
+ <data name="Features.Desktop.ShowControlPanel.Description" xml:space="preserve">
+ <value>Hiển thị biểu tượng Control Panel trên màn hình Desktop của bạn</value>
+ </data>
+ <data name="Features.Desktop.ShowDesktopIcons.Name" xml:space="preserve">
+ <value>Hiển thị biểu tượng Desktop</value>
+ </data>
+ <data name="Features.Desktop.ShowDesktopIcons.Description" xml:space="preserve">
+ <value>Hiện hoặc ẩn toàn bộ biểu tượng trên Desktop cùng lúc</value>
+ </data>
<data name="Features.Desktop.RemoveShortcutArrow.Name" xml:space="preserve">
<value>Xóa mũi tên lối tắt</value>
</data>
@@ -1604,4 +1640,4 @@ Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và
<data name="Features.Preferences.DisableBingSearch.Description" xml:space="preserve">
<value>Xóa kết quả tìm kiếm web và đề xuất của Bing khỏi Windows Search</value>
</data>
-</root>
\ No newline at end of file
+</root>