1
0
mirror of synced 2024-11-30 17:24:33 +01:00

Swap true/false select menus for switch

This commit is contained in:
shiibe 2022-09-06 18:51:19 -04:00
parent 24885ca880
commit 24d6169027

View File

@ -17,27 +17,27 @@
<h2>Profile Options</h2> <h2>Profile Options</h2>
<MudTextField @bind-Value="@response.MyDonName" Label="Name" Variant="Variant.Outlined"></MudTextField> <MudTextField @bind-Value="@response.MyDonName" Label="Name" Variant="Variant.Outlined"></MudTextField>
<MudTextField @bind-Value="@response.Title" Label="Title" Variant="Variant.Outlined"></MudTextField> <MudTextField @bind-Value="@response.Title" Label="Title" Variant="Variant.Outlined"></MudTextField>
<MudSelect @bind-Value="@response.IsDisplayAchievement" <MudGrid>
Label="Display Achievement Panel"> <MudItem xs="12" md="6">
<MudSelectItem Value="@true">On</MudSelectItem> <MudStack Spacing="2" Class="mt-5">
<MudSelectItem Value="@false">Off</MudSelectItem> <MudSwitch @bind-Checked="@response.IsDisplayAchievement" Label="Display Achievement Panel" Color="Color.Primary" />
</MudSelect> <MudSwitch @bind-Checked="@response.IsDisplayDanOnNamePlate" Label="Display Dan Rank on Name Plate" Color="Color.Primary" />
</MudStack>
<MudSelect @bind-Value="@response.IsDisplayDanOnNamePlate" </MudItem>
Label="Display Dan Rank on Name Plate"> <MudItem xs="12" md="6">
<MudSelectItem Value="@true">On</MudSelectItem> <MudStack Spacing="6">
<MudSelectItem Value="@false">Off</MudSelectItem> <MudSelect @bind-Value="@response.AchievementDisplayDifficulty"
</MudSelect> Label="Achievement Panel Difficulty">
<MudSelect @bind-Value="@response.AchievementDisplayDifficulty" @foreach (var item in Enum.GetValues<Difficulty>())
Label="Achievement Panel Difficulty"> {
@foreach (var item in Enum.GetValues<Difficulty>()) <MudSelectItem Value="@item" />
{ }
<MudSelectItem Value="@item"/> </MudSelect>
} </MudStack>
</MudSelect> </MudItem>
</MudGrid>
</MudStack> </MudStack>
</MudPaper> </MudPaper>
@ -48,11 +48,8 @@
<MudItem xs="12" md="4"> <MudItem xs="12" md="4">
<MudStack Spacing="6"> <MudStack Spacing="6">
<MudSwitch @bind-Checked="@response.PlaySetting.IsVanishOn" Label="Vanish" Color="Color.Primary"/> <MudSwitch @bind-Checked="@response.PlaySetting.IsVanishOn" Label="Vanish" Color="Color.Primary"/>
<MudSwitch @bind-Checked="@response.PlaySetting.IsInverseOn" Label="Inverse" Color="Color.Primary"/> <MudSwitch @bind-Checked="@response.PlaySetting.IsInverseOn" Label="Inverse" Color="Color.Primary"/>
<MudSwitch @bind-Checked="@response.IsSkipOn" Label="Give Up" Color="Color.Primary"/> <MudSwitch @bind-Checked="@response.IsSkipOn" Label="Give Up" Color="Color.Primary"/>
<MudSwitch @bind-Checked="@response.IsVoiceOn" Label="Voice" Color="Color.Primary"/> <MudSwitch @bind-Checked="@response.IsVoiceOn" Label="Voice" Color="Color.Primary"/>
</MudStack> </MudStack>
</MudItem> </MudItem>