From 78b661733d46353381af8fe25dd578a9dd7f8613 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 29 Mar 2025 15:49:22 +0800 Subject: [PATCH] Improve placeholder text tooltip --- Flow.Launcher/Languages/en.xaml | 4 ++-- .../SettingPages/ViewModels/SettingsPaneThemeViewModel.cs | 5 +++++ Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 6d890dfba..c170c44e4 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -39,7 +39,7 @@ Game Mode Suspend the use of Hotkeys. Position Reset - Type here to search + Type here to search Settings @@ -203,7 +203,7 @@ Show placeholder Display placeholder when query is empty Placeholder text - Change placeholder text. Input empty will use: Type here to search + Change placeholder text. Input empty will use: {0} Fixed Window Size The window size is not adjustable by dragging. diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs index 099be496b..e35c978ed 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs @@ -265,6 +265,11 @@ public partial class SettingsPaneThemeViewModel : BaseModel set => Settings.ShowPlaceholder = value; } + public string PlaceholderTextTip + { + get => string.Format(App.API.GetTranslation("PlaceholderTextTip"), App.API.GetTranslation("queryTextBoxPlaceholder")); + } + public string PlaceholderText { get => Settings.PlaceholderText; diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml index f9eef8924..5e1ba24ea 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml @@ -549,9 +549,9 @@ + Sub="{Binding PlaceholderTextTip}">