diff --git a/.github/actions/spell-check/expect.txt b/.github/actions/spell-check/expect.txt index b0ea1c48ac..265cdd89ec 100644 --- a/.github/actions/spell-check/expect.txt +++ b/.github/actions/spell-check/expect.txt @@ -2095,6 +2095,7 @@ todo toggleswitch toolbar Toolchain +toolkitconverters toolset toolstrip tooltip diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Converters/ImageResizerFitToStringConverter.cs b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Converters/ImageResizerFitToStringConverter.cs new file mode 100644 index 0000000000..736ac8aa6d --- /dev/null +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Converters/ImageResizerFitToStringConverter.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation +// The Microsoft Corporation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; +using System.Globalization; +using System.Text; +using Windows.ApplicationModel.Resources; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Media; + +namespace Microsoft.PowerToys.Settings.UI.Converters +{ + public sealed class ImageResizerFitToStringConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, string language) + { + var toLower = false; + if ((string)parameter == "ToLower") + { + toLower = true; + } + + string targetValue = string.Empty; + switch (value) + { + case 0: targetValue = ResourceLoader.GetForCurrentView().GetString("ImageResizer_Fit_Fill_ThirdPersonSingular"); break; + case 1: targetValue = ResourceLoader.GetForCurrentView().GetString("ImageResizer_Fit_Fit_ThirdPersonSingular"); break; + case 2: targetValue = ResourceLoader.GetForCurrentView().GetString("ImageResizer_Fit_Stretch_ThirdPersonSingular"); break; + } + + if (toLower) + { + targetValue = targetValue.ToLower(CultureInfo.CurrentCulture); + } + + return targetValue; + } + + public object ConvertBack(object value, Type targetType, object parameter, string language) + { + return value; + } + } +} diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Converters/ImageResizerUnitToStringConverter.cs b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Converters/ImageResizerUnitToStringConverter.cs new file mode 100644 index 0000000000..b0b60715d0 --- /dev/null +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Converters/ImageResizerUnitToStringConverter.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation +// The Microsoft Corporation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; +using System.Globalization; +using Windows.ApplicationModel.Resources; +using Windows.UI.Xaml.Data; + +namespace Microsoft.PowerToys.Settings.UI.Converters +{ + public sealed class ImageResizerUnitToStringConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, string language) + { + var toLower = false; + if ((string)parameter == "ToLower") + { + toLower = true; + } + + string targetValue = string.Empty; + switch (value) + { + case 0: targetValue = ResourceLoader.GetForCurrentView().GetString("ImageResizer_Unit_Centimeter"); break; + case 1: targetValue = ResourceLoader.GetForCurrentView().GetString("ImageResizer_Unit_Inch"); break; + case 2: targetValue = ResourceLoader.GetForCurrentView().GetString("ImageResizer_Unit_Percent"); break; + case 3: targetValue = ResourceLoader.GetForCurrentView().GetString("ImageResizer_Unit_Pixel"); break; + } + + if (toLower) + { + targetValue = targetValue.ToLower(CultureInfo.CurrentCulture); + } + + return targetValue; + } + + public object ConvertBack(object value, Type targetType, object parameter, string language) + { + return value; + } + } +} diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj index 3f281237b5..4c947cc923 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj @@ -110,6 +110,8 @@ + + diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw index b7d198e9a4..cbf53ddc88 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw @@ -1,1347 +1,1386 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Video Conference Mute - Navigation view item name for Video Conference - - - Enable Video Conference - - - Video Conference Mute is a quick and easy way to do an global "mute" of both your microphone and webcam. -Disabling this module or closing PowerToys will unmute the microphone and camera. - - - Mute camera and microphone - - - Mute microphone - - - Mute camera - - - Selected camera - - - Selected microphone - - - Camera overlay image - - - Toolbar position - - - Top center - - - Top left corner - - - Top right corner - - - Bottom left corner - - - Bottom center - - - Bottom right corner - - - Show toolbar on - - - Main monitor - - - Monitor under cursor - - - Active window monitor - - - All monitors - - - Hide toolbar when both camera and microphone are unmuted - - - About Video Conference - - - Camera - - - Microphone - - - Toolbar - - - Shortcuts - - - Camera overlay image preview - - - Browse - - - Clear - - - General - Navigation view item name for General - - - Awake - Product name: Navigation view item name for Awake - - - PowerToys Run - Product name: Navigation view item name for PowerToys Run - - - PowerRename - Product name: Navigation view item name for PowerRename - - - Shortcut Guide - Product name: Navigation view item name for Shortcut Guide - - - File Explorer add-ons - Product name: Navigation view item name for File Explorer. Please use File Explorer as in the context of File Explorer in Windows - - - FancyZones - Product name: Navigation view item name for FancyZones - - - Image Resizer - Product name: Navigation view item name for Image Resizer - - - Color Picker - Product name: Navigation view item name for Color Picker - - - Keyboard Manager - Product name: Navigation view item name for Keyboard Manager - - - Current configuration - Keyboard Manager current configuration header - - - Reconfigure your keyboard by remapping keys and shortcuts. - Keyboard Manager page description - - - Enable Keyboard Manager - - Keyboard Manager enable toggle header - do not loc the Product name. Do you want this feature on / off - - - - Select the profile to display the active key remap and shortcuts - Keyboard Manager configuration dropdown description - - - Remap a key - Keyboard Manager remap keyboard button content - - - Remap keys - Keyboard Manager remap keyboard header - - - Remap a shortcut - Keyboard Manager remap shortcuts button - - - Remap shortcuts - Keyboard Manager remap shortcuts header - - - Current Key Remappings - - - Current Shortcut Remappings - - - Key Remapping - key as in keyboard key - - - Shortcut Remapping - - - Remapped to - - - Remapped to - - - For Target Application - What computer application would this be for - - - Keyboard Manager - do not loc, product name - - - Quick and simple system-wide color picker. - - - Enable Color Picker - do not loc the Product name. Do you want this feature on / off - - - Change cursor when picking a color - - - Activate Color Picker - do not loc product name - - - A quick launcher that has additional capabilities without sacrificing performance. - - - Enable PowerToys Run - do not loc the Product name. Do you want this feature on / off - - - Search & results - - - Search result preference - - - Most recently used - - - Alphabetical order - - - Running processes/open applications - - - Search type preference - - - Application name - - - A string that is contained in the application - - - Executable name - - - Maximum number of results - - - Shortcuts - - - Open PowerToys Run - - - Open file location - - - Copy path location - - - Open console - console refers to Windows command prompt - - - Override Win+R shortcut - - - Override Win+S shortcut - - - Ignore shortcuts in fullscreen mode - - - Clear the previous query on launch - - - To: - Keyboard Manager mapping keys view right header - - - Appearance - - - FancyZones windows - do not loc the Product name - - - Create window layouts to help make multi-tasking easy. - windows refers to application windows - - - Keep windows in their zones when the screen resolution changes - windows refers to application windows - - - Enable FancyZones - do not loc the Product name. Do you want this feature on / off - - - Excluded apps - - - To exclude an application from snapping to zones add its name here (one per line). These apps will react only to Windows Snap. - - - Zone opacity - - - Open layout editor - Shortcut to launch the FancyZones layout editor application - - - Shortcut setting - - - Information Symbol - - - Launch layout editor - launches the FancyZones layout editor application - - - Make dragged window transparent - - - Use a non-primary mouse button to toggle zone activation - - - Move windows between zones across all monitors - - - Override Windows Snap shortcut (Win + Arrow) to move windows between zones - - - Hold Shift key to activate zones while dragging - - - Show zones on all monitors while dragging a window - - - Move newly created windows to their last known zone - windows refers to application windows - - - Move newly created windows to the current active monitor (EXPERIMENTAL) - - - Follow mouse cursor instead of focus when launching editor in a multi screen environment - - - Zone behavior - - - Zone highlight color - - - During zone layout changes, windows assigned to a zone will match new size/positions - - - Give feedback - - - Learn more - This label is there to point people to additional overview for how to use the product - - - Attribution - giving credit to the projects this utility was based on - - - About PowerToys - - - Check for updates - - - Update now - - - Privacy statement - - - Report a bug - Report an issue inside powertoys - - - Request a feature - Tell our team what we should build - - - Restart as administrator - running PowerToys as a higher level user, account is typically referred to as an admin / administrator - - - Run at startup - - - A Windows Shell extension for more advanced bulk renaming using search and replace or regular expressions. - - - Shell integration - This refers to directly integrating in with Windows - - - Enable PowerRename - do not loc the Product name. Do you want this feature on / off - - - Settings theme - - - Show icon on context menu - - - Appear only in extended context menu (Shift + Right-click) - - - Maximum number of items - - - Show values from last use - - - Enable Markdown (.md) preview - Do not loc "Markdown". Do you want this feature on / off - - - Enable SVG (.svg) preview - Do you want this feature on / off - - - Enable SVG (.svg) thumbnails - Do you want this feature on / off - - - These settings allow you to manage your Windows File Explorer custom preview handlers. - - - Autocomplete - - - Open-source notice - - - Enable autocomplete for the search and replace fields - - - Zone border color - - - Zone inactive color - - - Shows a help overlay with Windows shortcuts when the Windows key is pressed. - - - Press duration before showing (ms) - pressing a key in milliseconds - - - Appearance & behavior - - - Enable Shortcut Guide - do not loc the Product name. Do you want this feature on / off - - - Opacity of background - - - Disable for apps - - - Turn off Shortcut Guide when these applications have focus. Add one application name per line. - - - Example: outlook.exe - Don't translate outlook.exe - - - Image sizes - - - Lets you resize images by right-clicking. - - - Enable Image Resizer - do not loc the Product name. Do you want this feature on / off - - - Image Size - - - Configurations - - - Configuration Name - - - Fit Property - - - Width Property - - - Height Property - - - Size Property - - - Times Symbol - - - Remove - Removes a user defined setting group for Image Resizer - - - Remove - Removes a user defined setting group for Image Resizer - - - Image Resizer - - - Add size - - - Save sizes - - - JPEG quality level - - - PNG interlacing - - - TIFF compression - - - File - as in a computer file - - - Default - - - CCITT3 - do not loc - - - CCITT4 - do not loc - - - Default - - - LZW - do not loc - - - None - - - RLE - do not loc - - - Zip - do not loc - - - BMP encoder - - - GIF encoder - - - JPEG encoder - - - PNG encoder - - - TIFF encoder - - - WMPhoto encoder - - - Fill - Refers to filling an image into a certain size. It could overflow - - - Fit - Refers to fitting an image into a certain size. It won't overflow - - - Stretch - Refers to stretching an image into a certain size. Won't overflow but could distort. - - - Centimeters - - - Inches - - - Percent - - - Pixels - - - Off - - - On - - - Learn more about administrator mode - - - Download updates automatically (Except on metered connections) - - - Currently running as administrator - - - Always run as administrator - - - Running as user - - - Running as administrator - - - About FancyZones - - - About File Explorer - - - File Explorer - Use same translation as Windows does for File Explorer - - - About Image Resizer - - - About Keyboard Manager - - - About Color Picker - - - About PowerToys Run - - - PowerToys Run - - - About PowerRename - do not loc the product name - - - PowerRename - do not loc - - - About Shortcut Guide - - - Shortcut Guide - - - GitHub repository - - - Updates - - - Installed version: - - - Last checked: - - - Version - - - Administrator mode - - - * You need to run as administrator to use this setting. - - - Only shortcuts with the following hotkeys are valid: - keyboard shortcuts and - - - Restore the original size of windows when unsnapping - - - Fallback encoder - - - The following parameters can be used: - - - Filename format - - - Use original date modified - - - Encoding - - - Remap keys to other keys or shortcuts. - - - Remap shortcuts to other shortcuts or keys. Additionally, mappings can be targeted to specific applications as well. - - - Microsoft PowerToys is a set of utilities for power users to tune and streamline their Windows experience for greater productivity. - -Made with 💗 by Microsoft and the PowerToys community. - Windows refers to the OS - - - Allow zones to span across monitors (all monitors must have the same DPI scaling) - - - Actual height - - - Actual width - - - Original filename - - - Selected height - - - Selected width - - - Size name - - - Move windows based on their position - Windows refers to application windows - - - New update available - - - PowerToys is up to date. - - - Icon Preview - - - Preview Pane - - - * You need to run as administrator to modify these settings. - - - The settings on this page affect all users on the system - - - A reboot may be required for changes to these settings to take effect - - - Example: outlook.exe - Don't translate outlook.exe - - - Example: %1 (%2) - - - Choose a mode - - - Dark - Dark refers to color, not weight - - - Light - Light refers to color, not weight - - - Windows default - Windows refers to the Operating system - - - Windows color settings - Windows refers to the Operating system - - - Color format for clipboard - - - Color Picker with editor mode enabled - do not loc the product name - - - Pick a color from the screen, copy formatted value to clipboard, then to the editor - do not loc the product name - - - Editor - - - Activation behavior - - - Picker behavior - - - Learn more about remapping limitations - This is a link that will discuss what is and is not possible for Keyboard manager to remap - - - Editor - refers to the FancyZone editor - - - Window behavior - - - Behavior - - - Use Boost library (provides extended features but may use different regex syntax) - Boost is a product name, should not be translated - - - Made with 💗 by Microsoft and the PowerToys community. - - - Color Picker only - do not loc the product name - - - Pick a color from the screen and copy formatted value to clipboard - - - Open directly into the editor mode - - - Editor color formats - - - Show color name - - - Large - The size of the image - - - Medium - The size of the image - - - Phone - The size of the image referring to a Mobile Phone typical image size - - - Small - The size of the image - - - Win + Up/Down/Left/Right to move windows based on relative position - - - Win + Left/Right to move windows based on zone index - - - Editor - - - Activate the zone whose center is closest to the cursor - - - Activate the largest zone by area - - - Split the overlapped area into multiple activation targets - - - Activate the smallest zone by area - - - When multiple zones overlap: - - - Plugins - - - Direct activation phrase - - - Authored by - example: Authored by Microsoft - - - Include in global result - - - Enable plugin - - - Additional options - - - * Please define an activation phrase or allow this plugin for the global results to use it. - - - * PowerToys Run can't provide any results without plugins. Please enable at least one plugin. - - - * This activation phrase overrides the behavior of other plugins. Please change it to something else. - - - You can include or remove each plugin from the global results, change the direct activation phrase and configure additional options. - - - Position & appearance - - - Show PowerToys Run on - as in Show PowerToys Run on primary monitor - - - Monitor with mouse cursor - - - Monitor with focused window - - - Primary monitor - - - Plugins are loading... - - - Move the color down - - - Move the color up - - - Flash zones when switching layout - - - Enable quick layout switch - - - Quick layout switch - - - Open Shortcut Guide - - - Let's get started! - - - Welcome to PowerToys! These overviews will help you quickly learn the basics of all our utilities. - - - Getting started - - - Launch - - - Learn more about - - - Color Picker is a system-wide color selection tool for Windows 10 that enables you to pick colors from any currently running application and automatically copies it in a configurable format to your clipboard. - - - FancyZones is a window manager that makes it easy to create complex window layouts and quickly position windows into those layouts. - - - PowerToys introduces add-ons to the Window’s File Explorer that will currently enable Markdown files (.md) and SVG icons (.svg) to be viewed in the preview pane. - - - Image Resizer is a Windows shell extension for simple bulk image-resizing. - - - Keyboard Manager allows you to customize the keyboard to be more productive by remapping keys and creating your own keyboard shortcuts. - - - PowerRename enables you to perform simple bulk renaming, searching and replacing file names. - - - PowerToys Run is a quick launcher for power users that contains some additional features without sacrificing performance. - - - Shortcut Guide presents the user with a listing of available shortcuts for the current state of the desktop. - - - Video Conference Mute allows users to quickly mute the microphone and turn off the camera while on a conference call with a single keystroke, regardless of what application has focus on your computer. - - - For returning users, check out what is new in our - - - Microsoft PowerToys is a set of utilities for power users to tune and streamline their Windows 10 experience for greater productivity. -Take a moment to preview the various utilities listed or view our comprehensive documentation on - - - Microsoft Docs - - - release notes - - - {Win} + {Shift} + {C} to open Color Picker. - - - To select a color with more precision, {scroll the mouse wheel} to zoom in. - - - {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. - - - Snap a window to multiple zones by holding the {Ctrl} key (while also holding {Shift}) when dragging a window. - - - 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! - - - How to create mappings - - - How to enable - - - How to launch - - - How to use - - - In File Explorer, {right-clicking one or more image files} and {clicking on Resize pictures} from the context menu. - - - Want a custom size? You can add them in the PowerToys Settings! - - - Launch {PowerToys settings}, navigate to the Keyboard Manager menu, and select either {Remap a key} or {Remap a shortcut}. - - - Want to only have a shortcut work for a single application? Use the Target App field when creating the shortcut remapping. - - - In File Explorer, {right-clicking one or more selected files} and {clicking on PowerRename} from the context menu. - - - PowerRename supports searching for files using regular expressions to enable more advanced renaming functionalities. - - - {Alt} + {Space} to open Run and just start typing. - - - PowerToys Run supports various action keys to funnel search queries for a specific subset of results. Typing {<} 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. - - - {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! - - - Tips & tricks - - - {Win} + {N} to toggle both your microphone and video -{Win} + {Shift} + {A} to toggle your microphone -{Win} + {Shift} + {O} to toggle your video - - - Color Picker - Do not localize this string - - - FancyZones - Do not localize this string - - - File Explorer add-ons - Do not localize this string - - - Image Resizer - Do not localize this string - - - Keyboard Manager - Do not localize this string - - - Overview - - - PowerRename - Do not localize this string - - - PowerToys Run - Do not localize this string - - - Shortcut Guide - Do not localize this string - - - Video Conference - Do not localize this string - - - Welcome - - - Settings - - - Welcome to PowerToys - - - Welcome to PowerToys - - - PowerToys Settings - - - About Awake - - - A convenient way to keep your PC awake on-demand. - - - Enable Awake - - - Off (Passive) - - - Keep awake indefinitely - - - Keep awake temporarily - - - Your PC operates according to its current power plan - - - Keeps your PC awake until the setting is disabled - - - Keeps your PC awake until the set time elapses - - - Keep screen on - - - Mode - - - Behavior - - - Hours - - - Minutes - - - Awake - Module name, do not loc - - - Awake is a Windows tool designed to keep your PC awake on-demand without having to manage its power settings. This behavior can be helpful when running time-consuming tasks while ensuring that your PC does not go to sleep or turn off its screens. - - - Open {PowerToys Settings} and enable Awake - - - You can always change modes quickly by {right-clicking the Awake icon} in the system tray. - - - * An error occurred trying to update to - - - Install now - - - Read more - - - A new version is available: - - - Downloading... - - - Try again to download and install - - - Checking for updates... - - - A new version is ready to install: - - - PowerToys is up to date - - - Download and install - - - Learn more - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Video Conference Mute + Navigation view item name for Video Conference + + + Enable Video Conference + + + Video Conference Mute is a quick and easy way to do an global "mute" of both your microphone and webcam. +Disabling this module or closing PowerToys will unmute the microphone and camera. + + + Mute camera and microphone + + + Mute microphone + + + Mute camera + + + Selected camera + + + Selected microphone + + + Camera overlay image + + + Toolbar position + + + Top center + + + Top left corner + + + Top right corner + + + Bottom left corner + + + Bottom center + + + Bottom right corner + + + Show toolbar on + + + Main monitor + + + Monitor under cursor + + + Active window monitor + + + All monitors + + + Hide toolbar when both camera and microphone are unmuted + + + About Video Conference + + + Camera + + + Microphone + + + Toolbar + + + Shortcuts + + + Camera overlay image preview + + + Browse + + + Clear + + + General + Navigation view item name for General + + + Awake + Product name: Navigation view item name for Awake + + + PowerToys Run + Product name: Navigation view item name for PowerToys Run + + + PowerRename + Product name: Navigation view item name for PowerRename + + + Shortcut Guide + Product name: Navigation view item name for Shortcut Guide + + + File Explorer add-ons + Product name: Navigation view item name for File Explorer. Please use File Explorer as in the context of File Explorer in Windows + + + FancyZones + Product name: Navigation view item name for FancyZones + + + Image Resizer + Product name: Navigation view item name for Image Resizer + + + Color Picker + Product name: Navigation view item name for Color Picker + + + Keyboard Manager + Product name: Navigation view item name for Keyboard Manager + + + Current configuration + Keyboard Manager current configuration header + + + Reconfigure your keyboard by remapping keys and shortcuts. + Keyboard Manager page description + + + Enable Keyboard Manager + + Keyboard Manager enable toggle header + do not loc the Product name. Do you want this feature on / off + + + + Select the profile to display the active key remap and shortcuts + Keyboard Manager configuration dropdown description + + + Remap a key + Keyboard Manager remap keyboard button content + + + Remap keys + Keyboard Manager remap keyboard header + + + Remap a shortcut + Keyboard Manager remap shortcuts button + + + Remap shortcuts + Keyboard Manager remap shortcuts header + + + Current Key Remappings + + + Current Shortcut Remappings + + + Key Remapping + key as in keyboard key + + + Shortcut Remapping + + + Remapped to + + + Remapped to + + + For Target Application + What computer application would this be for + + + Keyboard Manager + do not loc, product name + + + Quick and simple system-wide color picker. + + + Enable Color Picker + do not loc the Product name. Do you want this feature on / off + + + Change cursor when picking a color + + + Activate Color Picker + do not loc product name + + + A quick launcher that has additional capabilities without sacrificing performance. + + + Enable PowerToys Run + do not loc the Product name. Do you want this feature on / off + + + Search & results + + + Search result preference + + + Most recently used + + + Alphabetical order + + + Running processes/open applications + + + Search type preference + + + Application name + + + A string that is contained in the application + + + Executable name + + + Maximum number of results + + + Shortcuts + + + Open PowerToys Run + + + Open file location + + + Copy path location + + + Open console + console refers to Windows command prompt + + + Override Win+R shortcut + + + Override Win+S shortcut + + + Ignore shortcuts in fullscreen mode + + + Clear the previous query on launch + + + To: + Keyboard Manager mapping keys view right header + + + Appearance + + + FancyZones windows + do not loc the Product name + + + Create window layouts to help make multi-tasking easy. + windows refers to application windows + + + Keep windows in their zones when the screen resolution changes + windows refers to application windows + + + Enable FancyZones + do not loc the Product name. Do you want this feature on / off + + + Excluded apps + + + To exclude an application from snapping to zones add its name here (one per line). These apps will react only to Windows Snap. + + + Zone opacity + + + Open layout editor + Shortcut to launch the FancyZones layout editor application + + + Shortcut setting + + + Information Symbol + + + Launch layout editor + launches the FancyZones layout editor application + + + Make dragged window transparent + + + Use a non-primary mouse button to toggle zone activation + + + Move windows between zones across all monitors + + + Override Windows Snap shortcut (Win + Arrow) to move windows between zones + + + Hold Shift key to activate zones while dragging + + + Show zones on all monitors while dragging a window + + + Move newly created windows to their last known zone + windows refers to application windows + + + Move newly created windows to the current active monitor (EXPERIMENTAL) + + + Follow mouse cursor instead of focus when launching editor in a multi screen environment + + + Zone behavior + + + Zone highlight color + + + During zone layout changes, windows assigned to a zone will match new size/positions + + + Give feedback + + + Learn more + This label is there to point people to additional overview for how to use the product + + + Attribution + giving credit to the projects this utility was based on + + + About PowerToys + + + Check for updates + + + Update now + + + Privacy statement + + + Report a bug + Report an issue inside powertoys + + + Request a feature + Tell our team what we should build + + + Restart as administrator + running PowerToys as a higher level user, account is typically referred to as an admin / administrator + + + Run at startup + + + A Windows Shell extension for more advanced bulk renaming using search and replace or regular expressions. + + + Shell integration + This refers to directly integrating in with Windows + + + Enable PowerRename + do not loc the Product name. Do you want this feature on / off + + + Settings theme + + + Show icon on context menu + + + Appear only in extended context menu (Shift + Right-click) + + + Maximum number of items + + + Show values from last use + + + Enable Markdown (.md) preview + Do not loc "Markdown". Do you want this feature on / off + + + Enable SVG (.svg) preview + Do you want this feature on / off + + + Enable SVG (.svg) thumbnails + Do you want this feature on / off + + + These settings allow you to manage your Windows File Explorer custom preview handlers. + + + Autocomplete + + + Open-source notice + + + Enable autocomplete for the search and replace fields + + + Zone border color + + + Zone inactive color + + + Shows a help overlay with Windows shortcuts when the Windows key is pressed. + + + Press duration before showing (ms) + pressing a key in milliseconds + + + Appearance & behavior + + + Enable Shortcut Guide + do not loc the Product name. Do you want this feature on / off + + + Opacity of background + + + Disable for apps + + + Turn off Shortcut Guide when these applications have focus. Add one application name per line. + + + Example: outlook.exe + Don't translate outlook.exe + + + Image sizes + + + Lets you resize images by right-clicking. + + + Enable Image Resizer + do not loc the Product name. Do you want this feature on / off + + + Image Size + + + Configurations + + + Name + + + Fit + + + Width + + + Height + + + Unit + + + Remove + Removes a user defined setting group for Image Resizer + + + Remove + Removes a user defined setting group for Image Resizer + + + Image Resizer + + + Add size + + + Save sizes + + + JPEG quality level + + + PNG interlacing + + + TIFF compression + + + File + as in a computer file + + + Default + + + CCITT3 + do not loc + + + CCITT4 + do not loc + + + Default + + + LZW + do not loc + + + None + + + RLE + do not loc + + + Zip + do not loc + + + BMP encoder + + + GIF encoder + + + JPEG encoder + + + PNG encoder + + + TIFF encoder + + + WMPhoto encoder + + + Fill + Refers to filling an image into a certain size. It could overflow + + + Fill + Refers to filling an image into a certain size. It could overflow + + + Fit + Refers to fitting an image into a certain size. It won't overflow + + + Stretch + Refers to stretching an image into a certain size. Won't overflow but could distort. + + + Centimeters + + + Inches + + + Percent + + + Pixels + + + Off + + + On + + + Learn more about administrator mode + + + Download updates automatically (Except on metered connections) + + + Currently running as administrator + + + Always run as administrator + + + Running as user + + + Running as administrator + + + About FancyZones + + + About File Explorer + + + File Explorer + Use same translation as Windows does for File Explorer + + + About Image Resizer + + + About Keyboard Manager + + + About Color Picker + + + About PowerToys Run + + + PowerToys Run + + + About PowerRename + do not loc the product name + + + PowerRename + do not loc + + + About Shortcut Guide + + + Shortcut Guide + + + GitHub repository + + + Updates + + + Installed version: + + + Last checked: + + + Version + + + Administrator mode + + + * You need to run as administrator to use this setting. + + + Only shortcuts with the following hotkeys are valid: + keyboard shortcuts and + + + Restore the original size of windows when unsnapping + + + Fallback encoder + + + The following parameters can be used: + + + Filename format + + + Use original date modified + + + Encoding + + + Remap keys to other keys or shortcuts. + + + Remap shortcuts to other shortcuts or keys. Additionally, mappings can be targeted to specific applications as well. + + + Microsoft PowerToys is a set of utilities for power users to tune and streamline their Windows experience for greater productivity. + +Made with 💗 by Microsoft and the PowerToys community. + Windows refers to the OS + + + Allow zones to span across monitors (all monitors must have the same DPI scaling) + + + Actual height + + + Actual width + + + Original filename + + + Selected height + + + Selected width + + + Size name + + + Move windows based on their position + Windows refers to application windows + + + New update available + + + PowerToys is up to date. + + + Icon Preview + + + Preview Pane + + + * You need to run as administrator to modify these settings. + + + The settings on this page affect all users on the system + + + A reboot may be required for changes to these settings to take effect + + + Example: outlook.exe + Don't translate outlook.exe + + + Example: %1 (%2) + + + Choose a mode + + + Dark + Dark refers to color, not weight + + + Light + Light refers to color, not weight + + + Windows default + Windows refers to the Operating system + + + Windows color settings + Windows refers to the Operating system + + + Color format for clipboard + + + Color Picker with editor mode enabled + do not loc the product name + + + Pick a color from the screen, copy formatted value to clipboard, then to the editor + do not loc the product name + + + Editor + + + Activation behavior + + + Picker behavior + + + Learn more about remapping limitations + This is a link that will discuss what is and is not possible for Keyboard manager to remap + + + Editor + refers to the FancyZone editor + + + Window behavior + + + Behavior + + + Use Boost library (provides extended features but may use different regex syntax) + Boost is a product name, should not be translated + + + Made with 💗 by Microsoft and the PowerToys community. + + + Color Picker only + do not loc the product name + + + Pick a color from the screen and copy formatted value to clipboard + + + Open directly into the editor mode + + + Editor color formats + + + Show color name + + + Large + The size of the image + + + Medium + The size of the image + + + Phone + The size of the image referring to a Mobile Phone typical image size + + + Small + The size of the image + + + Win + Up/Down/Left/Right to move windows based on relative position + + + Win + Left/Right to move windows based on zone index + + + Editor + + + Activate the zone whose center is closest to the cursor + + + Activate the largest zone by area + + + Split the overlapped area into multiple activation targets + + + Activate the smallest zone by area + + + When multiple zones overlap: + + + Plugins + + + Direct activation phrase + + + Authored by + example: Authored by Microsoft + + + Include in global result + + + Enable plugin + + + Additional options + + + * Please define an activation phrase or allow this plugin for the global results to use it. + + + * PowerToys Run can't provide any results without plugins. Please enable at least one plugin. + + + * This activation phrase overrides the behavior of other plugins. Please change it to something else. + + + You can include or remove each plugin from the global results, change the direct activation phrase and configure additional options. + + + Position & appearance + + + Show PowerToys Run on + as in Show PowerToys Run on primary monitor + + + Monitor with mouse cursor + + + Monitor with focused window + + + Primary monitor + + + Plugins are loading... + + + Move the color down + + + Move the color up + + + Flash zones when switching layout + + + Enable quick layout switch + + + Quick layout switch + + + Open Shortcut Guide + + + Let's get started! + + + Welcome to PowerToys! These overviews will help you quickly learn the basics of all our utilities. + + + Getting started + + + Launch + + + Learn more about + + + Color Picker is a system-wide color selection tool for Windows 10 that enables you to pick colors from any currently running application and automatically copies it in a configurable format to your clipboard. + + + FancyZones is a window manager that makes it easy to create complex window layouts and quickly position windows into those layouts. + + + PowerToys introduces add-ons to the Window’s File Explorer that will currently enable Markdown files (.md) and SVG icons (.svg) to be viewed in the preview pane. + + + Image Resizer is a Windows shell extension for simple bulk image-resizing. + + + Keyboard Manager allows you to customize the keyboard to be more productive by remapping keys and creating your own keyboard shortcuts. + + + PowerRename enables you to perform simple bulk renaming, searching and replacing file names. + + + PowerToys Run is a quick launcher for power users that contains some additional features without sacrificing performance. + + + Shortcut Guide presents the user with a listing of available shortcuts for the current state of the desktop. + + + Video Conference Mute allows users to quickly mute the microphone and turn off the camera while on a conference call with a single keystroke, regardless of what application has focus on your computer. + + + For returning users, check out what is new in our + + + Microsoft PowerToys is a set of utilities for power users to tune and streamline their Windows 10 experience for greater productivity. +Take a moment to preview the various utilities listed or view our comprehensive documentation on + + + Microsoft Docs + + + release notes + + + {Win} + {Shift} + {C} to open Color Picker. + + + To select a color with more precision, {scroll the mouse wheel} to zoom in. + + + {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. + + + Snap a window to multiple zones by holding the {Ctrl} key (while also holding {Shift}) when dragging a window. + + + 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! + + + How to create mappings + + + How to enable + + + How to launch + + + How to use + + + In File Explorer, {right-clicking one or more image files} and {clicking on Resize pictures} from the context menu. + + + Want a custom size? You can add them in the PowerToys Settings! + + + Launch {PowerToys settings}, navigate to the Keyboard Manager menu, and select either {Remap a key} or {Remap a shortcut}. + + + Want to only have a shortcut work for a single application? Use the Target App field when creating the shortcut remapping. + + + In File Explorer, {right-clicking one or more selected files} and {clicking on PowerRename} from the context menu. + + + PowerRename supports searching for files using regular expressions to enable more advanced renaming functionalities. + + + {Alt} + {Space} to open Run and just start typing. + + + PowerToys Run supports various action keys to funnel search queries for a specific subset of results. Typing {<} 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. + + + {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! + + + Tips & tricks + + + {Win} + {N} to toggle both your microphone and video +{Win} + {Shift} + {A} to toggle your microphone +{Win} + {Shift} + {O} to toggle your video + + + Color Picker + Do not localize this string + + + FancyZones + Do not localize this string + + + File Explorer add-ons + Do not localize this string + + + Image Resizer + Do not localize this string + + + Keyboard Manager + Do not localize this string + + + Overview + + + PowerRename + Do not localize this string + + + PowerToys Run + Do not localize this string + + + Shortcut Guide + Do not localize this string + + + Video Conference + Do not localize this string + + + Welcome + + + Settings + + + Welcome to PowerToys + + + Welcome to PowerToys + + + PowerToys Settings + + + About Awake + + + A convenient way to keep your PC awake on-demand. + + + Enable Awake + + + Off (Passive) + + + Keep awake indefinitely + + + Keep awake temporarily + + + Your PC operates according to its current power plan + + + Keeps your PC awake until the setting is disabled + + + Keeps your PC awake until the set time elapses + + + Keep screen on + + + Mode + + + Behavior + + + Hours + + + Minutes + + + Awake + Module name, do not loc + + + Awake is a Windows tool designed to keep your PC awake on-demand without having to manage its power settings. This behavior can be helpful when running time-consuming tasks while ensuring that your PC does not go to sleep or turn off its screens. + + + Open {PowerToys Settings} and enable Awake + + + You can always change modes quickly by {right-clicking the Awake icon} in the system tray. + + + * An error occurred trying to update to + + + Install now + + + Read more + + + A new version is available: + + + Downloading... + + + Try again to download and install + + + Checking for updates... + + + A new version is ready to install: + + + PowerToys is up to date + + + Download and install + + + Fills + + + Fits within + + + Stretches to + + + Centimeters + + + Inches + + + Percent + + + Pixels + + + Edit + + + Edit + + + No + Label of a cancel button + + + Are you sure you want to delete this item? + + + Yes + Label of a confirmation button + + + Learn more + \ No newline at end of file diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml index dc046646ff..5770c76340 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml @@ -6,11 +6,18 @@ xmlns:models="using:Microsoft.PowerToys.Settings.UI.Library" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:muxc="using:Microsoft.UI.Xaml.Controls" + xmlns:muxc="using:Microsoft.UI.Xaml.Controls" + xmlns:converters="using:Microsoft.PowerToys.Settings.UI.Converters" + xmlns:toolkitconverters="using:Microsoft.Toolkit.Uwp.UI.Converters" mc:Ignorable="d" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" - AutomationProperties.LandmarkType="Main"> + AutomationProperties.LandmarkType="Main" x:Name="RootPage"> + + + + + @@ -27,7 +34,7 @@ - - - - - - - + + + + + + + - - - - - + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + @@ -260,7 +229,7 @@ x:Uid="ImageResizer_FilenameFormatHeader" Margin="0,0,0,0" Opacity="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToOpacityConverter}}"/> - diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs index f482f4d2cf..0b542c0198 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs @@ -9,6 +9,8 @@ using System.Linq; using Microsoft.PowerToys.Settings.UI.Library; using Microsoft.PowerToys.Settings.UI.Library.Utilities; using Microsoft.PowerToys.Settings.UI.Library.ViewModels; +using Windows.ApplicationModel.Resources; +using Windows.UI.Popups; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; @@ -32,19 +34,36 @@ namespace Microsoft.PowerToys.Settings.UI.Views DataContext = ViewModel; } - public void DeleteCustomSize(object sender, RoutedEventArgs e) + public async void DeleteCustomSize(object sender, RoutedEventArgs e) { Button deleteRowButton = (Button)sender; - // Using InvariantCulture since this is internal and expected to be numerical - bool success = int.TryParse(deleteRowButton?.CommandParameter?.ToString(), NumberStyles.Integer, CultureInfo.InvariantCulture, out int rowNum); - if (success) + if (deleteRowButton != null) { - ViewModel.DeleteImageSize(rowNum); - } - else - { - Logger.LogError("Failed to delete custom image size."); + ImageSize x = (ImageSize)deleteRowButton.DataContext; + ResourceLoader resourceLoader = ResourceLoader.GetForCurrentView(); + + ContentDialog dialog = new ContentDialog(); + dialog.XamlRoot = RootPage.XamlRoot; + dialog.Title = x.Name; + dialog.PrimaryButtonText = resourceLoader.GetString("Yes"); + dialog.CloseButtonText = resourceLoader.GetString("No"); + dialog.DefaultButton = ContentDialogButton.Primary; + dialog.Content = new TextBlock() { Text = resourceLoader.GetString("Delete_Dialog_Description") }; + dialog.PrimaryButtonClick += (s, args) => + { + // Using InvariantCulture since this is internal and expected to be numerical + bool success = int.TryParse(deleteRowButton?.CommandParameter?.ToString(), NumberStyles.Integer, CultureInfo.InvariantCulture, out int rowNum); + if (success) + { + ViewModel.DeleteImageSize(rowNum); + } + else + { + Logger.LogError("Failed to delete custom image size."); + } + }; + var result = await dialog.ShowAsync(); } }