From 65730fab19eb8ee6f8f0d1feef1e185355d6ad71 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Sun, 4 Feb 2024 15:23:13 +0000 Subject: [PATCH] move alpha to a constant --- .../Bootstrapper/ProgressFluentDialogViewModel.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Bloxstrap/UI/ViewModels/Bootstrapper/ProgressFluentDialogViewModel.cs b/Bloxstrap/UI/ViewModels/Bootstrapper/ProgressFluentDialogViewModel.cs index 3f4a251..fa8ff8d 100644 --- a/Bloxstrap/UI/ViewModels/Bootstrapper/ProgressFluentDialogViewModel.cs +++ b/Bloxstrap/UI/ViewModels/Bootstrapper/ProgressFluentDialogViewModel.cs @@ -19,12 +19,14 @@ namespace Bloxstrap.UI.ViewModels.Bootstrapper public ProgressFluentDialogViewModel(IBootstrapperDialog dialog, bool aero) : base(dialog) { + const int alpha = 32; + WindowBackdropType = aero ? BackgroundType.Aero : BackgroundType.Mica; if (aero) BackgroundColourBrush = App.Settings.Prop.Theme.GetFinal() == Enums.Theme.Light ? - new SolidColorBrush(Color.FromArgb(32, 255, 255, 255)) : - new SolidColorBrush(Color.FromArgb(32, 0, 0, 0)); + new SolidColorBrush(Color.FromArgb(alpha, 255, 255, 255)) : + new SolidColorBrush(Color.FromArgb(alpha, 0, 0, 0)); } } }