From e862b3861d2669ff2d6822fe3874056ce71172cc Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Fri, 14 Mar 2025 19:40:03 +0800 Subject: [PATCH] Cleanup PendingLineStyle --- Flow.Launcher/MainWindow.xaml | 1 - Flow.Launcher/MainWindow.xaml.cs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index d2f0ce79f..0720501ca 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -331,7 +331,6 @@ HorizontalAlignment="Center" VerticalAlignment="Bottom" StrokeThickness="2" - Style="{DynamicResource PendingLineStyle}" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" X1="-100" X2="0" diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 4a3b58281..6836d9b3a 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -27,6 +27,7 @@ using DataObject = System.Windows.DataObject; using System.Windows.Media; using System.Windows.Interop; using Windows.Win32; +using System.Windows.Shapes; namespace Flow.Launcher { @@ -460,8 +461,7 @@ namespace Flow.Launcher trigger.EnterActions.Add(beginStoryboard); trigger.ExitActions.Add(stopStoryboard); - - var progressStyle = new Style(typeof(System.Windows.Shapes.Line)) + var progressStyle = new Style(typeof(Line)) { BasedOn = FindResource("PendingLineStyle") as Style };