From 3f1267feb4f36695c879912194f8fc86a20a89da Mon Sep 17 00:00:00 2001 From: DB p Date: Fri, 11 Apr 2025 06:43:38 +0900 Subject: [PATCH 1/7] Fix Fontcolor binding --- Flow.Launcher/Resources/CustomControlTemplate.xaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/Resources/CustomControlTemplate.xaml b/Flow.Launcher/Resources/CustomControlTemplate.xaml index ffa5eea41..c18d5fa60 100644 --- a/Flow.Launcher/Resources/CustomControlTemplate.xaml +++ b/Flow.Launcher/Resources/CustomControlTemplate.xaml @@ -2785,6 +2785,7 @@ + @@ -2872,7 +2873,7 @@ FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" - Foreground="{DynamicResource Color05B}" + Foreground="{TemplateBinding Foreground}" InputScope="{TemplateBinding InputScope}" SelectionBrush="{TemplateBinding SelectionBrush}" TextAlignment="{TemplateBinding TextAlignment}" /> From de21a43a81a36fd9fb1c5589c60c757dcce1d542 Mon Sep 17 00:00:00 2001 From: DB p Date: Fri, 11 Apr 2025 07:23:21 +0900 Subject: [PATCH 2/7] Adjust Template --- Flow.Launcher/Languages/en.xaml | 1 + .../Resources/Controls/InstalledPluginDisplay.xaml | 5 ++++- Flow.Launcher/Resources/CustomControlTemplate.xaml | 8 +++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 609859d0d..a7fbca90a 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -109,6 +109,7 @@ Shadow effect is not allowed while current theme has blur effect enabled Search Delay Adds a short delay while typing to reduce UI flicker and result load. Recommended if your typing speed is average. + Enter the wait time (in ms) until input is considered complete. This can only be edited if Search Delay is enabled. Default Search Delay Time Wait time before showing results after typing stops. Higher values wait longer. (ms) diff --git a/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml b/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml index 231036244..619da22dc 100644 --- a/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml +++ b/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml @@ -96,8 +96,11 @@ PlaceholderText="{Binding DefaultSearchDelay}" SmallChange="10" SpinButtonPlacementMode="Compact" - ToolTip="{DynamicResource searchDelayToolTip}" + ToolTip="{DynamicResource searchDelayNumberBoxToolTip}" + ToolTipService.InitialShowDelay="0" + ToolTipService.ShowOnDisabled="True" Value="{Binding PluginSearchDelayTime, Mode=TwoWay}" /> + diff --git a/Flow.Launcher/Resources/CustomControlTemplate.xaml b/Flow.Launcher/Resources/CustomControlTemplate.xaml index c18d5fa60..ae3cc8018 100644 --- a/Flow.Launcher/Resources/CustomControlTemplate.xaml +++ b/Flow.Launcher/Resources/CustomControlTemplate.xaml @@ -2784,10 +2784,12 @@ - + - + + + @@ -2873,7 +2875,7 @@ FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" - Foreground="{TemplateBinding Foreground}" + Foreground="{DynamicResource ForeGround}" InputScope="{TemplateBinding InputScope}" SelectionBrush="{TemplateBinding SelectionBrush}" TextAlignment="{TemplateBinding TextAlignment}" /> From dac66d0c39e410683cbafe1e01e5df8b479f7dda Mon Sep 17 00:00:00 2001 From: DB p Date: Fri, 11 Apr 2025 07:27:16 +0900 Subject: [PATCH 3/7] Add removed tooltip --- Flow.Launcher/Languages/en.xaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index a7fbca90a..e53b75ae8 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -44,6 +44,7 @@ Game Mode Suspend the use of Hotkeys. Position Reset + Reset search window position Type here to search From d76b406c82d8f59937d5bf55b28559ffac9f5ef6 Mon Sep 17 00:00:00 2001 From: DB p Date: Fri, 11 Apr 2025 09:15:30 +0900 Subject: [PATCH 4/7] Fix template binding --- Flow.Launcher/Resources/CustomControlTemplate.xaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Flow.Launcher/Resources/CustomControlTemplate.xaml b/Flow.Launcher/Resources/CustomControlTemplate.xaml index ae3cc8018..de84e40d9 100644 --- a/Flow.Launcher/Resources/CustomControlTemplate.xaml +++ b/Flow.Launcher/Resources/CustomControlTemplate.xaml @@ -2875,7 +2875,6 @@ FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" - Foreground="{DynamicResource ForeGround}" InputScope="{TemplateBinding InputScope}" SelectionBrush="{TemplateBinding SelectionBrush}" TextAlignment="{TemplateBinding TextAlignment}" /> From 96915d7e97c99809a7608ab6e9606e665a90bff2 Mon Sep 17 00:00:00 2001 From: DB p Date: Fri, 11 Apr 2025 09:17:12 +0900 Subject: [PATCH 5/7] Fix Style --- Flow.Launcher/Resources/CustomControlTemplate.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/Resources/CustomControlTemplate.xaml b/Flow.Launcher/Resources/CustomControlTemplate.xaml index de84e40d9..5a6b9a248 100644 --- a/Flow.Launcher/Resources/CustomControlTemplate.xaml +++ b/Flow.Launcher/Resources/CustomControlTemplate.xaml @@ -2804,7 +2804,7 @@ - + From 5e54416d3a40952f6c36fc8f5173c7bde4d7b096 Mon Sep 17 00:00:00 2001 From: DB p Date: Fri, 11 Apr 2025 09:21:30 +0900 Subject: [PATCH 6/7] Remove Dulplicated setter --- Flow.Launcher/Resources/CustomControlTemplate.xaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Flow.Launcher/Resources/CustomControlTemplate.xaml b/Flow.Launcher/Resources/CustomControlTemplate.xaml index 5a6b9a248..1ff6ca49c 100644 --- a/Flow.Launcher/Resources/CustomControlTemplate.xaml +++ b/Flow.Launcher/Resources/CustomControlTemplate.xaml @@ -1285,7 +1285,6 @@ BasedOn="{StaticResource DefaultComboBoxStyle}" TargetType="ComboBox"> - From c5f2868a9b620303525715edb971a56bd6c384c9 Mon Sep 17 00:00:00 2001 From: DB p Date: Fri, 11 Apr 2025 09:25:45 +0900 Subject: [PATCH 7/7] Fix small warning --- .../Converters/QuerySuggestionBoxConverter.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs b/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs index ed94771f0..0d6f2e469 100644 --- a/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs +++ b/Flow.Launcher/Converters/QuerySuggestionBoxConverter.cs @@ -1,5 +1,6 @@ using System; using System.Globalization; +using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Media; @@ -43,8 +44,16 @@ public class QuerySuggestionBoxConverter : IMultiValueConverter // Check if Text will be larger than our QueryTextBox Typeface typeface = new Typeface(queryTextBox.FontFamily, queryTextBox.FontStyle, queryTextBox.FontWeight, queryTextBox.FontStretch); - // TODO: Obsolete warning? - var ft = new FormattedText(queryTextBox.Text, CultureInfo.CurrentCulture, System.Windows.FlowDirection.LeftToRight, typeface, queryTextBox.FontSize, Brushes.Black); + var dpi = VisualTreeHelper.GetDpi(queryTextBox); + var ft = new FormattedText( + queryTextBox.Text, + CultureInfo.CurrentCulture, + FlowDirection.LeftToRight, + typeface, + queryTextBox.FontSize, + Brushes.Black, + dpi.PixelsPerDip + ); var offset = queryTextBox.Padding.Right;