implement Dangerous property and style for Unlabelled label.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/LabelViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/LabelViewModel.cs
@@ -36,6 +36,8 @@ public partial class LabelViewModel : ViewModelBase
_toolTip = label;
}
+ public bool IsDangerous { get; set; }
+
public string Value { get; }
public ICommand ClickedCommand { get; }

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/PrivacyControlView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/PrivacyControlView.axaml
</Border>
<ScrollViewer Margin="15,10,15,10">
+ <ScrollViewer.Styles>
+ <Style Selector="c|TagControl.highlighted">
+ <Setter Property="Foreground" Value="{DynamicResource PrivacyControlItemWhiteListHighlight}" />
+ <Setter Property="BorderBrush" Value="{DynamicResource PrivacyControlItemWhiteListHighlight}" />
+ </Style>
+ <Style Selector="c|TagControl.highlighted.dangerous">
+ <Setter Property="Foreground" Value="{DynamicResource WarningMessageForeground}" />
+ <Setter Property="BorderBrush" Value="{DynamicResource WarningMessageForeground}" />
+ </Style>
+ </ScrollViewer.Styles>
<ItemsControl Items="{Binding LabelsWhiteList}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<i:Interaction.Behaviors>
<behaviors:BindPointerOverBehavior IsPointerOver="{Binding IsPointerOver}" />
</i:Interaction.Behaviors>
- <c:TagControl Content="{Binding Value}" IsHitTestVisible="False" Background="{DynamicResource PrivacyControlItemBackground}">
- <c:TagControl.Foreground>
- <Binding Path="IsHighlighted">
- <Binding.Converter>
- <converters:BoolToBrushConverter TrueBrush="{DynamicResource PrivacyControlItemWhiteListHighlight}" />
- </Binding.Converter>
- </Binding>
- </c:TagControl.Foreground>
- <c:TagControl.BorderBrush>
- <Binding Path="IsHighlighted">
- <Binding.Converter>
- <converters:BoolToBrushConverter TrueBrush="{DynamicResource PrivacyControlItemWhiteListHighlight}" />
- </Binding.Converter>
- </Binding>
- </c:TagControl.BorderBrush>
- </c:TagControl>
+ <c:TagControl Classes.highlighted="{Binding IsHighlighted}"
+ Classes.dangerous="{Binding IsDangerous}"
+ Content="{Binding Value}"
+ IsHitTestVisible="False"
+ Background="{DynamicResource PrivacyControlItemBackground}" />
</Button>
</DataTemplate>
</ItemsControl.ItemTemplate>
</Border>
<ScrollViewer Margin="15,10,15,10">
+ <ScrollViewer.Styles>
+ <Style Selector="c|TagControl.highlighted">
+ <Setter Property="Foreground" Value="{DynamicResource PrivacyControlItemBlackListHighlight}" />
+ <Setter Property="BorderBrush" Value="{DynamicResource PrivacyControlItemBlackListHighlight}" />
+ </Style>
+ <Style Selector="c|TagControl.highlighted.dangerous">
+ <Setter Property="Foreground" Value="{DynamicResource WarningMessageForeground}" />
+ <Setter Property="BorderBrush" Value="{DynamicResource WarningMessageForeground}" />
+ </Style>
+ </ScrollViewer.Styles>
<ItemsControl Items="{Binding LabelsBlackList}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<i:Interaction.Behaviors>
<behaviors:BindPointerOverBehavior IsPointerOver="{Binding IsPointerOver}" />
</i:Interaction.Behaviors>
- <c:TagControl Content="{Binding Value}" IsHitTestVisible="False" Background="{DynamicResource PrivacyControlItemBackground}">
- <c:TagControl.Foreground>
- <Binding Path="IsHighlighted">
- <Binding.Converter>
- <converters:BoolToBrushConverter TrueBrush="{DynamicResource PrivacyControlItemBlackListHighlight}" />
- </Binding.Converter>
- </Binding>
- </c:TagControl.Foreground>
- <c:TagControl.BorderBrush>
- <Binding Path="IsHighlighted">
- <Binding.Converter>
- <converters:BoolToBrushConverter TrueBrush="{DynamicResource PrivacyControlItemBlackListHighlight}" />
- </Binding.Converter>
- </Binding>
- </c:TagControl.BorderBrush>
- </c:TagControl>
+ <c:TagControl
+ Classes.highlighted="{Binding IsHighlighted}"
+ Classes.dangerous="{Binding IsDangerous}"
+ Content="{Binding Value}"
+ IsHitTestVisible="False"
+ Background="{DynamicResource PrivacyControlItemBackground}" />
</Button>
</DataTemplate>
</ItemsControl.ItemTemplate>

implement Dangerous property and style for Unlabelled label.