Skip to content

Commit

Permalink
toggleable shuffle (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
zznty committed Apr 20, 2024
1 parent 317d467 commit e613e88
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 95 deletions.
21 changes: 11 additions & 10 deletions MusicX/Controls/PlayerControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
xmlns:player="clr-namespace:MusicX.Shared.Player;assembly=MusicX.Shared"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
xmlns:wpfui="clr-namespace:Wpf.Ui.Controls;assembly=Wpf.Ui"
xmlns:helpers="clr-namespace:MusicX.Helpers"
x:Name="Control"
d:DataContext="{d:DesignInstance player:PlaylistTrack}"
Loaded="UserControl_Loaded"
Expand Down Expand Up @@ -347,21 +348,21 @@
Grid.Column="1"
HorizontalAlignment="Center"
Orientation="Horizontal">

<wpfui:Button
<ToggleButton
x:Name="ShuffleButton"
Width="40"
Height="40"
Margin="0,0,10,0"
Appearance="Transparent"
Click="ShuffleButton_Click">
<wpfui:Button.Icon>
<ui:SymbolIcon Symbol="ArrowWrap20" />
</wpfui:Button.Icon>
<wpfui:Button.ToolTip>
Padding="0"
HorizontalContentAlignment="Center"
Click="ShuffleButton_Click"
Style="{StaticResource TransparentToggleButtonStyle}">
<ui:SymbolIcon Symbol="ArrowWrap20" />
<ToggleButton.ToolTip>
<ToolTip Content="В рандомном порядке" />
</wpfui:Button.ToolTip>
</wpfui:Button>
</ToggleButton.ToolTip>
</ToggleButton>

<wpfui:Button
x:Name="PrevButton"
Expand Down
Loading

0 comments on commit e613e88

Please sign in to comment.