Skip to content

Commit

Permalink
Tooltips style. (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tum4ik authored Apr 27, 2024
1 parent 7cec4e6 commit c188942
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Tum4ik.JustClipboardManager/Styles/GeneralStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
ShadowDepth="8"
RenderingBias="Quality"/>

<DropShadowEffect x:Key="ToolTipDropShadowEffect"
Color="Black"
Direction="270"
Opacity="{DynamicResource ShadowOpacity}"
BlurRadius="8"
ShadowDepth="4"
RenderingBias="Quality"/>


<Style x:Key="WindowBefore11Style" TargetType="Window">
<Setter Property="UseLayoutRounding" Value="True"/>
Expand Down Expand Up @@ -421,4 +429,24 @@
<Setter Property="IconColor" Value="{DynamicResource {x:Static theming:AppColors.TextSecondaryBrush}}"/>
</Style>

<Style TargetType="ToolTip">
<Setter Property="Foreground" Value="{DynamicResource {x:Static theming:AppColors.TextPrimaryBrush}}"/>
<Setter Property="VerticalOffset" Value="-12"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToolTip">
<Border BorderThickness="1"
BorderBrush="{DynamicResource {x:Static theming:AppColors.ContextMenuBorderBrush}}"
Background="{DynamicResource {x:Static theming:AppColors.AcrylicBackgroundBrush}}"
CornerRadius="4"
Padding="7, 4, 7, 5"
Effect="{StaticResource ToolTipDropShadowEffect}"
Margin="12">
<ContentPresenter/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

</ResourceDictionary>

0 comments on commit c188942

Please sign in to comment.