Skip to content

Commit

Permalink
Fix button size
Browse files Browse the repository at this point in the history
  • Loading branch information
Difegue committed Nov 14, 2020
1 parent 200f050 commit a5d0521
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions Sources/FluentMPC/Views/LibraryDetailPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,26 +190,28 @@

<TextBlock x:Name="info" RelativePanel.RightOf="itemHero" RelativePanel.Below="artist" Margin="{StaticResource SmallTopMargin}"
Style="{ThemeResource BaseTextBlockStyle}" FontSize="16" Text="{x:Bind ViewModel.PlaylistInfo, Mode=OneWay}" />



<StackPanel x:Name="propertiesGroup1" Margin="{StaticResource SmallTopMargin}"
RelativePanel.Below="itemHero" Orientation="Horizontal" Spacing="10">

<Button Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.Item.PlayAlbumCommand}" HorizontalAlignment="Stretch"
<Button Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.Item.PlayAlbumCommand}" VerticalAlignment="Stretch"
IsEnabled="{x:Bind ViewModel.Item.IsDetailLoading, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}" Width="108">
<StackPanel>
<SymbolIcon Symbol="Play" />
<TextBlock x:Uid="PlayTextBlock"/>
<TextBlock x:Uid="PlayTextBlock" TextWrapping="Wrap" TextAlignment="Center"/>
</StackPanel>
</Button>
<Button x:Name="AddToQButton" Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.Item.AddAlbumCommand}"
<Button x:Name="AddToQButton" Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.Item.AddAlbumCommand}" VerticalAlignment="Stretch"
IsEnabled="{x:Bind ViewModel.Item.IsDetailLoading, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}" Width="108">
<StackPanel >
<SymbolIcon Symbol="Add" />
<TextBlock x:Uid="AddToQueueTextBlock" TextWrapping="Wrap" TextAlignment="Center"/>
</StackPanel>
</Button>

<Button Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.Item.AddToPlaylistCommand}"
<Button Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.Item.AddToPlaylistCommand}" VerticalAlignment="Stretch"
IsEnabled="{x:Bind ViewModel.Item.IsDetailLoading, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}" Width="108">
<StackPanel >
<SymbolIcon Symbol="MusicInfo" />
Expand Down
8 changes: 4 additions & 4 deletions Sources/FluentMPC/Views/PlaylistPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,20 +225,20 @@
<StackPanel x:Name="propertiesGroup1" Margin="{StaticResource SmallTopMargin}"
RelativePanel.Below="itemHero" Orientation="Horizontal" Spacing="10">

<Button Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.PlayPlaylistCommand}" Width="108" HorizontalAlignment="Stretch">
<Button Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.PlayPlaylistCommand}" Width="108" VerticalAlignment="Stretch">
<StackPanel>
<SymbolIcon Symbol="Play" />
<TextBlock x:Uid="PlayTextBlock"/>
<TextBlock x:Uid="PlayTextBlock" TextWrapping="Wrap" TextAlignment="Center"/>
</StackPanel>
</Button>
<Button x:Name="AddToQButton" Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.AddPlaylistCommand}" Width="108">
<Button x:Name="AddToQButton" Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.AddPlaylistCommand}" Width="108" VerticalAlignment="Stretch">
<StackPanel >
<SymbolIcon Symbol="Add" />
<TextBlock x:Uid="AddToQueueTextBlock" TextWrapping="Wrap" TextAlignment="Center"/>
</StackPanel>
</Button>

<Button Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.RemovePlaylistCommand}" Width="108">
<Button Style="{StaticResource ButtonRevealStyle}" Command="{x:Bind ViewModel.RemovePlaylistCommand}" Width="108" VerticalAlignment="Stretch">
<StackPanel >
<SymbolIcon Symbol="Delete" />
<TextBlock x:Uid="DeletePlaylistTextBlock" TextWrapping="Wrap" TextAlignment="Center"/>
Expand Down

0 comments on commit a5d0521

Please sign in to comment.