feat: tooltip.

This commit is contained in:
Zhang Dian 2024-10-01 22:56:02 +08:00
parent 9e31682dfe
commit 77b0f70786
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="ToolTipBackground" Color="#C6CACD" />
<SolidColorBrush x:Key="ToolTipForeground" Color="Black" />
<SolidColorBrush x:Key="ToolTipBorderBrush" Color="Transparent" />
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource WindowColor}" />
<SolidColorBrush x:Key="ToolTipForeground" Color="{StaticResource WindowTextColor}" />
<SolidColorBrush x:Key="ToolTipBorderBrush" Color="{StaticResource WindowTextColor}" />
</ResourceDictionary>

View File

@ -2,5 +2,5 @@
<CornerRadius x:Key="ToolTipCornerRadius">6</CornerRadius>
<Thickness x:Key="ToolTipPadding">12 8</Thickness>
<x:Double x:Key="ToolTipMaxWidth">320</x:Double>
<Thickness x:Key="ToolTipBorderThickness">0</Thickness>
<Thickness x:Key="ToolTipBorderThickness">1</Thickness>
</ResourceDictionary>