From 04aea73d0cc90bffa1ddc4accf771d4feee0430b Mon Sep 17 00:00:00 2001 From: Dobin Park Date: Thu, 7 Oct 2021 21:34:42 +0900 Subject: [PATCH 1/2] - Fix ProgressBar (Finally!) --- Flow.Launcher/MainWindow.xaml | 4 ++-- Flow.Launcher/MainWindow.xaml.cs | 4 ++-- Flow.Launcher/SettingWindow.xaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index db015392a19..73b13be8c95 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -101,11 +101,11 @@ - + + Y1="0" Y2="0" X1="-150" X2="-50" Height="2" Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}},Path=ActualWidth}" StrokeThickness="1"> diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 95e7ed6a82d..e84a3148e2d 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -207,9 +207,9 @@ private void InitializeNotifyIcon() private void InitProgressbarAnimation() { - var da = new DoubleAnimation(ProgressBar.X2, ActualWidth + 100, + var da = new DoubleAnimation(ProgressBar.X2, ActualWidth + 150, new Duration(new TimeSpan(0, 0, 0, 0, 1600))); - var da1 = new DoubleAnimation(ProgressBar.X1, ActualWidth, new Duration(new TimeSpan(0, 0, 0, 0, 1600))); + var da1 = new DoubleAnimation(ProgressBar.X1, ActualWidth + 50, new Duration(new TimeSpan(0, 0, 0, 0, 1600))); Storyboard.SetTargetProperty(da, new PropertyPath("(Line.X2)")); Storyboard.SetTargetProperty(da1, new PropertyPath("(Line.X1)")); _progressBarStoryboard.Children.Add(da); diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index 7dc8829bec7..2a552e7d821 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -447,7 +447,7 @@ - + a From c7ab6c05b9537cecbaa0f7b9ced0b620d68f992b Mon Sep 17 00:00:00 2001 From: Dobin Park Date: Thu, 14 Oct 2021 15:28:15 +0900 Subject: [PATCH 2/2] Fix Querybar text invade magnifying glass area (This is due to the problem that the size of the window changes when the shadow is turned on.) - remove all querybox/suggest querybox width of themes - Add padding for Magnifying glass area --- Flow.Launcher/Themes/Base.xaml | 10 ++++------ Flow.Launcher/Themes/Discord Dark.xaml | 4 ++-- Flow.Launcher/Themes/League.xaml | 4 ++-- Flow.Launcher/Themes/Metro Server.xaml | 2 ++ Flow.Launcher/Themes/Sublime.xaml | 6 ++---- Flow.Launcher/Themes/Win10Light.xaml | 6 ++---- Flow.Launcher/Themes/Win11Dark.xaml | 6 ++---- Flow.Launcher/Themes/Win11Light.xaml | 6 ++---- 8 files changed, 18 insertions(+), 26 deletions(-) diff --git a/Flow.Launcher/Themes/Base.xaml b/Flow.Launcher/Themes/Base.xaml index fba804b10ec..19612af7058 100644 --- a/Flow.Launcher/Themes/Base.xaml +++ b/Flow.Launcher/Themes/Base.xaml @@ -8,14 +8,13 @@ - + - - + @@ -42,10 +41,9 @@ - - - + + diff --git a/Flow.Launcher/Themes/Discord Dark.xaml b/Flow.Launcher/Themes/Discord Dark.xaml index aa1067bcadb..636fe7b6d38 100644 --- a/Flow.Launcher/Themes/Discord Dark.xaml +++ b/Flow.Launcher/Themes/Discord Dark.xaml @@ -12,16 +12,16 @@ - + diff --git a/Flow.Launcher/Themes/Metro Server.xaml b/Flow.Launcher/Themes/Metro Server.xaml index f6a5326636a..016e6af9dd0 100644 --- a/Flow.Launcher/Themes/Metro Server.xaml +++ b/Flow.Launcher/Themes/Metro Server.xaml @@ -8,10 +8,12 @@