diff --git a/Bloxstrap/UI/Elements/Bootstrapper/ProgressFluentDialog.xaml b/Bloxstrap/UI/Elements/Bootstrapper/ProgressFluentDialog.xaml index 306ff35..d3b165a 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/ProgressFluentDialog.xaml +++ b/Bloxstrap/UI/Elements/Bootstrapper/ProgressFluentDialog.xaml @@ -23,8 +23,8 @@ WindowStyle="None" mc:Ignorable="d"> - - + + public partial class ProgressFluentDialog : IBootstrapperDialog { - private readonly BootstrapperDialogViewModel _viewModel; + private readonly ProgressFluentDialogViewModel _viewModel; public Bloxstrap.Bootstrapper? Bootstrapper { get; set; } diff --git a/Bloxstrap/UI/ViewModels/Bootstrapper/ProgressFluentDialogViewModel.cs b/Bloxstrap/UI/ViewModels/Bootstrapper/ProgressFluentDialogViewModel.cs index 1f3d7b6..3f4a251 100644 --- a/Bloxstrap/UI/ViewModels/Bootstrapper/ProgressFluentDialogViewModel.cs +++ b/Bloxstrap/UI/ViewModels/Bootstrapper/ProgressFluentDialogViewModel.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.Windows.Media; using Wpf.Ui.Appearance; namespace Bloxstrap.UI.ViewModels.Bootstrapper @@ -10,6 +11,7 @@ namespace Bloxstrap.UI.ViewModels.Bootstrapper public class ProgressFluentDialogViewModel : BootstrapperDialogViewModel { public BackgroundType WindowBackdropType { get; set; } = BackgroundType.Mica; + public SolidColorBrush BackgroundColourBrush { get; set; } = new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)); [Obsolete("Do not use this! This is for the designer only.", true)] public ProgressFluentDialogViewModel() : base() @@ -18,6 +20,11 @@ namespace Bloxstrap.UI.ViewModels.Bootstrapper public ProgressFluentDialogViewModel(IBootstrapperDialog dialog, bool aero) : base(dialog) { 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)); } } }