Remove duplication, hover is enough
MODIFY
WalletWasabi.Fluent/Controls/LabelControl.axaml
WalletWasabi.Fluent/Controls/LabelControl.axaml
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="MinHeight" Value="0" />
<Setter Property="MinWidth" Value="38" />
- <Setter Property="Cursor" Value="Hand" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="BorderBrush" Value="{DynamicResource TagsBoxBorderBrush}" />
<Setter Property="Background" Value="{DynamicResource InvisibleButtonBackgroundColor}" />
</Style>
</Styles>
-

MODIFY
WalletWasabi.Fluent/Controls/LabelsListBox.axaml
WalletWasabi.Fluent/Controls/LabelsListBox.axaml
<ItemsPanelTemplate>
<c:LabelsPanel Orientation="Horizontal" Spacing="2" HorizontalAlignment="Left">
<c:LabelsPanel.EllipsisControl>
- <Button Classes="labelFlyout"
- Content="..."
- Margin="0 0 0 0">
- <Button.Flyout>
- <Flyout Placement="BottomEdgeAlignedLeft" ShowMode="TransientWithDismissOnPointerMoveAway">
- <c:TagsBox IsReadOnly="True"
- Items="{Binding $parent[c:LabelsPanel].FilteredItems}" />
- </Flyout>
- </Button.Flyout>
+ <c:LabelControl DataContext="..."
+ Margin="0 0 0 0"
+ IsHitTestVisible="True">
<ToolTip.Tip>
<Panel>
<c:TagsBox IsReadOnly="True"
Items="{Binding $parent[c:LabelsPanel].FilteredItems}" />
</Panel>
</ToolTip.Tip>
- </Button>
+ </c:LabelControl>
</c:LabelsPanel.EllipsisControl>
</c:LabelsPanel>
</ItemsPanelTemplate>
</Style>
</Styles>
-

MODIFY
WalletWasabi.Fluent/Styles/Button.axaml
WalletWasabi.Fluent/Styles/Button.axaml
<Setter Property="Background" Value="{DynamicResource InvisibleButtonPressedBackgroundColor}" />
</Style>
- <Style Selector="Button.labelFlyout">
- <Setter Property="Margin" Value="0" />
- <Setter Property="Padding" Value="12,5,12,5" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="MinHeight" Value="0" />
- <Setter Property="MinWidth" Value="38" />
- </Style>
- <Style Selector="Button.labelFlyout /template/ ContentPresenter">
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="BorderBrush" Value="{DynamicResource TagsBoxBorderBrush}" />
- <Setter Property="Background" Value="{DynamicResource InvisibleButtonBackgroundColor}" />
- <Setter Property="CornerRadius" Value="2" />
- </Style>
- <Style Selector="Button.labelFlyout:pointerover /template/ ContentPresenter">
- <Setter Property="BorderBrush" Value="{DynamicResource TagsBoxBorderBrush}" />
- </Style>
- <Style Selector="Button.labelFlyout:pressed /template/ ContentPresenter">
- <Setter Property="BorderBrush" Value="{DynamicResource TagsBoxBorderBrush}" />
- </Style>
- <Style Selector="Button.labelFlyout:disabled /template/ ContentPresenter">
- <Setter Property="BorderBrush" Value="{DynamicResource TagsBoxBorderBrush}" />
- </Style>
-
</Styles>

Remove duplication, hover is enough