[Run] UI improvements + ability to show/hide plugins overview panel (#30258)

* Add setting to show/hide plugin keywords in Run

* Increasing fontsize and spacing

* Removing tooltip prefixes

* Tweaks and making sure the window gets smaller when plugins overview is disabled

* Label updates for Settings

* Updating UI

* Fix number of results height

* Centering textbox

* Adding tooltip to keyword

* Selection highlight + dark theme tweaks

* Change order and fix CI

* Update expect.txt

* Add option to select only non-global plugins preview

* Fix typos

---------

Co-authored-by: Stefan Markovic <stefan@janeasystems.com>
This commit is contained in:
Niels Laute
2023-12-19 14:11:35 +01:00
committed by GitHub
parent 545f901492
commit af099737b8
17 changed files with 203 additions and 75 deletions

View File

@@ -157,10 +157,9 @@
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.UsePinyin, Mode=TwoWay}" />
</controls:SettingsCard>
<controls:SettingsCard x:Uid="PowerLauncher_GenerateThumbnailsFromFiles">
<controls:SettingsCard x:Uid="PowerLauncher_GenerateThumbnailsFromFiles" HeaderIcon="{ui:FontIcon Glyph=&#xE91B;}">
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.GenerateThumbnailsFromFiles, Mode=TwoWay}" />
</controls:SettingsCard>
</custom:SettingsGroup>
<!--<ComboBox x:Uid="PowerLauncher_SearchResultPreference"
@@ -202,6 +201,14 @@
<ComboBoxItem x:Uid="Radio_Theme_Default" />
</ComboBox>
</controls:SettingsCard>
<controls:SettingsCard x:Uid="PowerLauncher_ShowPluginKeywords" HeaderIcon="{ui:FontIcon Glyph=&#xE8FD;}">
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.ShowPluginsOverviewIndex}">
<ComboBoxItem x:Uid="ShowPluginsOverview_All" />
<ComboBoxItem x:Uid="ShowPluginsOverview_NonGlobal" />
<ComboBoxItem x:Uid="ShowPluginsOverview_None" />
</ComboBox>
</controls:SettingsCard>
</custom:SettingsGroup>
<custom:SettingsGroup x:Uid="PowerLauncher_Plugins" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}">

View File

@@ -59,7 +59,10 @@
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:schema id="root"
xmlns=""
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
@@ -2183,7 +2186,7 @@ From there, simply click on one of the supported files in the File Explorer and
<value>Welcome to PowerToys</value>
<comment>Don't loc "PowerToys"</comment>
</data>
<data name="WhatIsNew_NavViewItem.Content" xml:space="preserve">
<data name="WhatIsNew_NavViewItem.Content" xml:space="preserve">
<value>What's New</value>
</data>
<data name="Feedback_NavViewItem.Content" xml:space="preserve">
@@ -2996,6 +2999,12 @@ Right-click to remove the key combination, thereby deactivating the shortcut.</v
<data name="PowerLauncher_WaitForSlowResults.Header" xml:space="preserve">
<value>Wait on slower plugin results before selecting top item in results</value>
</data>
<data name="PowerLauncher_ShowPluginKeywords.Header" xml:space="preserve">
<value>Plugin hints</value>
</data>
<data name="PowerLauncher_ShowPluginKeywords.Description" xml:space="preserve">
<value>Choose which plugin keywords to be shown when the searchbox is empty</value>
</data>
<data name="PowerLauncher_PluginWeightBoost.Description" xml:space="preserve">
<value>Use a higher number to have this plugin's result show higher in the global results. Default is 0.</value>
</data>
@@ -3364,7 +3373,7 @@ Activate by holding the key for the character you want to add an accent to, then
<value>German</value>
</data>
<data name="QuickAccent_SelectedLanguage_Greek.Content" xml:space="preserve">
<value>Greek</value>
<value>Greek</value>
</data>
<data name="QuickAccent_SelectedLanguage_Hebrew.Content" xml:space="preserve">
<value>Hebrew</value>
@@ -3898,4 +3907,13 @@ Activate by holding the key for the character you want to add an accent to, then
<data name="Peek_SourceCode_WrapText.Content" xml:space="preserve">
<value>Wrap text</value>
</data>
</root>
<data name="ShowPluginsOverview_All.Content" xml:space="preserve">
<value>All</value>
</data>
<data name="ShowPluginsOverview_None.Content" xml:space="preserve">
<value>None</value>
</data>
<data name="ShowPluginsOverview_NonGlobal.Content" xml:space="preserve">
<value>Not included in global results</value>
</data>
</root>

View File

@@ -597,6 +597,23 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
}
}
public int ShowPluginsOverviewIndex
{
get
{
return settings.Properties.ShowPluginsOverview;
}
set
{
if (settings.Properties.ShowPluginsOverview != value)
{
settings.Properties.ShowPluginsOverview = value;
UpdateSettings();
}
}
}
private ObservableCollection<PowerLauncherPluginViewModel> _plugins;
public ObservableCollection<PowerLauncherPluginViewModel> Plugins