Skip to content

Commit f39c5fd

Browse files
committed
Moved Visibility Property in ResultListBox.xaml
1 parent 314f2d6 commit f39c5fd

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Flow.Launcher/ResultListBox.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
mc:Ignorable="d">
2929
<!-- IsSynchronizedWithCurrentItem: http://stackoverflow.com/a/7833798/2833083 -->
3030

31+
<ListBox.Resources>
32+
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
33+
</ListBox.Resources>
34+
3135
<ListBox.ItemTemplate>
3236
<DataTemplate>
3337
<Button HorizontalAlignment="Stretch">
@@ -115,7 +119,8 @@
115119
x:Name="progressbarResult"
116120
Foreground="{Binding Result.ProgressBarColor}"
117121
Style="{DynamicResource ProgressBarResult}"
118-
Value="{Binding Result.ProgressBarValue}" />
122+
Value="{Binding Result.ProgressBarValue}"
123+
Visibility="{Binding Result.IsProgressBarVisible, Converter={StaticResource BooleanToVisibilityConverter}}"/>
119124
<TextBlock
120125
x:Name="Title"
121126
VerticalAlignment="Center"

Flow.Launcher/Themes/Base.xaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:system="clr-namespace:System;assembly=mscorlib"
55
xmlns:userSettings="clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure">
6-
7-
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
8-
6+
97
<!-- Further font customisations are dynamically loaded in Theme.cs -->
108
<Style x:Key="BaseQueryBoxStyle" TargetType="{x:Type TextBox}">
119
<Setter Property="BorderThickness" Value="0" />
@@ -91,7 +89,6 @@
9189
<Setter Property="Minimum" Value="0" />
9290
<Setter Property="Visibility" Value="Visible" />
9391
<Setter Property="Foreground" Value="#26a0da " />
94-
<Setter Property="Visibility" Value="{Binding Result.IsProgressBarVisible, Converter={StaticResource BooleanToVisibilityConverter}}"/>
9592
</Style>
9693

9794
<Style x:Key="BaseItemTitleStyle" TargetType="{x:Type TextBlock}">

0 commit comments

Comments
 (0)