Skip to content

Commit

Permalink
Merge pull request #257 from deepea/issue-219
Browse files Browse the repository at this point in the history
Fixed SukiHost breaking ToolTips
  • Loading branch information
kikipoulet authored Jul 27, 2024
2 parents df28cfd + b411f9f commit bc4c7d9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions SukiUI/Controls/SukiHost.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
VerticalAlignment="Stretch"
Background="{DynamicResource SukiDialogBackground}"
IsHitTestVisible="False"
Opacity="0">
IsVisible="False"
Opacity="0.4">

</Border>

Expand All @@ -37,7 +38,7 @@
Classes.opened="False"
CornerRadius="15"
IsHitTestVisible="False"
Opacity="0">
IsVisible="False">
<Border.Transitions>
<Transitions>
<ThicknessTransition Property="Margin" Duration="0:0:0.25">
Expand Down Expand Up @@ -92,7 +93,7 @@
<Style Selector="suki|SukiHost[IsDialogOpen=True]">

<Style Selector="^ Border#PART_DialogBackground">
<Setter Property="Opacity" Value="0.4" />
<Setter Property="IsVisible" Value="True" />
<Setter Property="IsHitTestVisible" Value="True" />
</Style>

Expand All @@ -114,7 +115,7 @@

<Style Selector="^ Border#borderDialog">
<Setter Property="Margin" Value="0,25,0,0" />
<Setter Property="Opacity" Value="1" />
<Setter Property="IsVisible" Value="True" />
<Setter Property="IsHitTestVisible" Value="True" />
<Setter Property="RenderTransform" Value="scale(1)" />
</Style>
Expand All @@ -124,7 +125,7 @@
<Style Selector="suki|SukiHost[IsDialogOpen=False]">

<Style Selector="^ Border#PART_DialogBackground">
<Setter Property="Opacity" Value="0" />
<Setter Property="IsVisible" Value="False" />
<Setter Property="IsHitTestVisible" Value="False" />
</Style>

Expand All @@ -144,7 +145,7 @@
</Style>

<Style Selector="^ Border#borderDialog">
<Setter Property="Opacity" Value="0" />
<Setter Property="IsVisible" Value="False" />
<Setter Property="IsHitTestVisible" Value="False" />
<Setter Property="RenderTransform" Value="scale(0.7)" />
<Setter Property="Margin" Value="0,125,0,0" />
Expand All @@ -159,4 +160,4 @@
<ControlTheme x:Key="{x:Type suki:SukiHost}"
BasedOn="{StaticResource SukiHostTheme}"
TargetType="suki:SukiHost" />
</ResourceDictionary>
</ResourceDictionary>

0 comments on commit bc4c7d9

Please sign in to comment.