mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[CmdPal] UX tweaks (#40381)
Based on guidance from the design team, this PR introduces a bunch of small UX tweaks: - Standardizing body text on 14px (e.g. for the Adaptive Cards related code). - Left align all content in the details pane - Brush tweaks to the hotkey / tags for better visibility     Closes #38858
This commit is contained in:
@@ -32,22 +32,6 @@ internal sealed partial class NewExtensionForm : NewExtensionFormBase
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_page_title)}},
|
||||
"size": "large"
|
||||
},
|
||||
{
|
||||
"type": "TextBlock",
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_page_text)}},
|
||||
"wrap": true
|
||||
},
|
||||
{
|
||||
"type": "TextBlock",
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_name_header)}},
|
||||
"weight": "bolder",
|
||||
"size": "default"
|
||||
},
|
||||
{
|
||||
"type": "TextBlock",
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_name_description)}},
|
||||
"wrap": true
|
||||
},
|
||||
{
|
||||
"type": "Input.Text",
|
||||
"label": {{FormatJsonString(Properties.Resources.builtin_create_extension_name_label)}},
|
||||
@@ -59,14 +43,11 @@ internal sealed partial class NewExtensionForm : NewExtensionFormBase
|
||||
},
|
||||
{
|
||||
"type": "TextBlock",
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_display_name_header)}},
|
||||
"weight": "bolder",
|
||||
"size": "default"
|
||||
},
|
||||
{
|
||||
"type": "TextBlock",
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_display_name_description)}},
|
||||
"wrap": true
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_name_description)}},
|
||||
"wrap": true,
|
||||
"size": "small",
|
||||
"isSubtle": true,
|
||||
"spacing": "none"
|
||||
},
|
||||
{
|
||||
"type": "Input.Text",
|
||||
@@ -74,18 +55,16 @@ internal sealed partial class NewExtensionForm : NewExtensionFormBase
|
||||
"isRequired": true,
|
||||
"errorMessage": {{FormatJsonString(Properties.Resources.builtin_create_extension_display_name_required)}},
|
||||
"id": "DisplayName",
|
||||
"placeholder": "My new extension"
|
||||
"placeholder": "My new extension",
|
||||
"spacing": "medium"
|
||||
},
|
||||
{
|
||||
"type": "TextBlock",
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_directory_header)}},
|
||||
"weight": "bolder",
|
||||
"size": "default"
|
||||
},
|
||||
{
|
||||
"type": "TextBlock",
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_directory_description)}},
|
||||
"wrap": true
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_display_name_description)}},
|
||||
"wrap": true,
|
||||
"size": "small",
|
||||
"isSubtle": true,
|
||||
"spacing": "none"
|
||||
},
|
||||
{
|
||||
"type": "Input.Text",
|
||||
@@ -93,7 +72,16 @@ internal sealed partial class NewExtensionForm : NewExtensionFormBase
|
||||
"isRequired": true,
|
||||
"errorMessage": {{FormatJsonString(Properties.Resources.builtin_create_extension_directory_required)}},
|
||||
"id": "OutputPath",
|
||||
"placeholder": "C:\\users\\me\\dev"
|
||||
"placeholder": "C:\\users\\me\\dev",
|
||||
"spacing": "medium"
|
||||
},
|
||||
{
|
||||
"type": "TextBlock",
|
||||
"text": {{FormatJsonString(Properties.Resources.builtin_create_extension_directory_description)}},
|
||||
"wrap": true,
|
||||
"size": "small",
|
||||
"isSubtle": true,
|
||||
"spacing": "none"
|
||||
}
|
||||
],
|
||||
"actions": [
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace Microsoft.CmdPal.UI.ViewModels.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Where should the new extension be created? This path will be created if it doesn't exist.
|
||||
/// Looks up a localized string similar to Select the folder where the new extension will be created. The path will be created if it doesn't exist..
|
||||
/// </summary>
|
||||
public static string builtin_create_extension_directory_description {
|
||||
get {
|
||||
@@ -78,15 +78,6 @@ namespace Microsoft.CmdPal.UI.ViewModels.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Output path.
|
||||
/// </summary>
|
||||
public static string builtin_create_extension_directory_header {
|
||||
get {
|
||||
return ResourceManager.GetString("builtin_create_extension_directory_header", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Output path.
|
||||
/// </summary>
|
||||
@@ -106,7 +97,7 @@ namespace Microsoft.CmdPal.UI.ViewModels.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to The name of your extension as users will see it..
|
||||
/// Looks up a localized string similar to The name of the extension as it will appear to users..
|
||||
/// </summary>
|
||||
public static string builtin_create_extension_display_name_description {
|
||||
get {
|
||||
@@ -114,15 +105,6 @@ namespace Microsoft.CmdPal.UI.ViewModels.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Display name.
|
||||
/// </summary>
|
||||
public static string builtin_create_extension_display_name_header {
|
||||
get {
|
||||
return ResourceManager.GetString("builtin_create_extension_display_name_header", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Display name.
|
||||
/// </summary>
|
||||
@@ -151,7 +133,7 @@ namespace Microsoft.CmdPal.UI.ViewModels.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to This is the name of your new extension project. It should be a valid C# class name. Best practice is to also include the word 'Extension' in the name..
|
||||
/// Looks up a localized string similar to Enter a valid C# class name for the new extension project. It's recommended to include the word "Extension" in the name..
|
||||
/// </summary>
|
||||
public static string builtin_create_extension_name_description {
|
||||
get {
|
||||
@@ -159,15 +141,6 @@ namespace Microsoft.CmdPal.UI.ViewModels.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Extension name.
|
||||
/// </summary>
|
||||
public static string builtin_create_extension_name_header {
|
||||
get {
|
||||
return ResourceManager.GetString("builtin_create_extension_name_header", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Extension name.
|
||||
/// </summary>
|
||||
@@ -205,16 +178,7 @@ namespace Microsoft.CmdPal.UI.ViewModels.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Use this page to create a new extension project..
|
||||
/// </summary>
|
||||
public static string builtin_create_extension_page_text {
|
||||
get {
|
||||
return ResourceManager.GetString("builtin_create_extension_page_text", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Create your new extension.
|
||||
/// Looks up a localized string similar to Create a new extension.
|
||||
/// </summary>
|
||||
public static string builtin_create_extension_page_title {
|
||||
get {
|
||||
|
||||
@@ -180,16 +180,10 @@
|
||||
<value>Once you're ready to test deploy the package locally with Visual Studio, then run the \"Reload\" command in the Command Palette to load your new extension.</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_page_title" xml:space="preserve">
|
||||
<value>Create your new extension</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_page_text" xml:space="preserve">
|
||||
<value>Use this page to create a new extension project.</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_name_header" xml:space="preserve">
|
||||
<value>Extension name</value>
|
||||
<value>Create a new extension</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_name_description" xml:space="preserve">
|
||||
<value>This is the name of your new extension project. It should be a valid C# class name. Best practice is to also include the word 'Extension' in the name.</value>
|
||||
<value>Enter a valid C# class name for the new extension project. It's recommended to include the word "Extension" in the name.</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_name_label" xml:space="preserve">
|
||||
<value>Extension name</value>
|
||||
@@ -197,11 +191,8 @@
|
||||
<data name="builtin_create_extension_name_required" xml:space="preserve">
|
||||
<value>Extension name is required and must be a valid C# identifier (start with a letter or underscore, followed by letters, numbers, or underscores)</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_display_name_header" xml:space="preserve">
|
||||
<value>Display name</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_display_name_description" xml:space="preserve">
|
||||
<value>The name of your extension as users will see it.</value>
|
||||
<value>The name of the extension as it will appear to users.</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_display_name_label" xml:space="preserve">
|
||||
<value>Display name</value>
|
||||
@@ -209,11 +200,8 @@
|
||||
<data name="builtin_create_extension_display_name_required" xml:space="preserve">
|
||||
<value>Display name is required</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_directory_header" xml:space="preserve">
|
||||
<value>Output path</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_directory_description" xml:space="preserve">
|
||||
<value>Where should the new extension be created? This path will be created if it doesn't exist</value>
|
||||
<value>Select the folder where the new extension will be created. The path will be created if it doesn't exist.</value>
|
||||
</data>
|
||||
<data name="builtin_create_extension_directory_label" xml:space="preserve">
|
||||
<value>Output path</value>
|
||||
|
||||
Reference in New Issue
Block a user