Set icon and title

This commit is contained in:
pizzaboxer 2023-05-11 13:18:14 +01:00
parent 85c83af15e
commit d87c29e078
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -63,6 +63,10 @@ namespace Bloxstrap.Dialogs
public HyperionDialog()
{
_viewModel = new HyperionDialogViewModel(this);
DataContext = _viewModel;
Title = App.Settings.Prop.BootstrapperTitle;
Icon = App.Settings.Prop.BootstrapperIcon.GetIcon().GetImageSource();
if (App.Settings.Prop.Theme.GetFinal() == Theme.Light)
{
// Matching the roblox website light theme as close as possible.
@ -72,7 +76,6 @@ namespace Bloxstrap.Dialogs
_viewModel.IconColor = new SolidColorBrush(Color.FromRgb(57, 59, 61));
_viewModel.ProgressBarBackground = new SolidColorBrush(Color.FromRgb(189, 190, 190));
}
DataContext = _viewModel;
InitializeComponent();
}