Add settings button for MusicBox
MODIFY
WalletWasabi.Fluent/Views/Wallets/MusicControlsView.axaml
WalletWasabi.Fluent/Views/Wallets/MusicControlsView.axaml
CornerRadius="4 4 0 0"
BorderBrush="{DynamicResource GlassEdgeColor}"
BorderThickness="1,1,1,0">
- <Panel DataContext="{Binding CoinJoinStateViewModel}">
+ <Panel>
<Panel Background="{DynamicResource TileRegionColor}" Opacity="0.35" />
<StackPanel Margin="10 5" Orientation="Horizontal" Spacing="20">
<StackPanel.Styles>
</StackPanel.Styles>
<Image Height="35" Width="35" VerticalAlignment="Center" HorizontalAlignment="Center" Source="{DynamicResource wasabi_logo_dynamic}" />
<StackPanel Spacing="5">
- <TransitioningContentControl MinWidth="350" MaxWidth="350" MinHeight="18" Content="{Binding CurrentStatus}">
+ <TransitioningContentControl MinWidth="350" MaxWidth="350" MinHeight="18" Content="{Binding CoinJoinStateViewModel.CurrentStatus}">
<TransitioningContentControl.PageTransition>
<CrossFade Duration="0:0:0.125" FadeInEasing="0.4,0,0.6,1" FadeOutEasing="0.4,0,0.6,1" />
</TransitioningContentControl.PageTransition>
</TransitioningContentControl.DataTemplates>
</TransitioningContentControl>
- <ProgressBar Minimum="0" Maximum="100" IsIndeterminate="{Binding IsCountDownDelayHappening}" Value="{Binding ProgressValue}">
+ <ProgressBar Minimum="0" Maximum="100" IsIndeterminate="{Binding CoinJoinStateViewModel.IsCountDownDelayHappening}" Value="{Binding CoinJoinStateViewModel.ProgressValue}">
<ProgressBar.Foreground>
<SolidColorBrush Color="{DynamicResource SystemBaseMediumColor}" />
</ProgressBar.Foreground>
</ProgressBar>
<DockPanel LastChildFill="False">
- <TextBlock Text="{Binding ElapsedTime}" />
- <TextBlock Text="{Binding RemainingTime}" DockPanel.Dock="Right" />
+ <TextBlock Text="{Binding CoinJoinStateViewModel.ElapsedTime}" />
+ <TextBlock Text="{Binding CoinJoinStateViewModel.RemainingTime}" DockPanel.Dock="Right" />
</DockPanel>
</StackPanel>
<Separator Classes="vertical" />
<Button Classes="plain"
- IsVisible="{Binding PlayVisible}"
- Command="{Binding PlayCommand}">
+ IsVisible="{Binding CoinJoinStateViewModel.PlayVisible}"
+ Command="{Binding CoinJoinStateViewModel.PlayCommand}">
<PathIcon Data="{StaticResource play_regular}" />
</Button>
<Button Classes="plain"
- IsEnabled="{Binding !IsInCriticalPhase}"
- IsVisible="{Binding PauseVisible}"
- Command="{Binding StopPauseCommand}">
+ IsEnabled="{Binding !CoinJoinStateViewModel.IsInCriticalPhase}"
+ IsVisible="{Binding CoinJoinStateViewModel.PauseVisible}"
+ Command="{Binding CoinJoinStateViewModel.StopPauseCommand}">
<PathIcon Data="{StaticResource pause_regular}" />
</Button>
<Button Classes="plain"
- IsEnabled="{Binding !IsInCriticalPhase}"
- IsVisible="{Binding StopVisible}"
- Command="{Binding StopPauseCommand}">
+ IsEnabled="{Binding !CoinJoinStateViewModel.IsInCriticalPhase}"
+ IsVisible="{Binding CoinJoinStateViewModel.StopVisible}"
+ Command="{Binding CoinJoinStateViewModel.StopPauseCommand}">
<PathIcon Data="{StaticResource stop_regular}" />
</Button>
+ <Panel>
<Ellipse Height="12" Width="12"
- Classes.disabled="{Binding !AutoCoinJoinObservable^}"
- Classes.waiting="{Binding IsAutoWaiting}">
+ Classes.disabled="{Binding !CoinJoinStateViewModel.AutoCoinJoinObservable^}"
+ Classes.waiting="{Binding CoinJoinStateViewModel.IsAutoWaiting}">
<Ellipse.Styles>
<Style Selector="Ellipse">
<Setter Property="Fill" Value="{DynamicResource SystemAccentColor}" />
</Style>
</Ellipse.Styles>
</Ellipse>
+
+ <Button DockPanel.Dock="Top" Opacity="0.6"
+ Background="Transparent"
+ Padding="0"
+ Command="{Binding CoinJoinSettingsCommand}"
+ VerticalAlignment="Top"
+ HorizontalAlignment="Right">
+ <Button.Content>
+ <PathIcon Height="12" Data="{StaticResource settings_general_regular}" />
+ </Button.Content>
+ </Button>
+
+ </Panel>
</StackPanel>
</Panel>
</Border>

Add settings button for MusicBox