From 4bac5d2ae335941b4cf179d9ecf216d0e8c5523d Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Thu, 22 Jul 2021 11:01:34 +0200 Subject: [PATCH] Updated pages --- .../SidePanel/SettingsPageControl.xaml | 53 +++++++------ .../SidePanel/SettingsPageControl.xaml.cs | 21 +++-- .../Strings/en-us/Resources.resw | 76 +++++++++++-------- .../Views/AwakePage.xaml | 2 +- .../Views/ColorPickerPage.xaml | 2 +- .../Views/FancyZonesPage.xaml | 2 +- .../Views/GeneralPage.xaml | 2 +- .../Views/ImageResizerPage.xaml | 2 +- .../Views/KeyboardManagerPage.xaml | 2 +- .../Views/PowerLauncherPage.xaml | 2 +- .../Views/PowerPreviewPage.xaml | 2 +- .../Views/PowerRenamePage.xaml | 2 +- .../Views/ShellPage.xaml | 54 +++++++------ .../Views/ShortcutGuidePage.xaml | 2 +- .../Views/VideoConference.xaml | 2 +- 15 files changed, 125 insertions(+), 101 deletions(-) diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Controls/SidePanel/SettingsPageControl.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Controls/SidePanel/SettingsPageControl.xaml index 5908d250f4..66e0c860b8 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Controls/SidePanel/SettingsPageControl.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Controls/SidePanel/SettingsPageControl.xaml @@ -6,14 +6,13 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters" - mc:Ignorable="d" - > + mc:Ignorable="d"> - + @@ -29,13 +28,14 @@ - - + + + - - + + @@ -45,34 +45,43 @@ + + + - - - - - - + + + + Margin="-12, 12, 0, 12"> @@ -89,7 +98,7 @@ - + @@ -105,7 +114,7 @@ - + diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Controls/SidePanel/SettingsPageControl.xaml.cs b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Controls/SidePanel/SettingsPageControl.xaml.cs index b8a74f24f3..9a1bd68919 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Controls/SidePanel/SettingsPageControl.xaml.cs +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Controls/SidePanel/SettingsPageControl.xaml.cs @@ -30,18 +30,10 @@ namespace Microsoft.PowerToys.Settings.UI.Controls AttributionLinks = new ObservableCollection(); } - public object ModuleContent - { - get { return (object)GetValue(ModuleContentProperty); } - set { SetValue(ModuleContentProperty, value); } - } - - public static readonly DependencyProperty ModuleContentProperty = DependencyProperty.Register("Content", typeof(object), typeof(SettingsPageControl), new PropertyMetadata(new Grid())); - public string ModuleTitle { - get => (string)GetValue(ModuleTitleProperty); - set => SetValue(ModuleTitleProperty, value); + get { return (string)GetValue(ModuleTitleProperty); } + set { SetValue(ModuleTitleProperty, value); } } public string ModuleDescription @@ -78,11 +70,18 @@ namespace Microsoft.PowerToys.Settings.UI.Controls set => SetValue(AttributionLinksProperty, value); } - public static readonly DependencyProperty ModuleTitleProperty = DependencyProperty.Register("ModuleTitle", typeof(string), typeof(SettingsPageControl), new PropertyMetadata(default(string))); + public object ModuleContent + { + get { return (object)GetValue(ModuleContentProperty); } + set { SetValue(ModuleContentProperty, value); } + } + + public static readonly DependencyProperty ModuleTitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(SettingsPageControl), new PropertyMetadata(default(string))); public static readonly DependencyProperty ModuleDescriptionProperty = DependencyProperty.Register("ModuleDescription", typeof(string), typeof(SettingsPageControl), new PropertyMetadata(default(string))); public static readonly DependencyProperty ModuleImageSourceProperty = DependencyProperty.Register("ModuleImageSource", typeof(string), typeof(SettingsPageControl), new PropertyMetadata(default(string))); public static readonly DependencyProperty ModuleImageLinkProperty = DependencyProperty.Register("ModuleImageLink", typeof(string), typeof(SettingsPageControl), new PropertyMetadata(default(string))); public static readonly DependencyProperty ModuleLinksProperty = DependencyProperty.Register("ModuleLinks", typeof(ObservableCollection), typeof(SettingsPageControl), new PropertyMetadata(new ObservableCollection())); public static readonly DependencyProperty AttributionLinksProperty = DependencyProperty.Register("AttributionLinks", typeof(ObservableCollection), typeof(SettingsPageControl), new PropertyMetadata(new ObservableCollection())); + public static readonly DependencyProperty ModuleContentProperty = DependencyProperty.Register("Content", typeof(object), typeof(SettingsPageControl), new PropertyMetadata(new Grid())); } } 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 6bce3756e1..11d4bc92a4 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 @@ -124,7 +124,7 @@ 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. @@ -185,8 +185,9 @@ Disabling this module or closing PowerToys will unmute the microphone and camera Hide toolbar when both camera and microphone are unmuted - - About Video Conference + + Video Conference + do not loc the product name Camera @@ -253,7 +254,7 @@ Disabling this module or closing PowerToys will unmute the microphone and camera Current configuration Keyboard Manager current configuration header - + Reconfigure your keyboard by remapping keys and shortcuts. Keyboard Manager page description @@ -311,7 +312,7 @@ Disabling this module or closing PowerToys will unmute the microphone and camera Keyboard Manager do not loc, product name - + Quick and simple system-wide color picker. @@ -325,7 +326,7 @@ Disabling this module or closing PowerToys will unmute the microphone and camera Activate Color Picker do not loc product name - + A quick launcher that has additional capabilities without sacrificing performance. @@ -401,7 +402,7 @@ Disabling this module or closing PowerToys will unmute the microphone and camera FancyZones windows do not loc the Product name - + Create window layouts to help make multi-tasking easy. windows refers to application windows @@ -484,8 +485,9 @@ Disabling this module or closing PowerToys will unmute the microphone and camera Attribution giving credit to the projects this utility was based on - - About PowerToys + + PowerToys + do not loc the product name Check for updates @@ -511,7 +513,7 @@ Disabling this module or closing PowerToys will unmute the microphone and camera Run at startup - + A Windows Shell extension for more advanced bulk renaming using search and replace or regular expressions. @@ -549,7 +551,7 @@ Disabling this module or closing PowerToys will unmute the microphone and camera Enable SVG (.svg) thumbnails Do you want this feature on / off - + These settings allow you to manage your Windows File Explorer custom preview handlers. @@ -567,7 +569,7 @@ Disabling this module or closing PowerToys will unmute the microphone and camera Zone inactive color - + Shows a help overlay with Windows shortcuts when the Windows key is pressed. @@ -597,7 +599,7 @@ Disabling this module or closing PowerToys will unmute the microphone and camera Image sizes - + Lets you resize images by right-clicking. @@ -753,41 +755,48 @@ Disabling this module or closing PowerToys will unmute the microphone and camera Running as administrator - - About FancyZones + + FancyZones + do not loc the product name - - About File Explorer + + File Explorer + do not loc the product name File Explorer Use same translation as Windows does for File Explorer - - About Image Resizer + + Image Resizer + do not loc the product name - - About Keyboard Manager + + Keyboard Manager + do not loc the product name - - About Color Picker + + Color Picker + do not loc the product name - - About PowerToys Run + + PowerToys Run + do not loc the product name PowerToys Run - - About PowerRename + + PowerRename do not loc the product name PowerRename do not loc - - About Shortcut Guide + + Shortcut Guide + do not loc the product name Shortcut Guide @@ -841,7 +850,7 @@ Disabling this module or closing PowerToys will unmute the microphone and camera 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. @@ -1256,10 +1265,11 @@ From there, simply click on a Markdown file or SVG icon in the File Explorer and PowerToys Settings - - About Awake + + Awake + do not loc the product name - + A convenient way to keep your PC awake on-demand. diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/AwakePage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/AwakePage.xaml index 649ae3ce69..f7d98dd95f 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/AwakePage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/AwakePage.xaml @@ -14,7 +14,7 @@ - diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ColorPickerPage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ColorPickerPage.xaml index 092b6329a6..1c15e0658b 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ColorPickerPage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ColorPickerPage.xaml @@ -10,7 +10,7 @@ mc:Ignorable="d" AutomationProperties.LandmarkType="Main"> - diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml index 6c7b29f5d9..dc6ae4e95d 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml @@ -14,7 +14,7 @@ - diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml index af705220c4..2f67f6f0ee 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml @@ -19,7 +19,7 @@ - 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 77b4ad9f3c..9e44204b0e 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml @@ -10,7 +10,7 @@ mc:Ignorable="d" AutomationProperties.LandmarkType="Main"> - diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/KeyboardManagerPage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/KeyboardManagerPage.xaml index 26552f9007..c47ef88ae5 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/KeyboardManagerPage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/KeyboardManagerPage.xaml @@ -187,7 +187,7 @@ - diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerLauncherPage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerLauncherPage.xaml index a72d98b734..be4ee95f89 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerLauncherPage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerLauncherPage.xaml @@ -16,7 +16,7 @@ - diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml index c14dae4446..8b426ceabb 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml @@ -13,7 +13,7 @@ - diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerRenamePage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerRenamePage.xaml index 7dc8109f12..b309a8f1d0 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerRenamePage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/PowerRenamePage.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" AutomationProperties.LandmarkType="Main"> - diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml index ac2aadae8c..09144f11a9 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml @@ -11,30 +11,16 @@ xmlns:ic="using:Microsoft.Xaml.Interactions.Core" xmlns:i="using:Microsoft.Xaml.Interactivity" winui:BackdropMaterial.ApplyToRootOrPageBackground="True" - Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" mc:Ignorable="d"> - - - - - - - - - - - - - - - - - - - - + + + + @@ -43,15 +29,35 @@ - + + + + + + + + + + + + + + + + + + + + + @@ -124,7 +130,7 @@ - + diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ShortcutGuidePage.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ShortcutGuidePage.xaml index 2126335696..268501980f 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ShortcutGuidePage.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/ShortcutGuidePage.xaml @@ -14,7 +14,7 @@ - diff --git a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/VideoConference.xaml b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/VideoConference.xaml index 457fa8b5d6..6039ca8d70 100644 --- a/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/VideoConference.xaml +++ b/src/settings-ui/Microsoft.PowerToys.Settings.UI/Views/VideoConference.xaml @@ -7,7 +7,7 @@ xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" mc:Ignorable="d"> -