Rename HyperionDialog as ByfronDialog

This commit is contained in:
pizzaboxer 2023-05-11 13:23:47 +01:00
parent d87c29e078
commit e0df513a93
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
6 changed files with 17 additions and 12 deletions

View File

@ -1,4 +1,4 @@
<Window x:Class="Bloxstrap.Dialogs.HyperionDialog" <Window x:Class="Bloxstrap.Dialogs.ByfronDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

View File

@ -10,11 +10,11 @@ using Bloxstrap.ViewModels;
namespace Bloxstrap.Dialogs namespace Bloxstrap.Dialogs
{ {
/// <summary> /// <summary>
/// Interaction logic for HyperionDialog.xaml /// Interaction logic for ByfronDialog.xaml
/// </summary> /// </summary>
public partial class HyperionDialog : IBootstrapperDialog public partial class ByfronDialog : IBootstrapperDialog
{ {
private readonly HyperionDialogViewModel _viewModel; private readonly ByfronDialogViewModel _viewModel;
public Bootstrapper? Bootstrapper { get; set; } public Bootstrapper? Bootstrapper { get; set; }
@ -60,9 +60,9 @@ namespace Bloxstrap.Dialogs
} }
#endregion #endregion
public HyperionDialog() public ByfronDialog()
{ {
_viewModel = new HyperionDialogViewModel(this); _viewModel = new ByfronDialogViewModel(this);
DataContext = _viewModel; DataContext = _viewModel;
Title = App.Settings.Prop.BootstrapperTitle; Title = App.Settings.Prop.BootstrapperTitle;
Icon = App.Settings.Prop.BootstrapperIcon.GetIcon().GetImageSource(); Icon = App.Settings.Prop.BootstrapperIcon.GetIcon().GetImageSource();

View File

@ -7,6 +7,6 @@
LegacyDialog2011, LegacyDialog2011,
ProgressDialog, ProgressDialog,
FluentDialog, FluentDialog,
HyperionDialog ByfronDialog
} }
} }

View File

@ -14,7 +14,7 @@ namespace Bloxstrap.Extensions
BootstrapperStyle.LegacyDialog2011 => new LegacyDialog2011(), BootstrapperStyle.LegacyDialog2011 => new LegacyDialog2011(),
BootstrapperStyle.ProgressDialog => new ProgressDialog(), BootstrapperStyle.ProgressDialog => new ProgressDialog(),
BootstrapperStyle.FluentDialog => new FluentDialog(), BootstrapperStyle.FluentDialog => new FluentDialog(),
BootstrapperStyle.HyperionDialog => new HyperionDialog(), BootstrapperStyle.ByfronDialog => new ByfronDialog(),
_ => new FluentDialog() _ => new FluentDialog()
}; };
} }

View File

@ -29,7 +29,12 @@ namespace Bloxstrap.ViewModels
private void PreviewBootstrapper() private void PreviewBootstrapper()
{ {
IBootstrapperDialog dialog = App.Settings.Prop.BootstrapperStyle.GetNew(); IBootstrapperDialog dialog = App.Settings.Prop.BootstrapperStyle.GetNew();
dialog.Message = (App.Settings.Prop.BootstrapperStyle == BootstrapperStyle.HyperionDialog) ? "Style preview - Click the X button on top right to close" : "Style preview - Click Cancel to close";
if (App.Settings.Prop.BootstrapperStyle == BootstrapperStyle.ByfronDialog)
dialog.Message = "Style preview - Click the X button at the top right to close";
else
dialog.Message = "Style preview - Click Cancel to close";
dialog.CancelEnabled = true; dialog.CancelEnabled = true;
dialog.ShowBootstrapper(); dialog.ShowBootstrapper();
} }
@ -75,7 +80,7 @@ namespace Bloxstrap.ViewModels
{ "Legacy (2011 - 2014)", BootstrapperStyle.LegacyDialog2011 }, { "Legacy (2011 - 2014)", BootstrapperStyle.LegacyDialog2011 },
{ "Legacy (2009 - 2011)", BootstrapperStyle.LegacyDialog2009 }, { "Legacy (2009 - 2011)", BootstrapperStyle.LegacyDialog2009 },
{ "Vista (2009 - 2011)", BootstrapperStyle.VistaDialog }, { "Vista (2009 - 2011)", BootstrapperStyle.VistaDialog },
{ "Hyperion (2022 - Fake)", BootstrapperStyle.HyperionDialog }, { "Fake Byfron (2023)", BootstrapperStyle.ByfronDialog },
}; };
public string Dialog public string Dialog

View File

@ -5,7 +5,7 @@ using Bloxstrap.Dialogs;
namespace Bloxstrap.ViewModels namespace Bloxstrap.ViewModels
{ {
public class HyperionDialogViewModel : FluentDialogViewModel, INotifyPropertyChanged public class ByfronDialogViewModel : FluentDialogViewModel, INotifyPropertyChanged
{ {
public string Version => $"Bloxstrap v{App.Version}"; public string Version => $"Bloxstrap v{App.Version}";
// Using dark theme for default values. // Using dark theme for default values.
@ -14,7 +14,7 @@ namespace Bloxstrap.ViewModels
public Brush Foreground { get; set; } = new SolidColorBrush(Color.FromRgb(216, 216, 216)); public Brush Foreground { get; set; } = new SolidColorBrush(Color.FromRgb(216, 216, 216));
public Brush IconColor { get; set; } = new SolidColorBrush(Color.FromRgb(255, 255, 255)); public Brush IconColor { get; set; } = new SolidColorBrush(Color.FromRgb(255, 255, 255));
public Brush ProgressBarBackground { get; set; } = new SolidColorBrush(Color.FromRgb(86, 86, 86)); public Brush ProgressBarBackground { get; set; } = new SolidColorBrush(Color.FromRgb(86, 86, 86));
public HyperionDialogViewModel(IBootstrapperDialog dialog) : base(dialog) public ByfronDialogViewModel(IBootstrapperDialog dialog) : base(dialog)
{ {
} }
} }