File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed
Plugins/Flow.Launcher.Plugin.Explorer/Views Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 54
54
<TextBlock
55
55
Style =" {DynamicResource PreviewItemSubTitleStyle}"
56
56
Text =" {Binding Result.SubTitle}" />
57
- <StackPanel Orientation =" Vertical" >
58
- <StackPanel .Style>
59
- <Style TargetType =" StackPanel" >
60
- <Style .Triggers>
61
- <DataTrigger
62
- Binding =" {Binding ElementName=SizeValue, Path=Text}"
63
- Value =" {x:Static sys:String.Empty}" >
64
- <Setter Property =" Height" Value =" 0" />
65
- </DataTrigger >
66
- </Style .Triggers>
67
- </Style >
68
- </StackPanel .Style>
57
+ <StackPanel
58
+ Visibility =" {Binding FileInfoVisibility, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}" >
59
+
69
60
<Separator Margin =" 0" Style =" {DynamicResource PreviewSep}" />
70
- <Grid Margin =" 0 10 0 0" VerticalAlignment =" Center" >
61
+
62
+ <Grid Margin =" 0 10 0 0" >
71
63
<Grid .ColumnDefinitions>
72
64
<ColumnDefinition Width =" 100" />
73
65
<ColumnDefinition Width =" *" />
77
69
<RowDefinition Height =" Auto" />
78
70
<RowDefinition Height =" Auto" />
79
71
</Grid .RowDefinitions>
72
+
80
73
<TextBlock
81
74
Grid.Row=" 0"
82
75
Grid.Column=" 0"
87
80
Text =" {DynamicResource FileSize}"
88
81
TextWrapping =" Wrap" />
89
82
<TextBlock
90
- Name =" SizeValue"
91
83
Grid.Row=" 0"
92
84
Grid.Column=" 1"
93
85
Margin =" 0"
Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ private set
43
43
? Visibility . Visible
44
44
: Visibility . Collapsed ;
45
45
46
+ public Visibility FileInfoVisibility =>
47
+ Settings . ShowFileSizeInPreviewPanel ||
48
+ Settings . ShowCreatedDateInPreviewPanel ||
49
+ Settings . ShowModifiedDateInPreviewPanel
50
+ ? Visibility . Visible
51
+ : Visibility . Collapsed ;
52
+
46
53
public PreviewPanel ( Settings settings , string filePath )
47
54
{
48
55
InitializeComponent ( ) ;
You can’t perform that action at this time.
0 commit comments