Skip to content

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

ref: change Author to GetHelp in Settings.About

itsfatduck9aba678feb7e
diff --git a/optimizerDuck/Common/Helpers/Shared.cs b/optimizerDuck/Common/Helpers/Shared.cs
index 34d59fd..4f555bd 100644
--- a/optimizerDuck/Common/Helpers/Shared.cs
+++ b/optimizerDuck/Common/Helpers/Shared.cs
@@ -20,7 +20,7 @@ public static class Shared
public const string DiscordInviteURL = "https://discord.gg/GqvJYQsgSm";
public const string WebsiteURL = "https://optimizerduck.vercel.app/";
public const string GitHubRepoURL = "https://github.com/itsfatduck/optimizerDuck";
- public const string MeURL = "https://optimizerduck.vercel.app/docs/contribute/support-me";
+ public const string CommunityURL = "https://optimizerduck.vercel.app/docs/community";
public const string ContributeURL = "https://optimizerduck.vercel.app/docs/contribute/overview";
public const string AcknowledgementsURL =
diff --git a/optimizerDuck/Core/Models/ScheduledTask/ScheduledTaskModel.cs b/optimizerDuck/Core/Models/ScheduledTask/ScheduledTaskModel.cs
index fe9f601..733579d 100644
--- a/optimizerDuck/Core/Models/ScheduledTask/ScheduledTaskModel.cs
+++ b/optimizerDuck/Core/Models/ScheduledTask/ScheduledTaskModel.cs
@@ -109,7 +109,7 @@ public partial class ScheduledTaskModel : ObservableObject
/// </summary>
public TimeSpan DailyTriggerTime { get; init; }
/// <summary>
- /// Indicates whether the task runs with highest privileges.
+ /// Indicates whether the task runs with the highest privileges.
/// </summary>
public bool RunWithHighestPrivileges { get; init; }
/// <summary>
diff --git a/optimizerDuck/Resources/Languages/Translations.Designer.cs b/optimizerDuck/Resources/Languages/Translations.Designer.cs
index 84b365b..c77f626 100644
--- a/optimizerDuck/Resources/Languages/Translations.Designer.cs
+++ b/optimizerDuck/Resources/Languages/Translations.Designer.cs
@@ -1,7 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -849,7 +848,7 @@ namespace optimizerDuck.Resources.Languages {
/// </summary>
internal static string DiskCleanup_FilesCount {
get {
- return ResourceManager.GetString("DiskCleanup_FilesCount", resourceCulture);
+ return ResourceManager.GetString("DiskCleanup.FilesCount", resourceCulture);
}
}
@@ -1002,7 +1001,7 @@ namespace optimizerDuck.Resources.Languages {
/// </summary>
internal static string DiskCleanup_ItemsAndFilesSelected {
get {
- return ResourceManager.GetString("DiskCleanup_ItemsAndFilesSelected", resourceCulture);
+ return ResourceManager.GetString("DiskCleanup.ItemsAndFilesSelected", resourceCulture);
}
}
@@ -1326,8 +1325,8 @@ namespace optimizerDuck.Resources.Languages {
/// </summary>
internal static string Optimizer_BloatwareAndServices_ConfigureServices_Progress_ChangeServiceStartupType {
get {
- return ResourceManager.GetString("Optimizer.BloatwareAndServices.ConfigureServices.Progress.ChangeServiceStartupTyp" +
- "e", resourceCulture);
+ return ResourceManager.GetString(("Optimizer.BloatwareAndServices.ConfigureServices.Progress.ChangeServiceStartupTyp" +
+ "e"), resourceCulture);
}
}
@@ -1876,8 +1875,8 @@ namespace optimizerDuck.Resources.Languages {
/// </summary>
internal static string Optimizer_PowerManagement_InstallOptimizerDuckPowerPlan_Error_DetectActivePlanFailed {
get {
- return ResourceManager.GetString("Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Error.DetectActivePlanFai" +
- "led", resourceCulture);
+ return ResourceManager.GetString(("Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Error.DetectActivePlanFai" +
+ "led"), resourceCulture);
}
}
@@ -2828,15 +2827,6 @@ namespace optimizerDuck.Resources.Languages {
}
}
- /// <summary>
- /// Looks up a localized string similar to Create New Task.
- /// </summary>
- internal static string ScheduledTasks_Dialog_CreateTitle {
- get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.CreateTitle", resourceCulture);
- }
- }
-
/// <summary>
/// Looks up a localized string similar to Are you sure you want to delete the task &quot;{0}&quot;? This action cannot be undone..
/// </summary>
@@ -2856,97 +2846,16 @@ namespace optimizerDuck.Resources.Languages {
}
/// <summary>
- /// Looks up a localized string similar to Description.
- /// </summary>
- internal static string ScheduledTasks_Dialog_Description {
- get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.Description", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Optional description.
- /// </summary>
- internal static string ScheduledTasks_Dialog_DescriptionHint {
- get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.DescriptionHint", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Enable this task.
- /// </summary>
- internal static string ScheduledTasks_Dialog_Enabled {
- get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.Enabled", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Executable.
- /// </summary>
- internal static string ScheduledTasks_Dialog_Executable {
- get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.Executable", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Folder Path.
- /// </summary>
- internal static string ScheduledTasks_Dialog_FolderPath {
- get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.FolderPath", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Task Name.
- /// </summary>
- internal static string ScheduledTasks_Dialog_TaskName {
- get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.TaskName", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Enter task name.
+ /// Looks up a localized string similar to Task not found: {0}.
/// </summary>
- internal static string ScheduledTasks_Dialog_TaskNameHint {
+ internal static string ScheduledTasks_Error_TaskNotFound {
get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.TaskNameHint", resourceCulture);
+ return ResourceManager.GetString("ScheduledTasks.Error.TaskNotFound", resourceCulture);
}
}
/// <summary>
- /// Looks up a localized string similar to Trigger.
- /// </summary>
- internal static string ScheduledTasks_Dialog_Trigger {
- get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.Trigger", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to On Boot.
- /// </summary>
- internal static string ScheduledTasks_Dialog_TriggerBoot {
- get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.TriggerBoot", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to On Logon.
- /// </summary>
- internal static string ScheduledTasks_Dialog_TriggerLogon {
- get {
- return ResourceManager.GetString("ScheduledTasks.Dialog.TriggerLogon", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to View, manage, and create Windows scheduled tasks..
+ /// Looks up a localized string similar to View and manage Windows scheduled tasks..
/// </summary>
internal static string ScheduledTasks_Header_Description {
get {
@@ -3206,15 +3115,6 @@ namespace optimizerDuck.Resources.Languages {
}
}
- /// <summary>
- /// Looks up a localized string similar to hi, i&apos;m the creator of this app. i love cats..
- /// </summary>
- internal static string Settings_About_Author_Description {
- get {
- return ResourceManager.GetString("Settings.About.Author.Description", resourceCulture);
- }
- }
-
/// <summary>
/// Looks up a localized string similar to Thank you for your trust and support &lt;3!
///Current version: {0}.
@@ -3252,6 +3152,15 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Community.
+ /// </summary>
+ internal static string Settings_About_LearnMore_Community {
+ get {
+ return ResourceManager.GetString("Settings.About.LearnMore.Community", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Contribute.
/// </summary>
@@ -3279,6 +3188,24 @@ namespace optimizerDuck.Resources.Languages {
}
}
+ /// <summary>
+ /// Looks up a localized string similar to If you need help with optimization or have any questions, please join our community for quick support..
+ /// </summary>
+ internal static string Settings_About_NeedHelp_Description {
+ get {
+ return ResourceManager.GetString("Settings.About.NeedHelp.Description", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Need help?.
+ /// </summary>
+ internal static string Settings_About_NeedHelp_Title {
+ get {
+ return ResourceManager.GetString("Settings.About.NeedHelp.Title", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Delete all files downloaded during the optimization process..
/// </summary>
diff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resx
index b291e82..14ad116 100644
--- a/optimizerDuck/Resources/Languages/Translations.resx
+++ b/optimizerDuck/Resources/Languages/Translations.resx
@@ -1123,9 +1123,9 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<data name="DiskCleanup.ItemsAndFilesSelected" xml:space="preserve">
<value>{0} selected • {1} items • {2} files</value>
</data>
- <data name="Settings.About.Author.Description" xml:space="preserve">
- <value>hi, i'm the creator of this app. i love cats.</value>
- </data>
+ <data name="Settings.About.NeedHelp.Title" xml:space="preserve">
+ <value>Need help?</value>
+ </data>
<data name="Sidebar.StartupManager" xml:space="preserve">
<value>Startup Manager</value>
</data>
@@ -1330,4 +1330,13 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<value>Error</value>
</data>
+ <data name="Settings.About.NeedHelp.Description" xml:space="preserve">
+ <value>If you need help with optimization or have any questions, please join our community for quick support.</value>
+ </data>
+ <data name="Settings.About.LearnMore.Community" xml:space="preserve">
+ <value>Community</value>
+ </data>
+ <data name="ScheduledTasks.Error.TaskNotFound" xml:space="preserve">
+ <value>Task not found: {0}</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
index 4c217a0..b469c0f 100644
--- a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
+++ b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
@@ -1118,8 +1118,8 @@ Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và
<data name="DiskCleanup.ItemsAndFilesSelected" xml:space="preserve">
<value>Đã chọn {0} • {1} mục • {2} tệp</value>
</data>
- <data name="Settings.About.Author.Description" xml:space="preserve">
- <value>hi, tôi là người tạo ra ứng dụng này. tôi yêu mèo.</value>
+ <data name="Settings.About.NeedHelp.Title" xml:space="preserve">
+ <value>Cần hỗ trợ?</value>
</data>
<data name="Sidebar.StartupManager" xml:space="preserve">
<value>Quản Lý Khởi Động</value>
@@ -1310,4 +1310,13 @@ Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và
<data name="Settings.About.LearnMore.Website" xml:space="preserve">
<value>Trang Web Chính Thức</value>
</data>
+ <data name="Settings.About.NeedHelp.Description" xml:space="preserve">
+ <value>Nếu bạn cần hỗ trợ về tối ưu hoặc có bất kỳ thắc mắc nào, hãy tham gia cộng đồng của chúng tôi để được hỗ trợ nhanh chóng.</value>
+ </data>
+ <data name="Settings.About.LearnMore.Community" xml:space="preserve">
+ <value>Cộng đồng</value>
+ </data>
+ <data name="ScheduledTasks.Error.TaskNotFound" xml:space="preserve">
+ <value>Không tìm thấy task: {0}</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/optimizerDuck/Services/OptimizationServices/ScheduledTaskService.cs b/optimizerDuck/Services/OptimizationServices/ScheduledTaskService.cs
index 2c48656..4fb0033 100644
--- a/optimizerDuck/Services/OptimizationServices/ScheduledTaskService.cs
+++ b/optimizerDuck/Services/OptimizationServices/ScheduledTaskService.cs
@@ -1,6 +1,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.Win32.TaskScheduler;
using optimizerDuck.Core.Models.ScheduledTask;
+using optimizerDuck.Resources.Languages;
namespace optimizerDuck.Services.OptimizationServices;
@@ -32,7 +33,7 @@ public class ScheduledTaskService(ILogger<ScheduledTaskService> logger)
public static void DisableTask(string fullPath)
{
using var ts = new TaskService();
- var task = ts.GetTask(fullPath) ?? throw new InvalidOperationException($"Task not found: {fullPath}");
+ var task = ts.GetTask(fullPath) ?? throw new InvalidOperationException(string.Format(Translations.ScheduledTasks_Error_TaskNotFound, fullPath));
task.Enabled = false;
}
@@ -42,7 +43,7 @@ public class ScheduledTaskService(ILogger<ScheduledTaskService> logger)
public static void EnableTask(string fullPath)
{
using var ts = new TaskService();
- var task = ts.GetTask(fullPath) ?? throw new InvalidOperationException($"Task not found: {fullPath}");
+ var task = ts.GetTask(fullPath) ?? throw new InvalidOperationException(string.Format(Translations.ScheduledTasks_Error_TaskNotFound, fullPath));
task.Enabled = true;
}
diff --git a/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs
index b7cb3c5..723d75b 100644
--- a/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs
@@ -37,11 +37,8 @@ public partial class SettingsViewModel(
//Learn more links
public string Website { get; } = Shared.WebsiteURL;
- public string DiscordInvite { get; } = Shared.DiscordInviteURL;
-
- public string GitHubRepo { get; } = Shared.GitHubRepoURL;
public string Documentation { get; } = Shared.WebsiteURL + "docs/guides/getting-started";
- public string Me { get; } = Shared.MeURL;
+ public string Community { get; } = Shared.CommunityURL;
public string Contribute { get; } = Shared.ContributeURL;
public string Acknowledgements { get; } = Shared.AcknowledgementsURL;
@@ -185,11 +182,11 @@ public partial class SettingsViewModel(
UseShellExecute = true
});
break;
- case "Me":
- logger.LogInformation("Opening page: {Url}", Shared.MeURL);
+ case "Help":
+ logger.LogInformation("Opening page: {Url}", Shared.CommunityURL);
Process.Start(new ProcessStartInfo
{
- FileName = Shared.MeURL,
+ FileName = Shared.CommunityURL,
UseShellExecute = true
});
break;
diff --git a/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml b/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml
index 8f16089..4493861 100644
--- a/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml
+++ b/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml
@@ -175,6 +175,7 @@
FontTypography="Caption"
Text="{ext:Loc ScheduledTasks.Details.Action}" />
<ui:TextBlock
+ FontFamily="Consolas"
FontTypography="Body"
Margin="0,2,0,0"
Text=""
diff --git a/optimizerDuck/UI/Views/Pages/BloatwarePage.xaml b/optimizerDuck/UI/Views/Pages/BloatwarePage.xaml
index 6b65d39..10b7685 100644
--- a/optimizerDuck/UI/Views/Pages/BloatwarePage.xaml
+++ b/optimizerDuck/UI/Views/Pages/BloatwarePage.xaml
@@ -178,20 +178,38 @@
VerticalAlignment="Center">
<ComboBoxItem HorizontalContentAlignment="Left">
<Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
- <ui:SymbolIcon HorizontalAlignment="Left" Margin="0,0,6,0" Symbol="TextSortAscending24" />
- <TextBlock Grid.Column="1" HorizontalAlignment="Left" Text="{ext:Loc Common.SortBy.Name}" />
+ <ui:SymbolIcon
+ HorizontalAlignment="Left"
+ Margin="0,0,6,0"
+ Symbol="TextSortAscending24" />
+ <TextBlock
+ Grid.Column="1"
+ HorizontalAlignment="Left"
+ Text="{ext:Loc Common.SortBy.Name}" />
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
<Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
- <ui:SymbolIcon HorizontalAlignment="Left" Margin="0,0,6,0" Symbol="Certificate24" />
- <TextBlock Grid.Column="1" HorizontalAlignment="Left" Text="{ext:Loc Common.SortBy.Publisher}" />
+ <ui:SymbolIcon
+ HorizontalAlignment="Left"
+ Margin="0,0,6,0"
+ Symbol="Certificate24" />
+ <TextBlock
+ Grid.Column="1"
+ HorizontalAlignment="Left"
+ Text="{ext:Loc Common.SortBy.Publisher}" />
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
<Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
- <ui:SymbolIcon HorizontalAlignment="Left" Margin="0,0,6,0" Symbol="Shield24" />
- <TextBlock Grid.Column="1" HorizontalAlignment="Left" Text="{ext:Loc Common.SortBy.Risk}" />
+ <ui:SymbolIcon
+ HorizontalAlignment="Left"
+ Margin="0,0,6,0"
+ Symbol="Shield24" />
+ <TextBlock
+ Grid.Column="1"
+ HorizontalAlignment="Left"
+ Text="{ext:Loc Common.SortBy.Risk}" />
</Grid>
</ComboBoxItem>
</ComboBox>
diff --git a/optimizerDuck/UI/Views/Pages/DiskCleanupPage.xaml b/optimizerDuck/UI/Views/Pages/DiskCleanupPage.xaml
index 9da6c04..138c2c5 100644
--- a/optimizerDuck/UI/Views/Pages/DiskCleanupPage.xaml
+++ b/optimizerDuck/UI/Views/Pages/DiskCleanupPage.xaml
@@ -99,7 +99,7 @@
Appearance="Secondary"
FontTypography="Body"
Margin="0,2,0,0"
- Text="{ext:Loc DiskCleanup_ItemsAndFilesSelected,
+ Text="{ext:Loc DiskCleanup.ItemsAndFilesSelected,
{Binding ViewModel.TotalSelectedSizeFormatted},
{Binding ViewModel.SelectedCount},
{Binding ViewModel.TotalSelectedFileCount}}" />
@@ -360,7 +360,7 @@
<ui:TextBlock
FontTypography="Caption"
Foreground="{DynamicResource TextFillColorInverseBrush}"
- Text="{ext:Loc DiskCleanup_FilesCount,
+ Text="{ext:Loc DiskCleanup.FilesCount,
{Binding FileCount}}" />
</StackPanel>
</Border>
diff --git a/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml b/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml
index a34ed23..f2a4b44 100644
--- a/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml
+++ b/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml
@@ -1,7 +1,16 @@
<Page
+ Foreground="{DynamicResource TextFillColorPrimaryBrush}"
+ Margin="0,32,0,0"
+ ScrollViewer.CanContentScroll="False"
+ Title="ScheduledTasksPage"
+ d:DataContext="{d:DesignInstance local:ScheduledTasksPage}"
+ d:DesignHeight="1200"
+ d:DesignWidth="800"
+ mc:Ignorable="d"
+ ui:Design.Background="Black"
+ ui:Design.Foreground="White"
x:Class="optimizerDuck.UI.Views.Pages.ScheduledTasksPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:optimizerDuck.Common.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ext="clr-namespace:optimizerDuck.Common.Extensions"
@@ -9,16 +18,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:models="clr-namespace:optimizerDuck.Core.Models.ScheduledTask"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
- Title="ScheduledTasksPage"
- Margin="0,32,0,0"
- d:DataContext="{d:DesignInstance local:ScheduledTasksPage}"
- d:DesignHeight="1200"
- d:DesignWidth="800"
- ui:Design.Background="Black"
- ui:Design.Foreground="White"
- Foreground="{DynamicResource TextFillColorPrimaryBrush}"
- ScrollViewer.CanContentScroll="False"
- mc:Ignorable="d">
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Page.Resources>
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
@@ -38,25 +38,25 @@
<StackPanel Grid.Column="0">
<ui:TextBlock FontTypography="Title" Text="{ext:Loc ScheduledTasks.Header.Title}" />
<ui:TextBlock
- Margin="0,4,0,0"
Appearance="Secondary"
FontTypography="Body"
+ Margin="0,4,0,0"
Text="{ext:Loc ScheduledTasks.Header.Description}"
TextWrapping="Wrap" />
</StackPanel>
<WrapPanel
Grid.Column="1"
- VerticalAlignment="Center"
- Orientation="Horizontal">
+ Orientation="Horizontal"
+ VerticalAlignment="Center">
<ui:Button
- Margin="0,0,8,0"
Appearance="Secondary"
Command="{Binding ViewModel.OpenTaskSchedulerCommand}"
Content="{ext:Loc ScheduledTasks.Menu.OpenSettings}"
Icon="{ui:SymbolIcon Settings24,
- FontSize=18}" />
+ FontSize=18}"
+ Margin="0,0,8,0" />
<ui:Button
- Appearance="Secondary"
+ Appearance="Primary"
Command="{Binding ViewModel.RefreshCommand}"
Content="{ext:Loc StartupManager.Menu.Refresh}"
Icon="{ui:SymbolIcon ArrowClockwise24,
@@ -69,15 +69,15 @@
<Border Grid.Row="1" Visibility="{Binding ViewModel.IsLoading, Converter={StaticResource BooleanToVisibilityConverter}}">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<ui:ProgressRing
- Width="48"
Height="48"
- Margin="0,0,0,16"
HorizontalAlignment="Center"
+ IsIndeterminate="True"
+ Margin="0,0,0,16"
VerticalAlignment="Center"
- IsIndeterminate="True" />
+ Width="48" />
<ui:TextBlock
- HorizontalAlignment="Center"
FontTypography="BodyStrong"
+ HorizontalAlignment="Center"
Text="{ext:Loc ScheduledTasks.Loading}" />
</StackPanel>
</Border>
@@ -94,24 +94,24 @@
Orientation="Horizontal">
<!-- Search -->
<ui:TextBox
- MinWidth="250"
- Margin="0,0,8,0"
- VerticalAlignment="Center"
Icon="{ui:SymbolIcon Search24}"
+ Margin="0,0,8,0"
+ MinWidth="250"
PlaceholderText="{ext:Loc Common.Search.Placeholder}"
- Text="{Binding ViewModel.SearchText, UpdateSourceTrigger=PropertyChanged}" />
+ Text="{Binding ViewModel.SearchText, UpdateSourceTrigger=PropertyChanged}"
+ VerticalAlignment="Center" />
<!-- Sort By -->
<ComboBox
Margin="0,0,8,0"
- VerticalAlignment="Center"
SelectedIndex="{Binding ViewModel.SortByIndex}"
- ToolTip="{ext:Loc Common.SortBy}">
+ ToolTip="{ext:Loc Common.SortBy}"
+ VerticalAlignment="Center">
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
<ui:SymbolIcon
- Margin="0,0,6,0"
HorizontalAlignment="Left"
+ Margin="0,0,6,0"
Symbol="TextSortAscending24" />
<TextBlock
Grid.Column="1"
@@ -120,10 +120,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
<ui:SymbolIcon
- Margin="0,0,6,0"
HorizontalAlignment="Left"
+ Margin="0,0,6,0"
Symbol="ToggleRight24" />
<TextBlock
Grid.Column="1"
@@ -132,10 +132,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
<ui:SymbolIcon
- Margin="0,0,6,0"
HorizontalAlignment="Left"
+ Margin="0,0,6,0"
Symbol="Folder24" />
<TextBlock
Grid.Column="1"
@@ -144,10 +144,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
<ui:SymbolIcon
- Margin="0,0,6,0"
HorizontalAlignment="Left"
+ Margin="0,0,6,0"
Symbol="Flash24" />
<TextBlock
Grid.Column="1"
@@ -159,31 +159,31 @@
<!-- Hide Microsoft -->
<ui:ToggleSwitch
- Margin="0,0,8,0"
- VerticalAlignment="Center"
Cursor="Hand"
IsChecked="{Binding ViewModel.HideMicrosoftTasks, Mode=TwoWay}"
+ Margin="0,0,8,0"
OffContent="{ext:Loc ScheduledTasks.HideMicrosoft}"
- OnContent="{ext:Loc ScheduledTasks.HideMicrosoft}" />
+ OnContent="{ext:Loc ScheduledTasks.HideMicrosoft}"
+ VerticalAlignment="Center" />
</WrapPanel>
<!-- No search results -->
<StackPanel
Grid.Row="1"
- Margin="0,64,0,32"
HorizontalAlignment="Center"
+ Margin="0,64,0,32"
VerticalAlignment="Top"
Visibility="{Binding ViewModel.Tasks.Count, Converter={StaticResource ZeroToVisibilityConverter}}">
<ui:SymbolIcon
- Margin="0,0,0,10"
- HorizontalAlignment="Center"
FontSize="36"
Foreground="{DynamicResource SystemFillColorCriticalBrush}"
+ HorizontalAlignment="Center"
+ Margin="0,0,0,10"
Symbol="SearchInfo24" />
<ui:TextBlock
- HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Body"
+ HorizontalAlignment="Center"
Text="{ext:Loc Bloatware.Search.NoResults}" />
</StackPanel>
@@ -193,10 +193,10 @@
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type models:ScheduledTaskModel}">
<Border
- Margin="0,0,0,6"
- Padding="16,12"
Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
- CornerRadius="6">
+ CornerRadius="6"
+ Margin="0,0,0,6"
+ Padding="16,12">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
@@ -207,12 +207,12 @@
<!-- Task Logo -->
<Image
Grid.Column="0"
- Width="36"
Height="36"
Margin="0,0,12,0"
- VerticalAlignment="Center"
Source="{Binding LogoImage}"
- Stretch="UniformToFill" />
+ Stretch="UniformToFill"
+ VerticalAlignment="Center"
+ Width="36" />
<!-- Task info -->
<StackPanel
@@ -224,10 +224,10 @@
<DockPanel LastChildFill="False">
<ui:TextBlock FontTypography="BodyStrong" Text="{Binding Name}" />
<Border
+ CornerRadius="4"
Margin="8,0,0,0"
Padding="6,1"
- VerticalAlignment="Center"
- CornerRadius="4">
+ VerticalAlignment="Center">
<Border.Style>
<Style TargetType="Border">
<Setter Property="Background" Value="{DynamicResource CardBackgroundFillColorSecondaryBrush}" />
@@ -246,9 +246,9 @@
</Border.Style>
<StackPanel Orientation="Horizontal">
<ui:SymbolIcon
- x:Name="StateIcon"
+ FontSize="10"
Margin="0,0,4,0"
- FontSize="10">
+ x:Name="StateIcon">
<ui:SymbolIcon.Style>
<Style TargetType="ui:SymbolIcon">
<Setter Property="Symbol" Value="Circle24" />
@@ -271,31 +271,31 @@
</ui:SymbolIcon.Style>
</ui:SymbolIcon>
<ui:TextBlock
- VerticalAlignment="Center"
FontTypography="Caption"
Foreground="{Binding ElementName=StateIcon, Path=Foreground}"
- Text="{Binding State}" />
+ Text="{Binding State}"
+ VerticalAlignment="Center" />
</StackPanel>
</Border>
</DockPanel>
<!-- Row 2: Description -->
<ui:TextBlock
- Margin="0,4,0,0"
Appearance="Secondary"
FontTypography="Caption"
+ Margin="0,4,0,0"
Text="{Binding Description}"
TextWrapping="Wrap" />
<!-- Row 3: Path -->
<ui:TextBlock
- Margin="0,2,0,0"
Appearance="Disabled"
FontTypography="Caption"
+ Margin="0,2,0,0"
Text="{Binding FullPath}" />
<!-- Row 4: Trigger badges -->
- <ItemsControl Margin="0,4,0,0" ItemsSource="{Binding TriggerTypes}">
+ <ItemsControl ItemsSource="{Binding TriggerTypes}" Margin="0,4,0,0">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" />
@@ -304,20 +304,20 @@
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border
- Margin="0,0,4,2"
- Padding="6,2"
Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4">
+ CornerRadius="4"
+ Margin="0,0,4,2"
+ Padding="6,2">
<StackPanel Orientation="Horizontal">
<ui:SymbolIcon
- Margin="0,0,4,0"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
+ Margin="0,0,4,0"
Symbol="Timer24" />
<ui:TextBlock
- VerticalAlignment="Center"
FontTypography="Caption"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Text="{Binding}" />
+ Text="{Binding}"
+ VerticalAlignment="Center" />
</StackPanel>
</Border>
</DataTemplate>
@@ -326,9 +326,9 @@
<!-- Row 5: Action summary -->
<ui:TextBlock
- Margin="0,2,0,0"
Appearance="Disabled"
FontTypography="Caption"
+ Margin="0,2,0,0"
Text="{Binding ActionSummary}"
TextTrimming="CharacterEllipsis" />
</StackPanel>
@@ -336,26 +336,26 @@
<!-- Actions -->
<StackPanel
Grid.Column="2"
- VerticalAlignment="Center"
- Orientation="Horizontal">
+ Orientation="Horizontal"
+ VerticalAlignment="Center">
<ui:Button
- Margin="0,0,4,0"
- Padding="8"
Appearance="Transparent"
Command="{Binding DataContext.ViewModel.ViewDetailsCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
Icon="{ui:SymbolIcon Info24,
FontSize=16}"
+ Margin="0,0,4,0"
+ Padding="8"
ToolTip="{ext:Loc ScheduledTasks.Action.Details}" />
<!-- Run: visible only when not running -->
<ui:Button
- Margin="0,0,4,0"
- Padding="8"
Appearance="Transparent"
Command="{Binding DataContext.ViewModel.RunTaskCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
Icon="{ui:SymbolIcon Play24,
FontSize=16}"
+ Margin="0,0,4,0"
+ Padding="8"
ToolTip="{ext:Loc ScheduledTasks.Action.Run}">
<ui:Button.Style>
<Style BasedOn="{StaticResource {x:Type ui:Button}}" TargetType="ui:Button">
@@ -370,30 +370,30 @@
</ui:Button>
<!-- Stop: visible only when running -->
<ui:Button
- Margin="0,0,4,0"
- Padding="8"
Appearance="Transparent"
Command="{Binding DataContext.ViewModel.StopTaskCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
Icon="{ui:SymbolIcon Stop24,
FontSize=16}"
+ Margin="0,0,4,0"
+ Padding="8"
ToolTip="{ext:Loc ScheduledTasks.Action.Stop}"
Visibility="{Binding IsRunning, Converter={StaticResource WpfBoolToVis}}" />
<ui:Button
- Margin="0,0,8,0"
- Padding="8"
Appearance="Transparent"
Command="{Binding DataContext.ViewModel.DeleteTaskCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
Icon="{ui:SymbolIcon Delete24,
FontSize=16}"
+ Margin="0,0,8,0"
+ Padding="8"
ToolTip="{ext:Loc ScheduledTasks.Action.Delete}" />
<ui:ToggleSwitch
- VerticalAlignment="Center"
Cursor="Hand"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
OffContent="{ext:Loc Common.Toggle.Off}"
- OnContent="{ext:Loc Common.Toggle.On}" />
+ OnContent="{ext:Loc Common.Toggle.On}"
+ VerticalAlignment="Center" />
</StackPanel>
</Grid>
</Border>
diff --git a/optimizerDuck/UI/Views/Pages/SettingsPage.xaml b/optimizerDuck/UI/Views/Pages/SettingsPage.xaml
index f04624f..d20ebe0 100644
--- a/optimizerDuck/UI/Views/Pages/SettingsPage.xaml
+++ b/optimizerDuck/UI/Views/Pages/SettingsPage.xaml
@@ -224,16 +224,16 @@
<ui:CardAction
Command="{Binding ViewModel.OpenWebsiteCommand}"
- CommandParameter="Me"
- Icon="{ui:SymbolIcon AnimalCat24}">
+ CommandParameter="Help"
+ Icon="{ui:SymbolIcon ChatBubblesQuestion24}">
<StackPanel>
<ui:TextBlock
FontTypography="BodyStrong"
Padding="0"
- Text="fatDuck (itsfatduck)" />
+ Text="{ext:Loc Settings.About.NeedHelp.Title}" />
<ui:TextBlock
Appearance="Secondary"
- Text="{ext:Loc Settings.About.Author.Description}"
+ Text="{ext:Loc Settings.About.NeedHelp.Description}"
TextWrapping="Wrap" />
</StackPanel>
</ui:CardAction>
@@ -265,6 +265,7 @@
<ui:HyperlinkButton Content="{ext:Loc Settings.About.LearnMore.Website}" NavigateUri="{Binding ViewModel.Website}" />
<ui:HyperlinkButton Content="{ext:Loc Settings.About.LearnMore.Contribute}" NavigateUri="{Binding ViewModel.Contribute}" />
<ui:HyperlinkButton Content="{ext:Loc Settings.About.LearnMore.Documentation}" NavigateUri="{Binding ViewModel.Documentation}" />
+ <ui:HyperlinkButton Content="{ext:Loc Settings.About.LearnMore.Community}" NavigateUri="{Binding ViewModel.Community}" />
<ui:HyperlinkButton Content="{ext:Loc Settings.About.LearnMore.Acknowledgements}" NavigateUri="{Binding ViewModel.Acknowledgements}" />
</StackPanel>
</StackPanel>
diff --git a/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml b/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml
index 22df56b..bede837 100644
--- a/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml
+++ b/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml
@@ -1,7 +1,16 @@
<Page
+ Foreground="{DynamicResource TextFillColorPrimaryBrush}"
+ Margin="0,32,0,0"
+ ScrollViewer.CanContentScroll="False"
+ Title="StartupManagerPage"
+ d:DataContext="{d:DesignInstance local:StartupManagerPage}"
+ d:DesignHeight="1200"
+ d:DesignWidth="800"
+ mc:Ignorable="d"
+ ui:Design.Background="Black"
+ ui:Design.Foreground="White"
x:Class="optimizerDuck.UI.Views.Pages.StartupManagerPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:optimizerDuck.Common.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ext="clr-namespace:optimizerDuck.Common.Extensions"
@@ -9,16 +18,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:models="clr-namespace:optimizerDuck.Core.Models.StartupManager"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
- Title="StartupManagerPage"
- Margin="0,32,0,0"
- d:DataContext="{d:DesignInstance local:StartupManagerPage}"
- d:DesignHeight="1200"
- d:DesignWidth="800"
- ui:Design.Background="Black"
- ui:Design.Foreground="White"
- Foreground="{DynamicResource TextFillColorPrimaryBrush}"
- ScrollViewer.CanContentScroll="False"
- mc:Ignorable="d">
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Page.Resources>
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
@@ -37,16 +37,16 @@
<StackPanel Grid.Column="0">
<ui:TextBlock FontTypography="Title" Text="{ext:Loc StartupManager.Header.Title}" />
<ui:TextBlock
- Margin="0,4,0,0"
Appearance="Secondary"
FontTypography="Body"
+ Margin="0,4,0,0"
Text="{ext:Loc StartupManager.Header.Description}"
TextWrapping="Wrap" />
</StackPanel>
<WrapPanel
Grid.Column="1"
- VerticalAlignment="Center"
- Orientation="Horizontal">
+ Orientation="Horizontal"
+ VerticalAlignment="Center">
<ui:Button
Appearance="Primary"
Command="{Binding ViewModel.RefreshCommand}"
@@ -61,21 +61,21 @@
<Border Grid.Row="1" Visibility="{Binding ViewModel.IsLoading, Converter={StaticResource BooleanToVisibilityConverter}}">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<ui:ProgressRing
- Width="48"
Height="48"
- Margin="0,0,0,16"
HorizontalAlignment="Center"
+ IsIndeterminate="True"
+ Margin="0,0,0,16"
VerticalAlignment="Center"
- IsIndeterminate="True" />
+ Width="48" />
<ui:TextBlock
- HorizontalAlignment="Center"
FontTypography="BodyStrong"
+ HorizontalAlignment="Center"
Text="{ext:Loc StartupManager.Loading}" />
<ui:TextBlock
- Margin="0,4,0,0"
- HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Caption"
+ HorizontalAlignment="Center"
+ Margin="0,4,0,0"
Text="{ext:Loc StartupManager.Loading.Hint}" />
</StackPanel>
</Border>
@@ -99,26 +99,26 @@
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<ui:SymbolIcon
- Margin="0,0,0,15"
- HorizontalAlignment="Center"
FontSize="46"
Foreground="{DynamicResource SystemFillColorCriticalBrush}"
+ HorizontalAlignment="Center"
+ Margin="0,0,0,15"
Symbol="AppGeneric24" />
<ui:TextBlock
- HorizontalAlignment="Center"
FontTypography="Subtitle"
+ HorizontalAlignment="Center"
Text="{ext:Loc StartupManager.Empty.Title}" />
<ui:TextBlock
- Margin="0,0,0,10"
- HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Body"
+ HorizontalAlignment="Center"
+ Margin="0,0,0,10"
Text="{ext:Loc StartupManager.Empty.Description}" />
<ui:Button
- HorizontalAlignment="Center"
Appearance="Primary"
Command="{Binding ViewModel.RefreshCommand}"
Content="{ext:Loc StartupManager.Menu.Refresh}"
+ HorizontalAlignment="Center"
Icon="{ui:SymbolIcon ArrowClockwise24,
FontSize=18}" />
</StackPanel>
@@ -130,27 +130,27 @@
<StackPanel>
<!-- ═══════════ Startup Apps Section ═══════════ -->
<ui:CardExpander
- Margin="0,0,0,12"
Icon="{ui:SymbolIcon Apps24}"
IsExpanded="True"
+ Margin="0,0,0,12"
Visibility="{Binding ViewModel.HasApps, Converter={StaticResource BooleanToVisibilityConverter}}">
<ui:CardExpander.Header>
<StackPanel Orientation="Horizontal">
<ui:TextBlock
- VerticalAlignment="Center"
FontTypography="BodyStrong"
- Text="{ext:Loc StartupManager.Apps.Title}" />
+ Text="{ext:Loc StartupManager.Apps.Title}"
+ VerticalAlignment="Center" />
<Border
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="10"
Margin="8,0,0,0"
Padding="8,2"
- VerticalAlignment="Center"
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="10">
+ VerticalAlignment="Center">
<ui:TextBlock
- VerticalAlignment="Center"
Appearance="Tertiary"
FontTypography="Caption"
- Text="{Binding ViewModel.Apps.Count}" />
+ Text="{Binding ViewModel.Apps.Count}"
+ VerticalAlignment="Center" />
</Border>
</StackPanel>
</ui:CardExpander.Header>
@@ -159,22 +159,22 @@
<!-- Apps Toolbar -->
<WrapPanel Margin="0,0,0,8" Orientation="Horizontal">
<ui:TextBox
- MinWidth="200"
- Margin="0,0,8,0"
- VerticalAlignment="Center"
Icon="{ui:SymbolIcon Search24}"
+ Margin="0,0,8,0"
+ MinWidth="200"
PlaceholderText="{ext:Loc Common.Search.Placeholder}"
- Text="{Binding ViewModel.AppSearchText, UpdateSourceTrigger=PropertyChanged}" />
+ Text="{Binding ViewModel.AppSearchText, UpdateSourceTrigger=PropertyChanged}"
+ VerticalAlignment="Center" />
<ComboBox
Margin="0,0,8,0"
- VerticalAlignment="Center"
SelectedIndex="{Binding ViewModel.AppSortByIndex}"
- ToolTip="{ext:Loc Common.SortBy}">
+ ToolTip="{ext:Loc Common.SortBy}"
+ VerticalAlignment="Center">
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
<ui:SymbolIcon
- Margin="0,0,6,0"
HorizontalAlignment="Left"
+ Margin="0,0,6,0"
Symbol="TextSortAscending24" />
<TextBlock
Grid.Column="1"
@@ -183,10 +183,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
<ui:SymbolIcon
- Margin="0,0,6,0"
HorizontalAlignment="Left"
+ Margin="0,0,6,0"
Symbol="ToggleRight24" />
<TextBlock
Grid.Column="1"
@@ -195,10 +195,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
<ui:SymbolIcon
- Margin="0,0,6,0"
HorizontalAlignment="Left"
+ Margin="0,0,6,0"
Symbol="Folder24" />
<TextBlock
Grid.Column="1"
@@ -208,31 +208,31 @@
</ComboBoxItem>
</ComboBox>
<ui:Button
- Padding="8"
- VerticalAlignment="Center"
Appearance="Secondary"
Command="{Binding ViewModel.OpenStartupSettingsCommand}"
Icon="{ui:SymbolIcon Settings24,
FontSize=16}"
- ToolTip="{ext:Loc StartupManager.Menu.OpenSettings}" />
+ Padding="8"
+ ToolTip="{ext:Loc StartupManager.Menu.OpenSettings}"
+ VerticalAlignment="Center" />
</WrapPanel>
<!-- No search results (Apps) -->
<StackPanel
- Margin="0,32,0,32"
HorizontalAlignment="Center"
+ Margin="0,32,0,32"
VerticalAlignment="Center"
Visibility="{Binding ViewModel.Apps.Count, Converter={StaticResource ZeroToVisibilityConverter}}">
<ui:SymbolIcon
- Margin="0,0,0,10"
- HorizontalAlignment="Center"
FontSize="36"
Foreground="{DynamicResource SystemFillColorCriticalBrush}"
+ HorizontalAlignment="Center"
+ Margin="0,0,0,10"
Symbol="SearchInfo24" />
<ui:TextBlock
- HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Body"
+ HorizontalAlignment="Center"
Text="{ext:Loc Bloatware.Search.NoResults}" />
</StackPanel>
@@ -242,12 +242,12 @@
<DataTemplate DataType="{x:Type models:StartupApp}">
<Grid>
<ui:CardAction
- x:Name="ActionCard"
- Margin="0,0,0,4"
- Padding="12,10"
Command="{Binding DataContext.ViewModel.OpenLocationCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
- IsChevronVisible="False">
+ IsChevronVisible="False"
+ Margin="0,0,0,4"
+ Padding="12,10"
+ x:Name="ActionCard">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
@@ -256,48 +256,48 @@
</Grid.ColumnDefinitions>
<Image
Grid.Column="0"
- Width="36"
Height="36"
Margin="0,0,12,0"
- VerticalAlignment="Center"
Source="{Binding LogoImage}"
- Stretch="UniformToFill" />
+ Stretch="UniformToFill"
+ VerticalAlignment="Center"
+ Width="36" />
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<DockPanel LastChildFill="False">
<ui:TextBlock FontTypography="BodyStrong" Text="{Binding Name}" />
<Border
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="4"
Margin="8,0,0,0"
Padding="6,1"
- VerticalAlignment="Center"
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4">
+ VerticalAlignment="Center">
<ui:TextBlock
- VerticalAlignment="Center"
Appearance="Tertiary"
FontTypography="Caption"
- Text="{Binding LocationDisplay}" />
+ Text="{Binding LocationDisplay}"
+ VerticalAlignment="Center" />
</Border>
</DockPanel>
<ui:TextBlock
- Margin="0,2,0,0"
Appearance="Secondary"
FontTypography="Caption"
+ Margin="0,2,0,0"
Text="{Binding Publisher}" />
<ui:TextBlock
- Margin="0,2,0,0"
Appearance="Disabled"
FontTypography="Caption"
+ Margin="0,2,0,0"
Text="{Binding Command}"
TextTrimming="CharacterEllipsis" />
</StackPanel>
<StackPanel Grid.Column="2" Orientation="Horizontal">
<ui:ToggleSwitch
- Margin="0,0,16,0"
- VerticalAlignment="Center"
Cursor="Hand"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
+ Margin="0,0,16,0"
OffContent="{ext:Loc Common.Toggle.Off}"
- OnContent="{ext:Loc Common.Toggle.On}" />
+ OnContent="{ext:Loc Common.Toggle.On}"
+ VerticalAlignment="Center" />
<ui:SymbolIcon FontSize="16" Symbol="Open24" />
</StackPanel>
</Grid>
@@ -311,27 +311,27 @@
<!-- ═══════════ Scheduled Tasks Section ═══════════ -->
<ui:CardExpander
- Margin="0,0,0,12"
Icon="{ui:SymbolIcon CalculatorArrowClockwise24}"
IsExpanded="True"
+ Margin="0,0,0,12"
Visibility="{Binding ViewModel.HasTasks, Converter={StaticResource BooleanToVisibilityConverter}}">
<ui:CardExpander.Header>
<StackPanel Orientation="Horizontal">
<ui:TextBlock
- VerticalAlignment="Center"
FontTypography="BodyStrong"
- Text="{ext:Loc StartupManager.Tasks.Title}" />
+ Text="{ext:Loc StartupManager.Tasks.Title}"
+ VerticalAlignment="Center" />
<Border
+ Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
+ CornerRadius="10"
Margin="8,0,0,0"
Padding="8,2"
- VerticalAlignment="Center"
- Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="10">
+ VerticalAlignment="Center">
<ui:TextBlock
- VerticalAlignment="Center"
Appearance="Tertiary"
FontTypography="Caption"
- Text="{Binding ViewModel.Tasks.Count}" />
+ Text="{Binding ViewModel.Tasks.Count}"
+ VerticalAlignment="Center" />
</Border>
</StackPanel>
</ui:CardExpander.Header>
@@ -340,22 +340,22 @@
<!-- Tasks Toolbar -->
<WrapPanel Margin="0,0,0,8" Orientation="Horizontal">
<ui:TextBox
- MinWidth="200"
- Margin="0,0,8,0"
- VerticalAlignment="Center"
Icon="{ui:SymbolIcon Search24}"
+ Margin="0,0,8,0"
+ MinWidth="200"
PlaceholderText="{ext:Loc Common.Search.Placeholder}"
- Text="{Binding ViewModel.TaskSearchText, UpdateSourceTrigger=PropertyChanged}" />
+ Text="{Binding ViewModel.TaskSearchText, UpdateSourceTrigger=PropertyChanged}"
+ VerticalAlignment="Center" />
<ComboBox
Margin="0,0,8,0"
- VerticalAlignment="Center"
SelectedIndex="{Binding ViewModel.TaskSortByIndex}"
- ToolTip="{ext:Loc Common.SortBy}">
+ ToolTip="{ext:Loc Common.SortBy}"
+ VerticalAlignment="Center">
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
<ui:SymbolIcon
- Margin="0,0,6,0"
HorizontalAlignment="Left"
+ Margin="0,0,6,0"
Symbol="TextSortAscending24" />
<TextBlock
Grid.Column="1"
@@ -364,10 +364,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
<ui:SymbolIcon
- Margin="0,0,6,0"
HorizontalAlignment="Left"
+ Margin="0,0,6,0"
Symbol="ToggleRight24" />
<TextBlock
Grid.Column="1"
@@ -376,10 +376,10 @@
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
- <Grid HorizontalAlignment="Left" ColumnDefinitions="Auto Auto">
+ <Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
<ui:SymbolIcon
- Margin="0,0,6,0"
HorizontalAlignment="Left"
+ Margin="0,0,6,0"
Symbol="Folder24" />
<TextBlock
Grid.Column="1"
@@ -389,38 +389,38 @@
</ComboBoxItem>
</ComboBox>
<ui:ToggleSwitch
- Margin="0,0,8,0"
- VerticalAlignment="Center"
Cursor="Hand"
IsChecked="{Binding ViewModel.HideMicrosoftTasks, Mode=TwoWay}"
+ Margin="0,0,8,0"
OffContent="{ext:Loc StartupManager.Tasks.HideMicrosoft}"
- OnContent="{ext:Loc StartupManager.Tasks.HideMicrosoft}" />
+ OnContent="{ext:Loc StartupManager.Tasks.HideMicrosoft}"
+ VerticalAlignment="Center" />
<ui:Button
- Padding="8"
- VerticalAlignment="Center"
Appearance="Secondary"
Command="{Binding ViewModel.OpenTaskSchedulerCommand}"
Icon="{ui:SymbolIcon Settings24,
FontSize=16}"
- ToolTip="{ext:Loc ScheduledTasks.Menu.OpenSettings}" />
+ Padding="8"
+ ToolTip="{ext:Loc ScheduledTasks.Menu.OpenSettings}"
+ VerticalAlignment="Center" />
</WrapPanel>
<!-- No search results (Tasks) -->
<StackPanel
- Margin="0,32,0,32"
HorizontalAlignment="Center"
+ Margin="0,32,0,32"
VerticalAlignment="Center"
Visibility="{Binding ViewModel.Tasks.Count, Converter={StaticResource ZeroToVisibilityConverter}}">
<ui:SymbolIcon
- Margin="0,0,0,10"
- HorizontalAlignment="Center"
FontSize="36"
Foreground="{DynamicResource SystemFillColorCriticalBrush}"
+ HorizontalAlignment="Center"
+ Margin="0,0,0,10"
Symbol="SearchInfo24" />
<ui:TextBlock
- HorizontalAlignment="Center"
Appearance="Secondary"
FontTypography="Body"
+ HorizontalAlignment="Center"
Text="{ext:Loc Bloatware.Search.NoResults}" />
</StackPanel>
@@ -429,10 +429,10 @@
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type models:StartupTask}">
<Border
- Margin="0,0,0,6"
- Padding="16,12"
Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
- CornerRadius="6">
+ CornerRadius="6"
+ Margin="0,0,0,6"
+ Padding="16,12">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
@@ -442,12 +442,12 @@
<Image
Grid.Column="0"
- Width="36"
Height="36"
Margin="0,0,12,0"
- VerticalAlignment="Center"
Source="{Binding LogoImage}"
- Stretch="UniformToFill" />
+ Stretch="UniformToFill"
+ VerticalAlignment="Center"
+ Width="36" />
<StackPanel
Grid.Column="1"
@@ -455,17 +455,17 @@
VerticalAlignment="Center">
<ui:TextBlock FontTypography="BodyStrong" Text="{Binding TaskName}" />
<ui:TextBlock
- Margin="0,4,0,0"
Appearance="Secondary"
FontTypography="Caption"
+ Margin="0,4,0,0"
Text="{Binding Description}"
TextWrapping="Wrap" />
<ui:TextBlock
- Margin="0,2,0,0"
Appearance="Disabled"
FontTypography="Caption"
+ Margin="0,2,0,0"
Text="{Binding TaskPath}" />
- <ItemsControl Margin="0,4,0,0" ItemsSource="{Binding TriggerTypes}">
+ <ItemsControl ItemsSource="{Binding TriggerTypes}" Margin="0,4,0,0">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" />
@@ -474,53 +474,53 @@
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border
- Margin="0,0,4,2"
- Padding="6,2"
Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
- CornerRadius="4">
+ CornerRadius="4"
+ Margin="0,0,4,2"
+ Padding="6,2">
<StackPanel Orientation="Horizontal">
<ui:SymbolIcon
- Margin="0,0,4,0"
FontSize="15"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
+ Margin="0,0,4,0"
Symbol="Timer24" />
<ui:TextBlock
- VerticalAlignment="Center"
FontTypography="Caption"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Text="{Binding}" />
+ Text="{Binding}"
+ VerticalAlignment="Center" />
</StackPanel>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<ui:TextBlock
- Margin="0,2,0,0"
Appearance="Disabled"
FontTypography="Caption"
+ Margin="0,2,0,0"
Text="{Binding ActionSummary}"
TextTrimming="CharacterEllipsis" />
</StackPanel>
<StackPanel
Grid.Column="2"
- VerticalAlignment="Center"
- Orientation="Horizontal">
+ Orientation="Horizontal"
+ VerticalAlignment="Center">
<ui:Button
- Margin="0,0,4,0"
- Padding="8"
Appearance="Transparent"
Command="{Binding DataContext.ViewModel.ViewTaskDetailsCommand, RelativeSource={RelativeSource AncestorType=Page}}"
CommandParameter="{Binding}"
Icon="{ui:SymbolIcon Info24,
FontSize=16}"
+ Margin="0,0,4,0"
+ Padding="8"
ToolTip="{ext:Loc ScheduledTasks.Action.Details}" />
<ui:ToggleSwitch
- VerticalAlignment="Center"
Cursor="Hand"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
OffContent="{ext:Loc Common.Toggle.Off}"
- OnContent="{ext:Loc Common.Toggle.On}" />
+ OnContent="{ext:Loc Common.Toggle.On}"
+ VerticalAlignment="Center" />
</StackPanel>
</Grid>
</Border>
diff --git a/optimizerDuck/UI/Views/Windows/MainWindow.xaml b/optimizerDuck/UI/Views/Windows/MainWindow.xaml
index 80106e6..c8bc543 100644
--- a/optimizerDuck/UI/Views/Windows/MainWindow.xaml
+++ b/optimizerDuck/UI/Views/Windows/MainWindow.xaml
@@ -53,6 +53,8 @@
Icon="{ui:SymbolIcon Delete24}"
TargetPageType="{x:Type pages:BloatwarePage}" />
+ <ui:NavigationViewItemSeparator Margin="0,2,0,2" />
+
<controls:FilledNavigationViewItem
Content="{extensions:Loc Sidebar.StartupManager}"
Icon="{ui:SymbolIcon WindowArrowUp24}"