Skip to content

Commit

Permalink
Add style for hide sep when turn off info state
Browse files Browse the repository at this point in the history
  • Loading branch information
onesounds committed Jun 30, 2024
1 parent 55cd12d commit 56f7644
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
</Style>
</StackPanel.Style>
<Rectangle
x:Name="PreviewSep"
Width="Auto"
Height="1"
Margin="0 0 5 0"
Expand All @@ -72,7 +73,23 @@
Height="1"
Margin="0 0 5 0"
HorizontalAlignment="Stretch"
Style="{DynamicResource SeparatorStyle}" />
Fill="{Binding ElementName=PreviewSep, Path=Fill}">
<Rectangle.Style>
<Style TargetType="Rectangle">
<Setter Property="Visibility" Value="Visible" />
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding FileSizeVisibility, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}" Value="Collapsed" />
<Condition Binding="{Binding CreatedAtVisibility, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}" Value="Collapsed" />
<Condition Binding="{Binding LastModifiedAtVisibility, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}" Value="Collapsed" />
</MultiDataTrigger.Conditions>
<Setter Property="Visibility" Value="Collapsed" />
</MultiDataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
<StackPanel Visibility="{Binding FileInfoVisibility, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}">
<Grid Margin="0 10 0 10">
<Grid.ColumnDefinitions>
Expand All @@ -84,7 +101,6 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<TextBlock
Grid.Row="0"
Grid.Column="0"
Expand Down

0 comments on commit 56f7644

Please sign in to comment.