Skip to content

Commit

Permalink
fix tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
kikipoulet committed Aug 14, 2024
1 parent 83d10db commit a3fc29e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SukiUI/Controls/Hosts/SukiDialogHost.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ControlTemplate>
<Panel>
<Border Name="PART_DialogBackground"
HorizontalAlignment="Stretch"
HorizontalAlignment="Stretch" IsVisible="False"
VerticalAlignment="Stretch"
Background="{DynamicResource SukiDialogBackground}"
Opacity="0" />
Expand Down Expand Up @@ -35,6 +35,7 @@
<Style Selector="suki|SukiDialogHost[IsDialogOpen=True]">
<Style Selector="^ Border#PART_DialogBackground">
<Setter Property="Opacity" Value="0.4" />
<Setter Property="IsVisible" Value="True" />
<Setter Property="IsHitTestVisible" Value="True" />
</Style>
<Style Selector="^ ContentControl#PART_DialogContent">
Expand All @@ -48,9 +49,12 @@
<Style Selector="^ Border#PART_DialogBackground">
<Setter Property="Opacity" Value="0" />
<Setter Property="IsHitTestVisible" Value="False" />

<!-- need to make isvisible to false to make tooltips work ! -->
<Setter Property="IsVisible" Value="False"></Setter>
</Style>
<Style Selector="^ ContentControl#PART_DialogContent">
<Setter Property="IsVisible" Value="False" />
<Setter Property="Opacity" Value="0" />
<Setter Property="IsHitTestVisible" Value="False" />
<Setter Property="RenderTransform" Value="scale(0.7)" />
<Setter Property="Margin" Value="0,125,0,0" />
Expand Down

0 comments on commit a3fc29e

Please sign in to comment.