Add Hyperion mockup bootstrapper style

This commit is contained in:
1011025m 2023-05-09 21:01:47 +08:00
parent 39d919811f
commit 15d81cf8a7
4 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,8 @@
<ItemGroup>
<Resource Include="Bloxstrap.ico" />
<Resource Include="Resources\CancelButtonSmall.png" />
<Resource Include="Resources\WordmarkRoblox.png" />
</ItemGroup>
<ItemGroup>

View File

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

View File

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

View File

@ -29,7 +29,7 @@ namespace Bloxstrap.ViewModels
private void PreviewBootstrapper()
{
IBootstrapperDialog dialog = App.Settings.Prop.BootstrapperStyle.GetNew();
dialog.Message = "Style preview - Click Cancel to close";
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";
dialog.CancelEnabled = true;
dialog.ShowBootstrapper();
}
@ -71,6 +71,7 @@ namespace Bloxstrap.ViewModels
public IReadOnlyDictionary<string, BootstrapperStyle> Dialogs { get; set; } = new Dictionary<string, BootstrapperStyle>()
{
{ "Fluent", BootstrapperStyle.FluentDialog },
{ "Hyperion", BootstrapperStyle.HyperionDialog },
{ "Progress (~2014)", BootstrapperStyle.ProgressDialog },
{ "Legacy (2011 - 2014)", BootstrapperStyle.LegacyDialog2011 },
{ "Legacy (2009 - 2011)", BootstrapperStyle.LegacyDialog2009 },