Skip to content

Commit 1d746c2

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

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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);

0 commit comments

Comments
 (0)