diff --git a/src/settings-ui/Settings.UI.UnitTests/Settings.UI.UnitTests.csproj b/src/settings-ui/Settings.UI.UnitTests/Settings.UI.UnitTests.csproj index 03b755ac69..5f772a116b 100644 --- a/src/settings-ui/Settings.UI.UnitTests/Settings.UI.UnitTests.csproj +++ b/src/settings-ui/Settings.UI.UnitTests/Settings.UI.UnitTests.csproj @@ -18,6 +18,11 @@ ..\..\..\x64\Release\SettingsTest\ + + + https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json + + diff --git a/src/settings-ui/Settings.UI/App.xaml b/src/settings-ui/Settings.UI/App.xaml index 0ec73f08c0..78ae97dba8 100644 --- a/src/settings-ui/Settings.UI/App.xaml +++ b/src/settings-ui/Settings.UI/App.xaml @@ -2,8 +2,9 @@ x:Class="Microsoft.PowerToys.Settings.UI.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Microsoft.PowerToys.Settings.UI" - xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"> + xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" + xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" + xmlns:labs="using:CommunityToolkit.Labs.WinUI"> @@ -11,25 +12,51 @@ - - - - + + + + + + + + + + + + + + + 6,16,16,16 16,0,0,0 240 + - - diff --git a/src/settings-ui/Settings.UI/Controls/KeyVisual/KeyVisual.xaml b/src/settings-ui/Settings.UI/Controls/KeyVisual/KeyVisual.xaml index df88c48728..2d469563a2 100644 --- a/src/settings-ui/Settings.UI/Controls/KeyVisual/KeyVisual.xaml +++ b/src/settings-ui/Settings.UI/Controls/KeyVisual/KeyVisual.xaml @@ -1,10 +1,13 @@ - + 16 12 - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/settings-ui/Settings.UI/Controls/SettingExpander/SettingExpander.cs b/src/settings-ui/Settings.UI/Controls/SettingExpander/SettingExpander.cs deleted file mode 100644 index 78322e5435..0000000000 --- a/src/settings-ui/Settings.UI/Controls/SettingExpander/SettingExpander.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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 Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Automation; -using Microsoft.UI.Xaml.Controls; - -namespace Microsoft.PowerToys.Settings.UI.Controls -{ - public partial class SettingExpander : Expander - { - public SettingExpander() - { - DefaultStyleKey = typeof(Expander); - this.Style = (Style)App.Current.Resources["SettingExpanderStyle"]; - this.RegisterPropertyChangedCallback(Expander.HeaderProperty, OnHeaderChanged); - } - - private static void OnHeaderChanged(DependencyObject d, DependencyProperty dp) - { - SettingExpander self = (SettingExpander)d; - if (self.Header != null) - { - if (self.Header.GetType() == typeof(Setting)) - { - Setting selfSetting = (Setting)self.Header; - selfSetting.Style = (Style)App.Current.Resources["ExpanderHeaderSettingStyle"]; - - if (!string.IsNullOrEmpty(selfSetting.Header)) - { - AutomationProperties.SetName(self, selfSetting.Header); - } - } - } - } - } -} diff --git a/src/settings-ui/Settings.UI/Controls/SettingsGroup/SettingsGroup.xaml b/src/settings-ui/Settings.UI/Controls/SettingsGroup/SettingsGroup.xaml index f594a918e3..be4c302813 100644 --- a/src/settings-ui/Settings.UI/Controls/SettingsGroup/SettingsGroup.xaml +++ b/src/settings-ui/Settings.UI/Controls/SettingsGroup/SettingsGroup.xaml @@ -1,5 +1,5 @@  @@ -7,8 +7,9 @@ - + @@ -19,9 +20,49 @@ + + + + + + + + + + + + + + - + @@ -30,39 +71,6 @@ - - - - - - - - - - - - - - diff --git a/src/settings-ui/Settings.UI/Controls/SettingsPageControl/SettingsPageControl.xaml b/src/settings-ui/Settings.UI/Controls/SettingsPageControl/SettingsPageControl.xaml index b916bf3736..c04dc9fc97 100644 --- a/src/settings-ui/Settings.UI/Controls/SettingsPageControl/SettingsPageControl.xaml +++ b/src/settings-ui/Settings.UI/Controls/SettingsPageControl/SettingsPageControl.xaml @@ -2,52 +2,63 @@ x:Class="Microsoft.PowerToys.Settings.UI.Controls.SettingsPageControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls" + xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls" + xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Loaded="UserControl_Loaded" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" - xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls" mc:Ignorable="d"> - + 1000 + - + - - + - - + + - - - - - + + - - + + - - + + - + - + @@ -56,58 +67,80 @@ - + - + - - + + - + - - - + + - - - - - + + + + - - + + - + diff --git a/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutControl.xaml b/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutControl.xaml index 248d67f75e..f66b81e5b1 100644 --- a/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutControl.xaml +++ b/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutControl.xaml @@ -2,46 +2,53 @@ x:Class="Microsoft.PowerToys.Settings.UI.Controls.ShortcutControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - mc:Ignorable="d" x:Name="LayoutRoot" d:DesignHeight="300" - d:DesignWidth="400"> + d:DesignWidth="400" + mc:Ignorable="d"> - diff --git a/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutDialogContentControl.xaml b/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutDialogContentControl.xaml index f91649d05e..2ea9aa3d94 100644 --- a/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutDialogContentControl.xaml +++ b/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutDialogContentControl.xaml @@ -2,92 +2,99 @@ x:Class="Microsoft.PowerToys.Settings.UI.Controls.ShortcutDialogContentControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:toolkitcontrols="using:CommunityToolkit.WinUI.UI.Controls" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" - mc:Ignorable="d" - x:Name="ShortcutContentControl"> - - - - + x:Name="ShortcutContentControl" + mc:Ignorable="d"> + - - - + + + - + - + - + - + - + - - - - - - - + CornerRadius="{ThemeResource ControlCornerRadius}" + Visibility="{Binding ElementName=ShortcutContentControl, Path=IsError, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"> + + + + + - + --> - - - + + + - + diff --git a/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutWithTextLabelControl.xaml b/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutWithTextLabelControl.xaml index 291c6ffa38..d1ef5a63b4 100644 --- a/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutWithTextLabelControl.xaml +++ b/src/settings-ui/Settings.UI/Controls/ShortcutControl/ShortcutWithTextLabelControl.xaml @@ -2,43 +2,48 @@ x:Class="Microsoft.PowerToys.Settings.UI.Controls.ShortcutWithTextLabelControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:toolkitcontrols="using:CommunityToolkit.WinUI.UI.Controls" - mc:Ignorable="d" d:DesignHeight="300" - d:DesignWidth="400"> + d:DesignWidth="400" + mc:Ignorable="d"> - + - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/src/settings-ui/Settings.UI/Views/VisibleIfNotEmpty.cs b/src/settings-ui/Settings.UI/Converters/VisibleIfNotEmptyConverter.cs similarity index 71% rename from src/settings-ui/Settings.UI/Views/VisibleIfNotEmpty.cs rename to src/settings-ui/Settings.UI/Converters/VisibleIfNotEmptyConverter.cs index ee910c2f89..ae2e6554da 100644 --- a/src/settings-ui/Settings.UI/Views/VisibleIfNotEmpty.cs +++ b/src/settings-ui/Settings.UI/Converters/VisibleIfNotEmptyConverter.cs @@ -7,13 +7,13 @@ using System.Collections; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Data; -namespace Microsoft.PowerToys.Settings.UI.Views +namespace Microsoft.PowerToys.Settings.UI.Converters { - public class VisibleIfNotEmpty : IValueConverter + public class VisibleIfNotEmptyConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { - return (value == null) || (value as IList).Count == 0 ? Visibility.Collapsed : Visibility.Visible; + return value == null || (value as IList).Count == 0 ? Visibility.Collapsed : Visibility.Visible; } public object ConvertBack(object value, Type targetType, object parameter, string language) diff --git a/src/settings-ui/Settings.UI/MainWindow.xaml b/src/settings-ui/Settings.UI/MainWindow.xaml index 4afa682cfe..715a25863c 100644 --- a/src/settings-ui/Settings.UI/MainWindow.xaml +++ b/src/settings-ui/Settings.UI/MainWindow.xaml @@ -2,14 +2,13 @@ x:Class="Microsoft.PowerToys.Settings.UI.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Microsoft.PowerToys.Settings.UI.Views" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="using:Microsoft.PowerToys.Settings.UI.Views" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - mc:Ignorable="d" Closed="Window_Closed" - > + mc:Ignorable="d"> - + diff --git a/src/settings-ui/Settings.UI/OOBE/Views/OobeAlwaysOnTop.xaml b/src/settings-ui/Settings.UI/OOBE/Views/OobeAlwaysOnTop.xaml index a6c86a9c56..e9dd27edd7 100644 --- a/src/settings-ui/Settings.UI/OOBE/Views/OobeAlwaysOnTop.xaml +++ b/src/settings-ui/Settings.UI/OOBE/Views/OobeAlwaysOnTop.xaml @@ -2,36 +2,47 @@ x:Class="Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeAlwaysOnTop" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Microsoft.PowerToys.Settings.UI.OOBE.Views" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - mc:Ignorable="d" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - xmlns:toolkitcontrols="using:CommunityToolkit.WinUI.UI.Controls"> - - + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="using:Microsoft.PowerToys.Settings.UI.OOBE.Views" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:toolkitcontrols="using:CommunityToolkit.WinUI.UI.Controls" + mc:Ignorable="d"> + - + - + + - + - - - - - - - - - - + ColumnSpacing="8"> + + + + + + + + + + + + + - + - - + + - - - - - + + + + + \ No newline at end of file diff --git a/src/settings-ui/Settings.UI/Views/FancyZonesPage.xaml b/src/settings-ui/Settings.UI/Views/FancyZonesPage.xaml index a69064e2d5..305d9d4065 100644 --- a/src/settings-ui/Settings.UI/Views/FancyZonesPage.xaml +++ b/src/settings-ui/Settings.UI/Views/FancyZonesPage.xaml @@ -2,318 +2,350 @@ x:Class="Microsoft.PowerToys.Settings.UI.Views.FancyZonesPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" - mc:Ignorable="d" - AutomationProperties.LandmarkType="Main"> + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - - - - - - - - - + + + + - - - - - - - - - + + - - - - - - - - + + + - - - - - - - - + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - + + - + \ No newline at end of file diff --git a/src/settings-ui/Settings.UI/Views/FileLocksmithPage.xaml b/src/settings-ui/Settings.UI/Views/FileLocksmithPage.xaml index 7f57f46d3f..9a341edd86 100644 --- a/src/settings-ui/Settings.UI/Views/FileLocksmithPage.xaml +++ b/src/settings-ui/Settings.UI/Views/FileLocksmithPage.xaml @@ -2,41 +2,40 @@ x:Class="Microsoft.PowerToys.Settings.UI.Views.FileLocksmithPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - mc:Ignorable="d" - xmlns:muxc="using:Microsoft.UI.Xaml.Controls" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" - AutomationProperties.LandmarkType="Main"> + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - - - - - + + + + - - - - - - - - - + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> - + diff --git a/src/settings-ui/Settings.UI/Views/GeneralPage.xaml b/src/settings-ui/Settings.UI/Views/GeneralPage.xaml index ae8985eeb0..f1bf1b8a00 100644 --- a/src/settings-ui/Settings.UI/Views/GeneralPage.xaml +++ b/src/settings-ui/Settings.UI/Views/GeneralPage.xaml @@ -4,400 +4,404 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" xmlns:localConverters="using:Microsoft.PowerToys.Settings.UI.Converters" - mc:Ignorable="d" - AutomationProperties.LandmarkType="Main"> + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - - - + - + - - - + + + - - - + + - + + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - + + \ No newline at end of file diff --git a/src/settings-ui/Settings.UI/Views/HostsPage.xaml b/src/settings-ui/Settings.UI/Views/HostsPage.xaml index 6041d6d882..354ea752dc 100644 --- a/src/settings-ui/Settings.UI/Views/HostsPage.xaml +++ b/src/settings-ui/Settings.UI/Views/HostsPage.xaml @@ -2,89 +2,85 @@ x:Class="Microsoft.PowerToys.Settings.UI.Views.HostsPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Microsoft.PowerToys.Settings.UI.Views" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" - mc:Ignorable="d" - Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + mc:Ignorable="d"> - - - - - + - - - - - - - - - - - + + + - - - - - - - - - - - - - - - + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> + + + + + + + + - - - - - - - - - + + + + + + + - - + diff --git a/src/settings-ui/Settings.UI/Views/ImageResizerPage.xaml b/src/settings-ui/Settings.UI/Views/ImageResizerPage.xaml index cef4af472d..7b53a4f65a 100644 --- a/src/settings-ui/Settings.UI/Views/ImageResizerPage.xaml +++ b/src/settings-ui/Settings.UI/Views/ImageResizerPage.xaml @@ -2,285 +2,323 @@ x:Class="Microsoft.PowerToys.Settings.UI.Views.ImageResizerPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - 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:controls="using:Microsoft.PowerToys.Settings.UI.Controls" xmlns:converters="using:Microsoft.PowerToys.Settings.UI.Converters" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:models="using:Microsoft.PowerToys.Settings.UI.Library" xmlns:toolkitconverters="using:CommunityToolkit.WinUI.UI.Converters" - mc:Ignorable="d" - AutomationProperties.LandmarkType="Main" x:Name="RootPage"> + xmlns:ui="using:CommunityToolkit.WinUI.UI" + x:Name="RootPage" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - - - + - + + + + - - - - - - - - - - + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + Text="{x:Bind Mode=TwoWay, Path=ViewModel.FileName}" /> + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - + - + \ No newline at end of file diff --git a/src/settings-ui/Settings.UI/Views/KeyboardManagerPage.xaml b/src/settings-ui/Settings.UI/Views/KeyboardManagerPage.xaml index c6fdab0f1e..c6a97e667c 100644 --- a/src/settings-ui/Settings.UI/Views/KeyboardManagerPage.xaml +++ b/src/settings-ui/Settings.UI/Views/KeyboardManagerPage.xaml @@ -2,201 +2,219 @@ x:Class="Microsoft.PowerToys.Settings.UI.Views.KeyboardManagerPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Microsoft.PowerToys.Settings.UI.Views" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" xmlns:Lib="using:Microsoft.PowerToys.Settings.UI.Library" - mc:Ignorable="d" - AutomationProperties.LandmarkType="Main"> + xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" + xmlns:converters="using:Microsoft.PowerToys.Settings.UI.Converters" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - + - - - - - - + + - - + + - + - - - - - - - - - + + + - + - - - - + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> - + + - - - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - + - - - - - - - - - - - - - - - - - - - + - + + + + + + + + + + + + + + + + + - + - + - + @@ -204,7 +222,9 @@ - + diff --git a/src/settings-ui/Settings.UI/Views/MeasureToolPage.xaml b/src/settings-ui/Settings.UI/Views/MeasureToolPage.xaml index e08578b26d..96856f0ee0 100644 --- a/src/settings-ui/Settings.UI/Views/MeasureToolPage.xaml +++ b/src/settings-ui/Settings.UI/Views/MeasureToolPage.xaml @@ -2,106 +2,108 @@ x:Class="Microsoft.PowerToys.Settings.UI.Views.MeasureToolPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - mc:Ignorable="d" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" - AutomationProperties.LandmarkType="Main"> - - - - - - + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> + + - - - - - - - - - - + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> + + + + - - - - - - - - - - - - - + + + + - - - - - - - - - - - - + Severity="Warning" /> - + + + - - - - - + + + - - - - - + + + + + + + + + - - + - + diff --git a/src/settings-ui/Settings.UI/Views/MouseUtilsPage.xaml b/src/settings-ui/Settings.UI/Views/MouseUtilsPage.xaml index 96a7ae079c..aa72024ee9 100644 --- a/src/settings-ui/Settings.UI/Views/MouseUtilsPage.xaml +++ b/src/settings-ui/Settings.UI/Views/MouseUtilsPage.xaml @@ -2,335 +2,300 @@ x:Class="Microsoft.PowerToys.Settings.UI.Views.MouseUtilsPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - mc:Ignorable="d" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" xmlns:localConverters="using:Microsoft.PowerToys.Settings.UI.Converters" - AutomationProperties.LandmarkType="Main"> + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - - + - + - - - - - - - - - + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabledGpoConfigured}" + Severity="Informational" /> + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - + MinHeight="160" + AcceptsReturn="True" + IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}" + ScrollViewer.IsVerticalRailEnabled="True" + ScrollViewer.VerticalScrollBarVisibility="Visible" + ScrollViewer.VerticalScrollMode="Enabled" + Text="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseExcludedApps, UpdateSourceTrigger=PropertyChanged}" + TextWrapping="Wrap" /> + + + - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsHighlighterEnabledGpoConfigured}" + Severity="Informational" /> + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabledGpoConfigured}" + Severity="Informational" /> + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + diff --git a/src/settings-ui/Settings.UI/Views/PowerAccentPage.xaml b/src/settings-ui/Settings.UI/Views/PowerAccentPage.xaml index 4c88564196..a0765e9eb3 100644 --- a/src/settings-ui/Settings.UI/Views/PowerAccentPage.xaml +++ b/src/settings-ui/Settings.UI/Views/PowerAccentPage.xaml @@ -1,139 +1,162 @@  + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - - - - - + + + + - - - - - - - - - + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> - - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + - - + MinHeight="160" + AcceptsReturn="True" + ScrollViewer.IsVerticalRailEnabled="True" + ScrollViewer.VerticalScrollBarVisibility="Visible" + ScrollViewer.VerticalScrollMode="Enabled" + Text="{x:Bind Mode=TwoWay, Path=ViewModel.ExcludedApps, UpdateSourceTrigger=PropertyChanged}" + TextWrapping="Wrap" /> + + + - + - + diff --git a/src/settings-ui/Settings.UI/Views/PowerLauncherPage.xaml b/src/settings-ui/Settings.UI/Views/PowerLauncherPage.xaml index e180743544..71ccb27a13 100644 --- a/src/settings-ui/Settings.UI/Views/PowerLauncherPage.xaml +++ b/src/settings-ui/Settings.UI/Views/PowerLauncherPage.xaml @@ -1,63 +1,63 @@ + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:i="using:Microsoft.Xaml.Interactivity" + xmlns:ic="using:Microsoft.Xaml.Interactions.Core" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - - - - - - + - - - - - - - - - + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> - - - - - - - - - - - - - - - - - + + + + + + + + + + + + @@ -82,7 +82,7 @@ IsEnabled="False" />--> - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + - + - + - - - - - - - - - - - - + + + + + + + + + - - - + + + + + + + - - - + + + + + + + + - - - - - - - - - - + --> - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + 0 + 0,0,0,0 + + + - - - + + + + + - - - - - - - + + + + + + + - - - + + + - - + + - + - - + + \ No newline at end of file diff --git a/src/settings-ui/Settings.UI/Views/PowerOcrPage.xaml b/src/settings-ui/Settings.UI/Views/PowerOcrPage.xaml index 79578794ae..c0e4ec6a58 100644 --- a/src/settings-ui/Settings.UI/Views/PowerOcrPage.xaml +++ b/src/settings-ui/Settings.UI/Views/PowerOcrPage.xaml @@ -3,61 +3,71 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" AutomationProperties.LandmarkType="Main" mc:Ignorable="d"> - - - - - + - - - - - - - - - - - + + + + - - + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> + - + - - - - - - - + + + + - - + - + diff --git a/src/settings-ui/Settings.UI/Views/PowerPreviewPage.xaml b/src/settings-ui/Settings.UI/Views/PowerPreviewPage.xaml index 931a891d2b..d0c9232648 100644 --- a/src/settings-ui/Settings.UI/Views/PowerPreviewPage.xaml +++ b/src/settings-ui/Settings.UI/Views/PowerPreviewPage.xaml @@ -2,196 +2,216 @@ x:Class="Microsoft.PowerToys.Settings.UI.Views.PowerPreviewPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - mc:Ignorable="d" - AutomationProperties.LandmarkType="Main"> + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - - - - - - + - - - - - - - - - + + + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGRenderEnabledGpoConfigured}" + Severity="Informational" /> - - - - - - + + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMDRenderEnabledGpoConfigured}" + Severity="Informational" /> - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMonacoRenderEnabledGpoConfigured}" + Severity="Informational" /> - - - - - - + + + - - - - - - - + + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODERenderEnabledGpoConfigured}" + Severity="Informational" /> - - - - - - - - + + + + + - - - - - - - + + + + - - - - - - - + + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODEThumbnailEnabledGpoConfigured}" + Severity="Informational" /> - - - - - - - - - - - - - - - - - - - + + + + + + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsSTLThumbnailEnabledGpoConfigured}" + Severity="Informational" /> - - + - - + + diff --git a/src/settings-ui/Settings.UI/Views/PowerRenamePage.xaml b/src/settings-ui/Settings.UI/Views/PowerRenamePage.xaml index 9c2afb3d64..4462b7e464 100644 --- a/src/settings-ui/Settings.UI/Views/PowerRenamePage.xaml +++ b/src/settings-ui/Settings.UI/Views/PowerRenamePage.xaml @@ -2,109 +2,110 @@ x:Class="Microsoft.PowerToys.Settings.UI.Views.PowerRenamePage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" - mc:Ignorable="d" - AutomationProperties.LandmarkType="Main"> - - - - - - - + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - - - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - + + + + + + + + - - + - + diff --git a/src/settings-ui/Settings.UI/Views/ShellPage.xaml b/src/settings-ui/Settings.UI/Views/ShellPage.xaml index 16f3d1ad3f..22e99f75e5 100644 --- a/src/settings-ui/Settings.UI/Views/ShellPage.xaml +++ b/src/settings-ui/Settings.UI/Views/ShellPage.xaml @@ -7,6 +7,7 @@ xmlns:i="using:Microsoft.Xaml.Interactivity" xmlns:ic="using:Microsoft.Xaml.Interactions.Core" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" xmlns:views="using:Microsoft.PowerToys.Settings.UI.Views" HighContrastAdjustment="None" mc:Ignorable="d"> @@ -21,7 +22,9 @@ - + - - - + + - - - - - + - - - - - + - - - - - + - - - - - + - - - - - + + + - - - - - + - - - - - + - - - - - + - - - - - + - - - - - + + - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - + Icon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsVideoConferenceMute.png}" + IsEnabled="{x:Bind ViewModel.IsVideoConferenceBuild, Mode=OneWay}" /> - - - - - - - - - - + + diff --git a/src/settings-ui/Settings.UI/Views/ShortcutGuidePage.xaml b/src/settings-ui/Settings.UI/Views/ShortcutGuidePage.xaml index 9a13ed3bc4..e9ce5ecab2 100644 --- a/src/settings-ui/Settings.UI/Views/ShortcutGuidePage.xaml +++ b/src/settings-ui/Settings.UI/Views/ShortcutGuidePage.xaml @@ -2,144 +2,154 @@ x:Class="Microsoft.PowerToys.Settings.UI.Views.ShortcutGuidePage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls" - xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" - mc:Ignorable="d" - AutomationProperties.LandmarkType="Main"> + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI.UI" + AutomationProperties.LandmarkType="Main" + mc:Ignorable="d"> - - - - - - - - - + - - - - - - - - - + + + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> + + + + + + + - + + + - - - - - - - - + + + - - - - - - - - - - - - - - - - - + + + + IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior}" + IsTabStop="True" + Severity="Warning" /> - - - - - - - - - - - - - + + + + + + + + + + + - - - - - - + + + - - - - - - - + + + + - - + MinHeight="160" + AcceptsReturn="True" + ScrollViewer.IsVerticalRailEnabled="True" + ScrollViewer.VerticalScrollBarVisibility="Visible" + ScrollViewer.VerticalScrollMode="Enabled" + Text="{x:Bind Mode=TwoWay, Path=ViewModel.DisabledApps, UpdateSourceTrigger=PropertyChanged}" + TextWrapping="Wrap" /> + + + - + \ No newline at end of file diff --git a/src/settings-ui/Settings.UI/Views/VideoConference.xaml b/src/settings-ui/Settings.UI/Views/VideoConference.xaml index 22c5b2e253..63ca138408 100644 --- a/src/settings-ui/Settings.UI/Views/VideoConference.xaml +++ b/src/settings-ui/Settings.UI/Views/VideoConference.xaml @@ -1,189 +1,185 @@ - - + - - + + - + Severity="Error"> - + - - - - - - - - - + + + + - + + IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" + Severity="Informational" /> + + + + - - - - - - - - - - - - - - - - - - + + + + + + - - - - - - - + + + + - - - - - - - - - - - - - - - - - -