Free, open-source Windows optimization tool for performance, privacy, and simplicity.
C# csharpdebloatdotnetgamingopen-sourceoptimizationoptimizeroptimizerduckperformanceprivacytweakertweakswindowswinui
fix(theme): use readable honey palette for Light theme
fatDuck6ab6f6423832
diff --git a/optimizerDuck/App.xaml.cs b/optimizerDuck/App.xaml.csindex 6bb9a9a..40d4eff 100644--- a/optimizerDuck/App.xaml.cs+++ b/optimizerDuck/App.xaml.cs@@ -153,6 +153,35 @@ public partial class App : Application_ = SafeFireAndForgetAsync(() => OnStartupAsync(e));}+ /// <summary>+ /// Applies the duck-yellow accent palette tuned for the given theme. Light+ /// uses deeper honey tones so accent text and fills stay readable on white;+ /// dark keeps the brighter golden tones. Centralized so startup and theme+ /// switches always use the same palettes.+ /// </summary>+ internal static void ApplyAccentFor(ApplicationTheme theme)+ {+ if (theme == ApplicationTheme.Dark)+ {+ ApplicationAccentColorManager.Apply(+ systemAccent: Color.FromRgb(216, 155, 29),+ primaryAccent: Color.FromRgb(235, 193, 94),+ secondaryAccent: Color.FromRgb(255, 247, 200),+ tertiaryAccent: Color.FromRgb(255, 243, 131)+ );+ return;+ }++ // Light: same honey family, pushed darker so white text on accent+ // passes contrast and buttons/fills read on white backgrounds.+ ApplicationAccentColorManager.Apply(+ systemAccent: Color.FromRgb(138, 94, 0),+ primaryAccent: Color.FromRgb(154, 107, 0),+ secondaryAccent: Color.FromRgb(166, 124, 0),+ tertiaryAccent: Color.FromRgb(192, 138, 0)+ );+ }+private static async Task SafeFireAndForgetAsync(Func<Task> taskFactory){try@@ -415,12 +444,7 @@ public partial class App : Applicationawait Dispatcher.InvokeAsync(() =>{- ApplicationAccentColorManager.Apply(- systemAccent: Color.FromRgb(216, 155, 29),- primaryAccent: Color.FromRgb(235, 193, 94),- secondaryAccent: Color.FromRgb(255, 247, 200),- tertiaryAccent: Color.FromRgb(255, 243, 131)- );+ ApplyAccentFor(appSettings.App.Theme);ApplicationThemeManager.Apply(appSettings.App.Theme switchdiff --git a/optimizerDuck/UI/ViewModels/Dialogs/LegalDialogViewModel.cs b/optimizerDuck/UI/ViewModels/Dialogs/LegalDialogViewModel.csindex ebeb988..0f2540c 100644--- a/optimizerDuck/UI/ViewModels/Dialogs/LegalDialogViewModel.cs+++ b/optimizerDuck/UI/ViewModels/Dialogs/LegalDialogViewModel.cs@@ -82,6 +82,7 @@ public partial class LegalDialogViewModel({if (!IsInitialized)return;+ App.ApplyAccentFor(newValue);ApplicationThemeManager.Apply(newValue, updateAccent: false);_ = SafeFireAndForgetAsync(async () => await configManager.SetAsync(x => x.App.Theme, newValue),diff --git a/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.csindex 594c5d2..36c8c71 100644--- a/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs+++ b/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs@@ -385,6 +385,7 @@ public partial class SettingsViewModel({if (!IsInitialized)return;+ App.ApplyAccentFor(newValue);ApplicationThemeManager.Apply(newValue, updateAccent: false);_ = SaveConfigAsync(