mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[Settings] a11y fixes (#14667)
* Update FancyZonesPreviewControl.xaml * Update ImageResizerPage.xaml * Uid updates * Update GeneralPage.xaml * Correct IsTabStop * Setting focus to page
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
<Setter Property="Margin" Value="0,0,0,2" />
|
<Setter Property="Margin" Value="0,0,0,2" />
|
||||||
<Setter Property="Padding" Value="0,0,0,0" />
|
<Setter Property="Padding" Value="0,0,0,0" />
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||||
|
<Setter Property="IsTabStop" Value="False"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="controls:CheckBoxWithDescriptionControl" BasedOn="{StaticResource DefaultCheckBoxStyle}" />
|
<Style TargetType="controls:CheckBoxWithDescriptionControl" BasedOn="{StaticResource DefaultCheckBoxStyle}" />
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Border Opacity="0.8" Grid.ColumnSpan="2" Grid.RowSpan="3" CornerRadius="2" >
|
<Border Opacity="0.8" Grid.ColumnSpan="2" Grid.RowSpan="3" CornerRadius="2" >
|
||||||
<Image Source="{x:Bind WallpaperPath, Mode=OneWay}" Stretch="UniformToFill"/>
|
<Image Source="{x:Bind WallpaperPath, Mode=OneWay}" Stretch="UniformToFill" AutomationProperties.AccessibilityView="Raw"/>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<Grid Background="{ThemeResource SystemControlAcrylicElementBrush}" Grid.Row="2" Grid.ColumnSpan="2"/>
|
<Grid Background="{ThemeResource SystemControlAcrylicElementBrush}" Grid.Row="2" Grid.ColumnSpan="2"/>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls"
|
xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
Loaded="UserControl_Loaded"
|
||||||
xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters" xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
|
xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters" xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
@@ -59,7 +60,7 @@
|
|||||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||||
TextWrapping="Wrap"/>
|
TextWrapping="Wrap"/>
|
||||||
|
|
||||||
<ItemsControl ItemsSource="{x:Bind PrimaryLinks}" IsTabStop="False" Margin="0,8,0,0">
|
<ItemsControl x:Name="PrimaryLinksControl" ItemsSource="{x:Bind PrimaryLinks}" IsTabStop="False" Margin="0,8,0,0">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate x:DataType="local:PageLink">
|
<DataTemplate x:DataType="local:PageLink">
|
||||||
<HyperlinkButton NavigateUri="{x:Bind Link}" Style="{StaticResource TextButtonStyle}">
|
<HyperlinkButton NavigateUri="{x:Bind Link}" Style="{StaticResource TextButtonStyle}">
|
||||||
|
|||||||
@@ -71,5 +71,10 @@ namespace Microsoft.PowerToys.Settings.UI.Controls
|
|||||||
public static readonly DependencyProperty SecondaryLinksHeaderProperty = DependencyProperty.Register("SecondaryLinksHeader", typeof(string), typeof(SettingsPageControl), new PropertyMetadata(default(string)));
|
public static readonly DependencyProperty SecondaryLinksHeaderProperty = DependencyProperty.Register("SecondaryLinksHeader", typeof(string), typeof(SettingsPageControl), new PropertyMetadata(default(string)));
|
||||||
public static readonly DependencyProperty SecondaryLinksProperty = DependencyProperty.Register("SecondaryLinks", typeof(ObservableCollection<PageLink>), typeof(SettingsPageControl), new PropertyMetadata(new ObservableCollection<PageLink>()));
|
public static readonly DependencyProperty SecondaryLinksProperty = DependencyProperty.Register("SecondaryLinks", typeof(ObservableCollection<PageLink>), typeof(SettingsPageControl), new PropertyMetadata(new ObservableCollection<PageLink>()));
|
||||||
public static readonly DependencyProperty ModuleContentProperty = DependencyProperty.Register("ModuleContent", typeof(object), typeof(SettingsPageControl), new PropertyMetadata(new Grid()));
|
public static readonly DependencyProperty ModuleContentProperty = DependencyProperty.Register("ModuleContent", typeof(object), typeof(SettingsPageControl), new PropertyMetadata(new Grid()));
|
||||||
|
|
||||||
|
private void UserControl_Loaded(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
PrimaryLinksControl.Focus(FocusState.Programmatic);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1543,6 +1543,9 @@ From there, simply click on a Markdown file, PDF file or SVG icon in the File Ex
|
|||||||
</data>
|
</data>
|
||||||
<data name="EditButton.AutomationProperties.Name" xml:space="preserve">
|
<data name="EditButton.AutomationProperties.Name" xml:space="preserve">
|
||||||
<value>Edit</value>
|
<value>Edit</value>
|
||||||
|
</data>
|
||||||
|
<data name="ImageResizer_EditSize.AutomationProperties.Name" xml:space="preserve">
|
||||||
|
<value>Edit size</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="No" xml:space="preserve">
|
<data name="No" xml:space="preserve">
|
||||||
<value>No</value>
|
<value>No</value>
|
||||||
|
|||||||
@@ -162,9 +162,11 @@
|
|||||||
|
|
||||||
<controls:Setting x:Uid="GeneralPage_ToggleSwitch_AutoDownloadUpdates"
|
<controls:Setting x:Uid="GeneralPage_ToggleSwitch_AutoDownloadUpdates"
|
||||||
Margin="0,-6,0,0"
|
Margin="0,-6,0,0"
|
||||||
|
IsEnabled="{Binding AutoUpdatesEnabled}"
|
||||||
Visibility="{Binding Mode=OneWay, Path=IsAdmin, Converter={StaticResource VisibleIfTrueConverter}}">
|
Visibility="{Binding Mode=OneWay, Path=IsAdmin, Converter={StaticResource VisibleIfTrueConverter}}">
|
||||||
<ToggleSwitch IsOn="{Binding Mode=TwoWay, Path=AutoDownloadUpdates}"
|
<controls:Setting.ActionContent>
|
||||||
IsEnabled="{Binding AutoUpdatesEnabled}" />
|
<ToggleSwitch IsOn="{Binding Mode=TwoWay, Path=AutoDownloadUpdates}" />
|
||||||
|
</controls:Setting.ActionContent>
|
||||||
</controls:Setting>
|
</controls:Setting>
|
||||||
</controls:SettingsGroup>
|
</controls:SettingsGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
<TextBlock x:Uid="EditTooltip"/>
|
<TextBlock x:Uid="EditTooltip"/>
|
||||||
</ToolTipService.ToolTip>
|
</ToolTipService.ToolTip>
|
||||||
<Button.Flyout>
|
<Button.Flyout>
|
||||||
<Flyout>
|
<Flyout x:Uid="ImageResizer_EditSize">
|
||||||
<StackPanel Spacing="16" Margin="0,12,0,0">
|
<StackPanel Spacing="16" Margin="0,12,0,0">
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Uid="ImageResizer_Name"
|
x:Uid="ImageResizer_Name"
|
||||||
|
|||||||
@@ -222,12 +222,12 @@
|
|||||||
</controls:Setting.ActionContent>
|
</controls:Setting.ActionContent>
|
||||||
</controls:Setting>
|
</controls:Setting>
|
||||||
<muxc:InfoBar Severity="Error" x:Uid="Run_NotAccessibleWarning"
|
<muxc:InfoBar Severity="Error" x:Uid="Run_NotAccessibleWarning"
|
||||||
IsTabStop="True"
|
IsTabStop="{x:Bind ShowNotAccessibleWarning}"
|
||||||
IsOpen="{x:Bind ShowNotAccessibleWarning}"
|
IsOpen="{x:Bind ShowNotAccessibleWarning}"
|
||||||
IsClosable="False" />
|
IsClosable="False" />
|
||||||
<muxc:InfoBar Severity="Error"
|
<muxc:InfoBar Severity="Error"
|
||||||
x:Uid="Run_NotAllowedActionKeyword"
|
x:Uid="Run_NotAllowedActionKeyword"
|
||||||
IsTabStop="True"
|
IsTabStop="{x:Bind ShowNotAllowedKeywordWarning}"
|
||||||
IsOpen="{x:Bind ShowNotAllowedKeywordWarning}"
|
IsOpen="{x:Bind ShowNotAllowedKeywordWarning}"
|
||||||
IsClosable="False" />
|
IsClosable="False" />
|
||||||
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
||||||
|
|||||||
Reference in New Issue
Block a user