Skip to content

Commit

Permalink
Remove sped-up self transfer classes and fix Classes.SelfTransfer bin…
Browse files Browse the repository at this point in the history
…ding

As part of @soosr's comment.
  • Loading branch information
SuperJMN committed Jun 14, 2024
1 parent de5dbfd commit 14c5cbd
Showing 1 changed file with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,8 @@
Classes.Coinjoin="{Binding Transaction.Type, ConverterParameter={x:Static model:TransactionType.Coinjoin}, Converter={x:Static converters:EnumToBoolConverter.Instance}}"
Classes.Cancellation="{Binding Transaction.Type, ConverterParameter={x:Static model:TransactionType.Cancellation}, Converter={x:Static converters:EnumToBoolConverter.Instance}}"
Classes.CoinjoinGroup="{Binding Transaction.Type, ConverterParameter={x:Static model:TransactionType.CoinjoinGroup}, Converter={x:Static converters:EnumToBoolConverter.Instance}}"
Classes.CPFP="{Binding Transaction.Type, ConverterParameter={x:Static model:TransactionType.CPFP}, Converter={x:Static converters:EnumToBoolConverter.Instance}}">
<Classes.SelfTransfer>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Path="Transaction.Type" ConverterParameter="{x:Static model:TransactionType.SelfTransferTransaction}" Converter="{x:Static converters:EnumToBoolConverter.Instance}" />
<Binding Path="!HasBeenSpedUp" />
</MultiBinding>
</Classes.SelfTransfer>
<Classes.SpedUpSelfTransfer>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Path="Transaction.Type" ConverterParameter="{x:Static model:TransactionType.SelfTransferTransaction}" Converter="{x:Static converters:EnumToBoolConverter.Instance}" />
<Binding Path="HasBeenSpedUp" />
</MultiBinding>
</Classes.SpedUpSelfTransfer>
Classes.CPFP="{Binding Transaction.Type, ConverterParameter={x:Static model:TransactionType.CPFP}, Converter={x:Static converters:EnumToBoolConverter.Instance}}"
Classes.SelfTransfer="{Binding Transaction.Type, ConverterParameter={x:Static model:TransactionType.SelfTransferTransaction}, Converter={x:Static converters:EnumToBoolConverter.Instance}}">
<PathIcon.Styles>
<Style Selector="PathIcon.IncomingTransaction">
<Setter Property="Data" Value="{StaticResource wallet_action_receive}" />
Expand All @@ -73,11 +62,6 @@
<Setter Property="Data" Value="{StaticResource normal_transaction}" />
<Setter Property="ToolTip.Tip" Value="Self Transfer" />
</Style>
<Style Selector="PathIcon.SpedUpSelfTransfer">
<Setter Property="Data" Value="{StaticResource rocket_bolt}" />
<Setter Property="Height" Value="14" />
<Setter Property="ToolTip.Tip" Value="Accelerated Self Transfer" />
</Style>
<Style Selector="PathIcon.Coinjoin">
<Setter Property="Data" Value="{StaticResource shield_regular}" />
<Setter Property="Height" Value="15" />
Expand Down

0 comments on commit 14c5cbd

Please sign in to comment.