Skip to content

Commit 234816d

Browse files
committed
- Add Automatically Hide Plugin Info Border by SettingControl Height
1 parent 0d11b79 commit 234816d

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

Flow.Launcher/SettingWindow.xaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636
ToolTip="Change Action Keywords"
637637
Margin="5 0 0 0" Cursor="Hand" FontWeight="Bold"
638638
Click="OnPluginActionKeywordsClick" HorizontalAlignment="Right"
639-
Width="100" Height="32">
639+
Width="100" Height="40">
640640

641641
<Button.Resources>
642642
<Style TargetType="Border">
@@ -655,15 +655,31 @@
655655
</StackPanel>
656656

657657
<StackPanel>
658-
<Border Background="White" Padding="14 14 14 14"
658+
659+
<!--#region SubInfo Styling -->
660+
<Border Background="White" Padding="14 0 14 0"
659661
BorderThickness="0 1 0 0" BorderBrush="#e6e6e6"
660662
VerticalAlignment="Center" HorizontalAlignment="Stretch"
661663
MaxHeight="480">
662-
<ContentControl
663-
Content="{Binding SettingControl}"
664-
Padding="0" Margin="0" VerticalAlignment="Stretch"
665-
MaxWidth="750" />
664+
<Border.Style>
665+
<Style TargetType="{x:Type Border}">
666+
<Setter Property="Visibility" Value="Visible" />
667+
<Style.Triggers>
668+
<DataTrigger Binding="{Binding ElementName=SettingControl, Path=ActualHeight}" Value="0">
669+
<Setter Property="Visibility" Value="Collapsed" />
670+
<Setter Property="BorderThickness" Value="0" />
671+
</DataTrigger>
672+
</Style.Triggers>
673+
</Style>
674+
</Border.Style>
666675
</Border>
676+
<!--#endregion-->
677+
<ContentControl x:Name="SettingControl"
678+
Content="{Binding SettingControl}"
679+
Padding="0 12 0 12" Margin="0 0 0 0" VerticalAlignment="Stretch"
680+
MaxWidth="750" >
681+
</ContentControl>
682+
667683
</StackPanel>
668684

669685
<StackPanel>

0 commit comments

Comments
 (0)