Skip to content

Commit a7dfdac

Browse files
committed
Remove progressbar from results
1 parent 2ac559e commit a7dfdac

File tree

4 files changed

+0
-48
lines changed

4 files changed

+0
-48
lines changed

Flow.Launcher.Plugin/Result.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,6 @@ public string PluginDirectory
187187
/// </summary>
188188
public Lazy<UserControl> PreviewPanel { get; set; }
189189

190-
/// <summary>
191-
/// Progress bar display. Providing an int value between 0-100 will trigger the progress bar to be displayed on the result
192-
/// </summary>
193-
public int? ProgressBar { get; set; }
194-
195-
/// <summary>
196-
/// Optionally set the color of the progress bar
197-
/// </summary>
198-
/// <default>#26a0da (blue)</default>
199-
public string ProgressBarColor { get; set; } = "#26a0da";
200-
201190
/// <summary>
202191
/// Contains data used to populate the preview section of this result.
203192
/// </summary>
@@ -259,8 +248,6 @@ public Result Clone()
259248
TitleToolTip = TitleToolTip,
260249
SubTitleToolTip = SubTitleToolTip,
261250
PreviewPanel = PreviewPanel,
262-
ProgressBar = ProgressBar,
263-
ProgressBarColor = ProgressBarColor,
264251
Preview = Preview,
265252
AddSelectedCount = AddSelectedCount,
266253
RecordKey = RecordKey,

Flow.Launcher/ResultListBox.xaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -138,22 +138,6 @@
138138
<RowDefinition Height="Auto" />
139139
<RowDefinition x:Name="SubTitleRowDefinition" Height="Auto" />
140140
</Grid.RowDefinitions>
141-
<ProgressBar
142-
x:Name="progressbarResult"
143-
Grid.Row="0"
144-
Foreground="{Binding Result.ProgressBarColor}"
145-
Value="{Binding ResultProgress, Mode=OneWay}">
146-
<ProgressBar.Style>
147-
<Style BasedOn="{StaticResource ProgressBarResult}" TargetType="ProgressBar">
148-
<Setter Property="Visibility" Value="Visible" />
149-
<Style.Triggers>
150-
<DataTrigger Binding="{Binding Result.ProgressBar}" Value="{x:Null}">
151-
<Setter Property="Visibility" Value="Collapsed" />
152-
</DataTrigger>
153-
</Style.Triggers>
154-
</Style>
155-
</ProgressBar.Style>
156-
</ProgressBar>
157141
<TextBlock
158142
x:Name="Title"
159143
Grid.Row="0"

Flow.Launcher/Themes/Base.xaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,6 @@
105105
TargetType="{x:Type Line}" />
106106

107107
<!-- Item Style -->
108-
<Style x:Key="ProgressBarResult" TargetType="{x:Type ProgressBar}">
109-
<Setter Property="Height" Value="18" />
110-
<Setter Property="Margin" Value="0 0 0 4" />
111-
<Setter Property="VerticalAlignment" Value="Center" />
112-
<Setter Property="Maximum" Value="100" />
113-
<Setter Property="Minimum" Value="0" />
114-
<Setter Property="Visibility" Value="Visible" />
115-
<Setter Property="Foreground" Value="#26a0da " />
116-
</Style>
117108

118109
<Style x:Key="BaseItemTitleStyle" TargetType="{x:Type TextBlock}">
119110
<Setter Property="Foreground" Value="#FFFFF8" />

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,6 @@ public void LoadPreviewImage()
239239
}
240240

241241
public Result Result { get; }
242-
public int ResultProgress
243-
{
244-
get
245-
{
246-
if (Result.ProgressBar == null)
247-
return 0;
248-
249-
return Result.ProgressBar.Value;
250-
}
251-
}
252242

253243
public string QuerySuggestionText { get; set; }
254244

0 commit comments

Comments
 (0)