mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-22 10:07:37 +00:00
Change filter box placeholder for main list page only (#40799)
## Summary of the Pull Request Changes the placeholder in the filter box only on the main list page to "Search for apps, files and commands...": <img width="786" height="473" alt="image" src="https://github.com/user-attachments/assets/844d27ae-61cf-42c9-a7f6-ae78817e928c" /> The default value remains unchanged as "Type here to search..." for all other pages (both built-in and internal), unless the author overrides it: <img width="786" height="473" alt="image" src="https://github.com/user-attachments/assets/aeb3500b-9e36-4e35-8dd7-3bd226336823" /> <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist - [x] Closes: #40763 - [x] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [x] **Localization:** All end-user-facing strings can be localized - [x] **Dev docs:** Added/updated - [x] **New binaries:** none - [x] **Documentation updated:** ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed
This commit is contained in:
parent
46d380c2b6
commit
ee6336c47d
@ -32,6 +32,7 @@ public partial class MainListPage : DynamicListPage,
|
|||||||
public MainListPage(IServiceProvider serviceProvider)
|
public MainListPage(IServiceProvider serviceProvider)
|
||||||
{
|
{
|
||||||
Icon = IconHelpers.FromRelativePath("Assets\\StoreLogo.scale-200.png");
|
Icon = IconHelpers.FromRelativePath("Assets\\StoreLogo.scale-200.png");
|
||||||
|
PlaceholderText = Properties.Resources.builtin_main_list_page_searchbar_placeholder;
|
||||||
_serviceProvider = serviceProvider;
|
_serviceProvider = serviceProvider;
|
||||||
|
|
||||||
_tlcManager = _serviceProvider.GetService<TopLevelCommandManager>()!;
|
_tlcManager = _serviceProvider.GetService<TopLevelCommandManager>()!;
|
||||||
|
@ -321,6 +321,15 @@ namespace Microsoft.CmdPal.UI.ViewModels.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Search for apps, files and commands....
|
||||||
|
/// </summary>
|
||||||
|
public static string builtin_main_list_page_searchbar_placeholder {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("builtin_main_list_page_searchbar_placeholder", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Creates a project for a new Command Palette extension.
|
/// Looks up a localized string similar to Creates a project for a new Command Palette extension.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -227,4 +227,7 @@
|
|||||||
<data name="builtin_disabled_extension" xml:space="preserve">
|
<data name="builtin_disabled_extension" xml:space="preserve">
|
||||||
<value>Disabled</value>
|
<value>Disabled</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="builtin_main_list_page_searchbar_placeholder" xml:space="preserve">
|
||||||
|
<value>Search for apps, files and commands...</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
Loading…
x
Reference in New Issue
Block a user