Skip to content

Commit

Permalink
Merge pull request #358 from Fooxboy/274-togglable-shuffle
Browse files Browse the repository at this point in the history
Отключаемое перемешивание #274
  • Loading branch information
Fooxboy authored Apr 21, 2024
2 parents c89e6e2 + e613e88 commit 4f9f295
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 4f9f295

Please sign in to comment.