File tree Expand file tree Collapse file tree 4 files changed +0
-48
lines changed Expand file tree Collapse file tree 4 files changed +0
-48
lines changed Original file line number Diff line number Diff line change @@ -187,17 +187,6 @@ public string PluginDirectory
187
187
/// </summary>
188
188
public Lazy < UserControl > PreviewPanel { get ; set ; }
189
189
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
-
201
190
/// <summary>
202
191
/// Contains data used to populate the preview section of this result.
203
192
/// </summary>
@@ -259,8 +248,6 @@ public Result Clone()
259
248
TitleToolTip = TitleToolTip ,
260
249
SubTitleToolTip = SubTitleToolTip ,
261
250
PreviewPanel = PreviewPanel ,
262
- ProgressBar = ProgressBar ,
263
- ProgressBarColor = ProgressBarColor ,
264
251
Preview = Preview ,
265
252
AddSelectedCount = AddSelectedCount ,
266
253
RecordKey = RecordKey ,
Original file line number Diff line number Diff line change 138
138
<RowDefinition Height =" Auto" />
139
139
<RowDefinition x : Name =" SubTitleRowDefinition" Height =" Auto" />
140
140
</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 >
157
141
<TextBlock
158
142
x : Name =" Title"
159
143
Grid.Row=" 0"
Original file line number Diff line number Diff line change 105
105
TargetType =" {x:Type Line}" />
106
106
107
107
<!-- 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 >
117
108
118
109
<Style x : Key =" BaseItemTitleStyle" TargetType =" {x:Type TextBlock}" >
119
110
<Setter Property =" Foreground" Value =" #FFFFF8" />
Original file line number Diff line number Diff line change @@ -239,16 +239,6 @@ public void LoadPreviewImage()
239
239
}
240
240
241
241
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
- }
252
242
253
243
public string QuerySuggestionText { get ; set ; }
254
244
You can’t perform that action at this time.
0 commit comments