From d87c29e07852144edb9348646f99f546a102af7c Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Thu, 11 May 2023 13:18:14 +0100 Subject: [PATCH] Set icon and title --- Bloxstrap/Dialogs/HyperionDialog.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Bloxstrap/Dialogs/HyperionDialog.xaml.cs b/Bloxstrap/Dialogs/HyperionDialog.xaml.cs index feee352..ed8120f 100644 --- a/Bloxstrap/Dialogs/HyperionDialog.xaml.cs +++ b/Bloxstrap/Dialogs/HyperionDialog.xaml.cs @@ -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(); }