[Settings] Shortcut UX redesign (#12977)

* Added dialog

* Added virtualkey logic

* Key logic in place

* Styling

* Updated layout

* Updated foreground

* Refactor

* Catching error handling

* Hotkey UI handling

* Spell check

* Adding shortcut visuals to OOBE

* INtroducing shortcutcontrol for OOBE

* Removed unneccasry comments

* OOBE fixes

* Fix

* Visual updates

* Update Product.wxs

* Updated UI

* Update Product.wxs

* Changes

* Changed installer file

* Fixed warner banner height

* Added visual key to KBR

* Updated margin

* pr 12977: fix installer issue (#13075)

Co-authored-by: Niels Laute <niels9001@hotmail.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
This commit is contained in:
Niels Laute
2021-09-06 20:21:18 +02:00
committed by GitHub
parent 2bfc62d9a5
commit a6cca7cfb0
41 changed files with 883 additions and 427 deletions

View File

@@ -847,10 +847,6 @@
<data name="General_RunAsAdminRequired.Title" xml:space="preserve">
<value>You need to run as administrator to use this setting.</value>
</data>
<data name="ShortcutWarningLabel.Text" xml:space="preserve">
<value>Only shortcuts with the following hotkeys are valid:</value>
<comment>keyboard shortcuts and</comment>
</data>
<data name="FancyZones_RestoreSize.Content" xml:space="preserve">
<value>Restore the original size of windows when unsnapping</value>
</data>
@@ -1170,6 +1166,9 @@ Made with 💗 by Microsoft and the PowerToys community.</value>
<data name="Activation_Shortcut.Header" xml:space="preserve">
<value>Activation shortcut</value>
</data>
<data name="Activation_Shortcut.Description" xml:space="preserve">
<value>Customize the keyboard shortcut to activate this module</value>
</data>
<data name="Oobe_GetStarted.Text" xml:space="preserve">
<value>Let's get started!</value>
</data>
@@ -1230,19 +1229,22 @@ Take a moment to preview the various utilities listed or view our comprehensive
<value>Release notes</value>
</data>
<data name="Oobe_ColorPicker_HowToUse.Text" xml:space="preserve">
<value>{Win} + {Shift} + {C} to open Color Picker.</value>
<value>to open Color Picker.</value>
</data>
<data name="Oobe_ColorPicker_TipsAndTricks.Text" xml:space="preserve">
<value>To select a color with more precision, {scroll the mouse wheel} to zoom in.</value>
<value>To select a color with more precision, **scroll the mouse wheel** to zoom in.</value>
</data>
<data name="Oobe_FancyZones_HowToUse.Text" xml:space="preserve">
<value>{Shift} + {dragging the window} to snap a window to a zone, and release the window in the desired zone. {Win} + {Shift} + {`} to open the FancyZones editor.</value>
<value>**Shift** + **drag the window** to snap a window to a zone, and release the window in the desired zone.</value>
</data>
<data name="Oobe_FancyZones_HowToUse_Shortcut.Text" xml:space="preserve">
<value>to open the FancyZones editor.</value>
</data>
<data name="Oobe_FancyZones_TipsAndTricks.Text" xml:space="preserve">
<value>Snap a window to multiple zones by holding the {Ctrl} key (while also holding {Shift}) when dragging a window.</value>
<value>Snap a window to multiple zones by holding the **Ctrl** key (while also holding **Shift**) when dragging a window.</value>
</data>
<data name="Oobe_FileExplorer_HowToEnable.Text" xml:space="preserve">
<value>Open File Explorer, {select the View tab} in the File Explorer ribbon, then {select Preview Pane}.
<value>Open File Explorer, **select the View tab** in the File Explorer ribbon, then **select Preview Pane**.
From there, simply click on a Markdown file or SVG icon in the File Explorer and observe the content on the preview pane!</value>
</data>
<data name="Oobe_HowToCreateMappings.Text" xml:space="preserve">
@@ -1258,39 +1260,43 @@ From there, simply click on a Markdown file or SVG icon in the File Explorer and
<value>How to use</value>
</data>
<data name="Oobe_ImageResizer_HowToLaunch.Text" xml:space="preserve">
<value>In File Explorer, {right-clicking one or more image files} and {clicking on Resize pictures} from the context menu.</value>
<value>In File Explorer, **right-clicking one or more image files** and **clicking on Resize pictures** from the context menu.</value>
</data>
<data name="Oobe_ImageResizer_TipsAndTricks.Text" xml:space="preserve">
<value>Want a custom size? You can add them in the PowerToys Settings!</value>
</data>
<data name="Oobe_KBM_HowToCreateMappings.Text" xml:space="preserve">
<value>Launch {PowerToys settings}, navigate to the Keyboard Manager menu, and select either {Remap a key} or {Remap a shortcut}.</value>
<value>Launch **PowerToys settings**, navigate to the Keyboard Manager menu, and select either **Remap a key** or **Remap a shortcut**.</value>
</data>
<data name="Oobe_KBM_TipsAndTricks.Text" xml:space="preserve">
<value>Want to only have a shortcut work for a single application? Use the Target App field when creating the shortcut remapping.</value>
</data>
<data name="Oobe_PowerRename_HowToUse.Text" xml:space="preserve">
<value>In File Explorer, {right-clicking one or more selected files} and {clicking on PowerRename} from the context menu.</value>
<value>In File Explorer, **right-clicking one or more selected files** and **clicking on PowerRename** from the context menu.</value>
</data>
<data name="Oobe_PowerRename_TipsAndTricks.Text" xml:space="preserve">
<value>PowerRename supports searching for files using regular expressions to enable more advanced renaming functionalities.</value>
</data>
<data name="Oobe_Run_HowToLaunch.Text" xml:space="preserve">
<value>{Alt} + {Space} to open Run and just start typing.</value>
<value>to open Run and just start typing.</value>
</data>
<data name="Oobe_Run_TipsAndTricks.Text" xml:space="preserve">
<value>PowerToys Run supports various action keys to funnel search queries for a specific subset of results. Typing {&lt;} searches for running processes only, {?} will search only for file, or {.} for installed applications! See PowerToys documentation for the complete set of 'Action Keys' available.</value>
<value>PowerToys Run supports various action keys to funnel search queries for a specific subset of results. Typing **&lt;** searches for running processes only, **?** will search only for file, or **.** for installed applications! See PowerToys documentation for the complete set of 'Action Keys' available.</value>
</data>
<data name="Oobe_ShortcutGuide_HowToLaunch.Text" xml:space="preserve">
<value>{Win} + {?} to open Shortcut Guide, press it again to close or press {Esc}. You can also launch it by holding the {Win} key for one second!</value>
<value>to open Shortcut Guide, press it again to close or press **Esc**.</value>
</data>
<data name="Oobe_TipsAndTricks.Text" xml:space="preserve">
<value>Tips &amp; tricks</value>
</data>
<data name="Oobe_VideoConference_HowToLaunch.Text" xml:space="preserve">
<value>{Win} + {N} to toggle both your microphone and video
{Win} + {Shift} + {A} to toggle your microphone
{Win} + {Shift} + {O} to toggle your video</value>
<data name="Oobe_VideoConference_ToggleMicVid.Text" xml:space="preserve">
<value>to toggle both your microphone and video</value>
</data>
<data name="Oobe_VideoConference_ToggleMic.Text" xml:space="preserve">
<value>to toggle your microphone</value>
</data>
<data name="Oobe_VideoConference_ToggleVid.Text" xml:space="preserve">
<value>to toggle your video</value>
</data>
<data name="Oobe_ColorPicker" xml:space="preserve">
<value>Color Picker</value>
@@ -1574,6 +1580,24 @@ From there, simply click on a Markdown file or SVG icon in the File Explorer and
<data name="RemoveTooltip.Text" xml:space="preserve">
<value>Remove</value>
</data>
<data name="Activation_Shortcut_Cancel" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="Activation_Shortcut_Description.Text" xml:space="preserve">
<value>Press a combination of keys to change this shortcut</value>
</data>
<data name="Activation_Shortcut_Save" xml:space="preserve">
<value>Save</value>
</data>
<data name="Activation_Shortcut_Title" xml:space="preserve">
<value>Activation shortcut</value>
</data>
<data name="InvalidShortcut.Text" xml:space="preserve">
<value>Invalid shortcut</value>
</data>
<data name="InvalidShortcutWarningLabel.Text" xml:space="preserve">
<value>Only shortcuts that start with **Windows key**, **Ctrl**, **Alt** or **Shift** are valid.</value>
</data>
<data name="FancyZones_SpanZonesAcrossMonitorsPrerequisites.Text" xml:space="preserve">
<value>All monitors must have the same DPI scaling and will be treated as one large combined rectangle which contains all monitors.</value>
</data>