From c06fdb9134da07c0a6ad989847f3196e5d8f82db Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 14 Jun 2025 20:35:09 +0800 Subject: [PATCH 1/4] Set topmost default value to false --- Flow.Launcher.Infrastructure/UserSettings/Settings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index 975609e0f08..33f7c5fc245 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -383,7 +383,7 @@ public bool HideNotifyIcon public bool LeaveCmdOpen { get; set; } public bool HideWhenDeactivated { get; set; } = true; - private bool _showAtTopmost = true; + private bool _showAtTopmost = false; public bool ShowAtTopmost { get => _showAtTopmost; From f30c6fc577c9fd60ee2de0db6f275847c2ff8f4c Mon Sep 17 00:00:00 2001 From: DB P Date: Sat, 14 Jun 2025 22:19:31 +0900 Subject: [PATCH 2/4] Modified strings and added BoolNegationConverter --- .../Converters/BoolNegationConverter.cs | 23 +++++++++++++++ Flow.Launcher/Languages/en.xaml | 4 +-- .../Views/SettingsPaneGeneral.xaml | 28 ++++++++++--------- 3 files changed, 40 insertions(+), 15 deletions(-) create mode 100644 Flow.Launcher/Converters/BoolNegationConverter.cs diff --git a/Flow.Launcher/Converters/BoolNegationConverter.cs b/Flow.Launcher/Converters/BoolNegationConverter.cs new file mode 100644 index 00000000000..50a5c0f341a --- /dev/null +++ b/Flow.Launcher/Converters/BoolNegationConverter.cs @@ -0,0 +1,23 @@ +using System; +using System.Globalization; +using System.Windows.Data; + +namespace Flow.Launcher.Converters +{ + public class BoolNegationConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + if (value is bool b) + return !b; + return value; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + if (value is bool b) + return !b; + return value; + } + } +} diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index f7f8dfd4272..4df6b3155df 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -131,8 +131,8 @@ Show History Results in Home Page Maximum History Results Shown in Home Page This can only be edited if plugin supports Home feature and Home Page is enabled. - Show Search Window at Topmost - Show search window above other windows + Keep on top + Keeps the search window on top even after it loses focus. Search Plugin diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml index e8ae0dc3c3a..ae1648076b0 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml @@ -17,6 +17,7 @@ mc:Ignorable="d"> + - - + + - + + + + + - - - From 27daffe515319317682afb263e532fdd11e221b2 Mon Sep 17 00:00:00 2001 From: DB P Date: Sat, 14 Jun 2025 23:26:08 +0900 Subject: [PATCH 3/4] Revert "Modified strings and added BoolNegationConverter" This reverts commit f30c6fc577c9fd60ee2de0db6f275847c2ff8f4c. --- .../Converters/BoolNegationConverter.cs | 23 --------------- Flow.Launcher/Languages/en.xaml | 4 +-- .../Views/SettingsPaneGeneral.xaml | 28 +++++++++---------- 3 files changed, 15 insertions(+), 40 deletions(-) delete mode 100644 Flow.Launcher/Converters/BoolNegationConverter.cs diff --git a/Flow.Launcher/Converters/BoolNegationConverter.cs b/Flow.Launcher/Converters/BoolNegationConverter.cs deleted file mode 100644 index 50a5c0f341a..00000000000 --- a/Flow.Launcher/Converters/BoolNegationConverter.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Globalization; -using System.Windows.Data; - -namespace Flow.Launcher.Converters -{ - public class BoolNegationConverter : IValueConverter - { - public object Convert(object value, Type targetType, object parameter, CultureInfo culture) - { - if (value is bool b) - return !b; - return value; - } - - public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) - { - if (value is bool b) - return !b; - return value; - } - } -} diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 4df6b3155df..f7f8dfd4272 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -131,8 +131,8 @@ Show History Results in Home Page Maximum History Results Shown in Home Page This can only be edited if plugin supports Home feature and Home Page is enabled. - Keep on top - Keeps the search window on top even after it loses focus. + Show Search Window at Topmost + Show search window above other windows Search Plugin diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml index ae1648076b0..e8ae0dc3c3a 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml @@ -17,7 +17,6 @@ mc:Ignorable="d"> - - - - + - - - - - + + + + From 4c7f966e7c2af0ee7d231a0422dc3b8831fafc7d Mon Sep 17 00:00:00 2001 From: DB P Date: Sat, 14 Jun 2025 23:55:34 +0900 Subject: [PATCH 4/4] UI improvement and text update - en.xaml: Updated "showAtTopmost" and tooltip text - SettingsPaneGeneral.xaml: Added "Hide Notify Icon" card and updated icon - Adjusted card group margins --- Flow.Launcher/Languages/en.xaml | 4 ++-- Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index f7f8dfd4272..bd4cbd28247 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -131,8 +131,8 @@ Show History Results in Home Page Maximum History Results Shown in Home Page This can only be edited if plugin supports Home feature and Home Page is enabled. - Show Search Window at Topmost - Show search window above other windows + Show Search Window at Foremost + Overrides other programs' 'Always on Top' setting and displays Flow in the foremost position. Search Plugin diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml index e8ae0dc3c3a..7f8555d6548 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml @@ -70,6 +70,7 @@ OnContent="{DynamicResource enable}" /> + + - +