Skip to content

Commit 78b6617

Browse files
committed
Improve placeholder text tooltip
1 parent 6f32a6f commit 78b6617

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<system:String x:Key="GameMode">Game Mode</system:String>
4040
<system:String x:Key="GameModeToolTip">Suspend the use of Hotkeys.</system:String>
4141
<system:String x:Key="PositionReset">Position Reset</system:String>
42-
<system:String x:Key="queryTextBoxSuggestion">Type here to search</system:String>
42+
<system:String x:Key="queryTextBoxPlaceholder">Type here to search</system:String>
4343

4444
<!-- Setting General -->
4545
<system:String x:Key="flowlauncher_settings">Settings</system:String>
@@ -203,7 +203,7 @@
203203
<system:String x:Key="ShowPlaceholder">Show placeholder</system:String>
204204
<system:String x:Key="ShowPlaceholderTip">Display placeholder when query is empty</system:String>
205205
<system:String x:Key="PlaceholderText">Placeholder text</system:String>
206-
<system:String x:Key="PlaceholderTextTip">Change placeholder text. Input empty will use: Type here to search</system:String>
206+
<system:String x:Key="PlaceholderTextTip">Change placeholder text. Input empty will use: {0}</system:String>
207207
<system:String x:Key="KeepMaxResults">Fixed Window Size</system:String>
208208
<system:String x:Key="KeepMaxResultsToolTip">The window size is not adjustable by dragging.</system:String>
209209

Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ public bool ShowPlaceholder
265265
set => Settings.ShowPlaceholder = value;
266266
}
267267

268+
public string PlaceholderTextTip
269+
{
270+
get => string.Format(App.API.GetTranslation("PlaceholderTextTip"), App.API.GetTranslation("queryTextBoxPlaceholder"));
271+
}
272+
268273
public string PlaceholderText
269274
{
270275
get => Settings.PlaceholderText;

Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@
549549
<cc:Card
550550
Title="{DynamicResource PlaceholderText}"
551551
Icon="&#xED59;"
552-
Sub="{DynamicResource PlaceholderTextTip}">
552+
Sub="{Binding PlaceholderTextTip}">
553553
<TextBox
554-
MinWidth="80"
554+
MinWidth="150"
555555
Text="{Binding PlaceholderText}"
556556
TextWrapping="NoWrap" />
557557
</cc:Card>

0 commit comments

Comments
 (0)