Skip to content

Commit

Permalink
Added a new tooltip design (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed May 19, 2024
1 parent dd8cdcc commit f2eeac3
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions InternetTest/InternetTest/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,43 @@
</Setter.Value>
</Setter>
</Style>
<Style x:Key="{x:Type ToolTip}" TargetType="ToolTip">
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="HasDropShadow" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToolTip">
<Border
Name="Border"
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}"
Margin="5"
Background="{TemplateBinding Background}"
BorderBrush="{DynamicResource LightAccentColor}"
BorderThickness="1">
<Border.Effect>
<DropShadowEffect
BlurRadius="10"
Direction="270"
Opacity="0.1"
ShadowDepth="0"
Color="{DynamicResource Accent}" />
</Border.Effect>
<ContentPresenter
Margin="4"
HorizontalAlignment="Left"
VerticalAlignment="Top" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="HasDropShadow" Value="true">
<Setter TargetName="Border" Property="CornerRadius" Value="4" />
<Setter TargetName="Border" Property="SnapsToDevicePixels" Value="true" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>

0 comments on commit f2eeac3

Please sign in to comment.