Skip to content

Commit cbf5031

Browse files
committed
Fix content dialog style
1 parent e955e47 commit cbf5031

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

Flow.Launcher/Resources/CustomControlTemplate.xaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3587,7 +3587,7 @@
35873587
<Grid>
35883588
<Grid.RowDefinitions>
35893589
<RowDefinition Height="*" />
3590-
<RowDefinition Height="80" />
3590+
<RowDefinition Height="80" x:Name="CommandSpaceRow"/>
35913591
</Grid.RowDefinitions>
35923592
<ScrollViewer
35933593
x:Name="ContentScrollViewer"
@@ -3638,13 +3638,13 @@
36383638
TextWrapping="Wrap" />
36393639
</Grid>
36403640
</ScrollViewer>
3641-
<Border
3642-
Grid.Row="1"
3643-
Padding="26 0 26 0"
3644-
Background="{DynamicResource PopupButtonAreaBGColor}"
3645-
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
3646-
BorderThickness="0 1 0 0"
3647-
CornerRadius="0 0 8 8">
3641+
<Border x:Name="ButtonAreaBorder"
3642+
Grid.Row="1"
3643+
Padding="26 0 26 0"
3644+
Background="{DynamicResource PopupButtonAreaBGColor}"
3645+
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
3646+
BorderThickness="0 1 0 0"
3647+
CornerRadius="0 0 8 8">
36483648
<Grid
36493649
x:Name="CommandSpace"
36503650
HorizontalAlignment="Stretch"
@@ -3792,6 +3792,14 @@
37923792
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CommandSpace" Storyboard.TargetProperty="Visibility">
37933793
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Collapsed}" />
37943794
</ObjectAnimationUsingKeyFrames>
3795+
<!-- If the window has no buttons, it's assumed that the buttons are drawn directly within the window itself (as in the case of the HotkeyDialog).
3796+
In this case, the command space area is completely hidden. -->
3797+
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonAreaBorder" Storyboard.TargetProperty="Visibility">
3798+
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Collapsed}" />
3799+
</ObjectAnimationUsingKeyFrames>
3800+
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CommandSpaceRow" Storyboard.TargetProperty="Height">
3801+
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static GridLength.Auto}" />
3802+
</ObjectAnimationUsingKeyFrames>
37953803
</Storyboard>
37963804
</VisualState>
37973805
<VisualState x:Name="PrimaryVisible">

0 commit comments

Comments
 (0)