Skip to content

Commit 04aea73

Browse files
committed
- Fix ProgressBar (Finally!)
1 parent 4f19355 commit 04aea73

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Flow.Launcher/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@
101101
</Canvas>
102102
</Grid>
103103

104-
<Grid>
104+
<Grid ClipToBounds="True">
105105
<Rectangle Width="Auto" HorizontalAlignment="Stretch" Style="{DynamicResource SeparatorStyle}" />
106106
<Line x:Name="ProgressBar" HorizontalAlignment="Right"
107107
Style="{DynamicResource PendingLineStyle}" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
108-
Y1="0" Y2="0" X1="0" X2="100" Height="2" Width="752" StrokeThickness="1">
108+
Y1="0" Y2="0" X1="-150" X2="-50" Height="2" Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}},Path=ActualWidth}" StrokeThickness="1">
109109
</Line>
110110
</Grid>
111111

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ private void InitializeNotifyIcon()
207207

208208
private void InitProgressbarAnimation()
209209
{
210-
var da = new DoubleAnimation(ProgressBar.X2, ActualWidth + 100,
210+
var da = new DoubleAnimation(ProgressBar.X2, ActualWidth + 150,
211211
new Duration(new TimeSpan(0, 0, 0, 0, 1600)));
212-
var da1 = new DoubleAnimation(ProgressBar.X1, ActualWidth, new Duration(new TimeSpan(0, 0, 0, 0, 1600)));
212+
var da1 = new DoubleAnimation(ProgressBar.X1, ActualWidth + 50, new Duration(new TimeSpan(0, 0, 0, 0, 1600)));
213213
Storyboard.SetTargetProperty(da, new PropertyPath("(Line.X2)"));
214214
Storyboard.SetTargetProperty(da1, new PropertyPath("(Line.X1)"));
215215
_progressBarStoryboard.Children.Add(da);

Flow.Launcher/SettingWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
<TextBlock Text="{Binding PluginPair.Metadata.Name}" TextWrapping="Wrap" ToolTip="{Binding PluginPair.Metadata.Version}" />
448448
<TextBlock Opacity="0.5" TextWrapping="Wrap" Margin="0 2 0 0">
449449
<Run Text="{Binding PluginPair.Metadata.Version}"/>
450-
</TextBlock>
450+
</TextBlock>a
451451
</StackPanel>
452452
</Grid>
453453
</DockPanel>

0 commit comments

Comments
 (0)