ux: improve tooltip recognition

This commit is contained in:
leo 2024-07-24 17:41:20 +08:00
parent 537ac3e2df
commit 869ba7a471
No known key found for this signature in database

View file

@ -163,6 +163,27 @@
<Style Selector="ToolTip">
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
<Setter Property="Background" Value="{DynamicResource Brush.Popup}"/>
<Setter Property="VerticalOffset" Value="-8"/>
<Setter Property="Template">
<ControlTemplate>
<Grid Effect="drop-shadow(0 0 8 #80000000)">
<Border Margin="8"
Padding="8,6"
CornerRadius="4"
Background="{DynamicResource Brush.Popup}"
BorderThickness="0"
MaxWidth="{TemplateBinding MaxWidth}"
MinHeight="{TemplateBinding MinHeight}"
HorizontalAlignment="{TemplateBinding HorizontalAlignment}">
<ContentPresenter Name="PART_ContentPresenter"
MaxWidth="{TemplateBinding MaxWidth}"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
TextBlock.TextWrapping="Wrap"/>
</Border>
</Grid>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="FlyoutPresenter">