1
0
mirror of synced 2024-11-27 16:10:53 +01:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
asesidaa 2022-09-11 00:16:30 +08:00
commit 647c82d254

View File

@ -30,7 +30,7 @@
@foreach (var genre in Enum.GetValues<SongGenre>()) @foreach (var genre in Enum.GetValues<SongGenre>())
{ {
<MudTabPanel Text="@genre.ToString()"> <MudTabPanel Text="@genre.ToString()">
<MudDataGrid Items="@response.SongBestData.Where(data => GameDataService.GetMusicGenreBySongId(data.SongId) == genre)" <MudDataGrid Items="@response.SongBestData.Where(data => GameDataService.GetMusicGenreBySongId(data.SongId) == genre)"
ColumnResizeMode="ResizeMode.Container"> ColumnResizeMode="ResizeMode.Container">
<Columns> <Columns>
<Column T="SongBestData" Field="@nameof(SongBestData.SongId)" Title="Song" StickyLeft="true" Class="clm-row-large"> <Column T="SongBestData" Field="@nameof(SongBestData.SongId)" Title="Song" StickyLeft="true" Class="clm-row-large">
@ -44,14 +44,14 @@
</MudItem> </MudItem>
<MudItem xs="2"> <MudItem xs="2">
<MudStack Justify="Justify.Center" AlignItems="AlignItems.End" Style="height:100%"> <MudStack Justify="Justify.Center" AlignItems="AlignItems.End" Style="height:100%">
<MudToggleIconButton Toggled="@context.Item.IsFavorite" <MudTooltip Text="@(context.Item.IsFavorite ? "Remove from favorites" : "Add to favorites")" Arrow="true" Placement="Placement.Top">
ToggledChanged="@(async () => await OnFavoriteToggled(context.Item))" <MudToggleIconButton Toggled="@context.Item.IsFavorite"
Icon="@Icons.Material.Filled.FavoriteBorder" Color="@Color.Secondary" ToggledChanged="@(async () => await OnFavoriteToggled(context.Item))"
Title="Add to favorites" Icon="@Icons.Material.Filled.FavoriteBorder" Color="@Color.Secondary"
ToggledIcon="@Icons.Material.Filled.Favorite" ToggledColor="@Color.Secondary" ToggledIcon="@Icons.Material.Filled.Favorite" ToggledColor="@Color.Secondary"
ToggledTitle="Remove from favorites" Size="Size.Small"
Size="Size.Small" ToggledSize="Size.Small"/>
ToggledSize="Size.Small"/> </MudTooltip>
</MudStack> </MudStack>
</MudItem> </MudItem>
</MudGrid> </MudGrid>