mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-19 09:01:32 -07:00
Rename HyperionDialog as ByfronDialog
This commit is contained in:
parent
d87c29e078
commit
e0df513a93
@ -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:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
@ -10,11 +10,11 @@ using Bloxstrap.ViewModels;
|
||||
namespace Bloxstrap.Dialogs
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for HyperionDialog.xaml
|
||||
/// Interaction logic for ByfronDialog.xaml
|
||||
/// </summary>
|
||||
public partial class HyperionDialog : IBootstrapperDialog
|
||||
public partial class ByfronDialog : IBootstrapperDialog
|
||||
{
|
||||
private readonly HyperionDialogViewModel _viewModel;
|
||||
private readonly ByfronDialogViewModel _viewModel;
|
||||
|
||||
public Bootstrapper? Bootstrapper { get; set; }
|
||||
|
||||
@ -60,9 +60,9 @@ namespace Bloxstrap.Dialogs
|
||||
}
|
||||
#endregion
|
||||
|
||||
public HyperionDialog()
|
||||
public ByfronDialog()
|
||||
{
|
||||
_viewModel = new HyperionDialogViewModel(this);
|
||||
_viewModel = new ByfronDialogViewModel(this);
|
||||
DataContext = _viewModel;
|
||||
Title = App.Settings.Prop.BootstrapperTitle;
|
||||
Icon = App.Settings.Prop.BootstrapperIcon.GetIcon().GetImageSource();
|
@ -7,6 +7,6 @@
|
||||
LegacyDialog2011,
|
||||
ProgressDialog,
|
||||
FluentDialog,
|
||||
HyperionDialog
|
||||
ByfronDialog
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ namespace Bloxstrap.Extensions
|
||||
BootstrapperStyle.LegacyDialog2011 => new LegacyDialog2011(),
|
||||
BootstrapperStyle.ProgressDialog => new ProgressDialog(),
|
||||
BootstrapperStyle.FluentDialog => new FluentDialog(),
|
||||
BootstrapperStyle.HyperionDialog => new HyperionDialog(),
|
||||
BootstrapperStyle.ByfronDialog => new ByfronDialog(),
|
||||
_ => new FluentDialog()
|
||||
};
|
||||
}
|
||||
|
@ -29,7 +29,12 @@ namespace Bloxstrap.ViewModels
|
||||
private void PreviewBootstrapper()
|
||||
{
|
||||
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.ShowBootstrapper();
|
||||
}
|
||||
@ -75,7 +80,7 @@ namespace Bloxstrap.ViewModels
|
||||
{ "Legacy (2011 - 2014)", BootstrapperStyle.LegacyDialog2011 },
|
||||
{ "Legacy (2009 - 2011)", BootstrapperStyle.LegacyDialog2009 },
|
||||
{ "Vista (2009 - 2011)", BootstrapperStyle.VistaDialog },
|
||||
{ "Hyperion (2022 - Fake)", BootstrapperStyle.HyperionDialog },
|
||||
{ "Fake Byfron (2023)", BootstrapperStyle.ByfronDialog },
|
||||
};
|
||||
|
||||
public string Dialog
|
||||
|
@ -5,7 +5,7 @@ using Bloxstrap.Dialogs;
|
||||
|
||||
namespace Bloxstrap.ViewModels
|
||||
{
|
||||
public class HyperionDialogViewModel : FluentDialogViewModel, INotifyPropertyChanged
|
||||
public class ByfronDialogViewModel : FluentDialogViewModel, INotifyPropertyChanged
|
||||
{
|
||||
public string Version => $"Bloxstrap v{App.Version}";
|
||||
// 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 IconColor { get; set; } = new SolidColorBrush(Color.FromRgb(255, 255, 255));
|
||||
public Brush ProgressBarBackground { get; set; } = new SolidColorBrush(Color.FromRgb(86, 86, 86));
|
||||
public HyperionDialogViewModel(IBootstrapperDialog dialog) : base(dialog)
|
||||
public ByfronDialogViewModel(IBootstrapperDialog dialog) : base(dialog)
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user