mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
Accesibility improvements
This commit is contained in:
@@ -125,7 +125,7 @@ namespace Microsoft.PowerToys.Settings.UI.Controls
|
|||||||
{
|
{
|
||||||
if (_setting.ActionContent.GetType() != typeof(Button))
|
if (_setting.ActionContent.GetType() != typeof(Button))
|
||||||
{
|
{
|
||||||
// We do not want to override the default AutomationProperties.Name of a button. It's content already describes what it does.
|
// We do not want to override the default AutomationProperties.Name of a button. Its Content property already describes what it does.
|
||||||
if (!string.IsNullOrEmpty(_setting.Header))
|
if (!string.IsNullOrEmpty(_setting.Header))
|
||||||
{
|
{
|
||||||
AutomationProperties.SetName((UIElement)_setting.ActionContent, _setting.Header);
|
AutomationProperties.SetName((UIElement)_setting.ActionContent, _setting.Header);
|
||||||
|
|||||||
@@ -272,6 +272,10 @@ Disabling this module or closing PowerToys will unmute the microphone and camera
|
|||||||
<value>Remap a key</value>
|
<value>Remap a key</value>
|
||||||
<comment>Keyboard Manager remap keyboard button content</comment>
|
<comment>Keyboard Manager remap keyboard button content</comment>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="KeyboardManager_RemapKeyboardButton_Accesible.AutomationProperties.Name" xml:space="preserve">
|
||||||
|
<value>Remap a key</value>
|
||||||
|
<comment>Keyboard Manager remap keyboard button content</comment>
|
||||||
|
</data>
|
||||||
<data name="KeyboardManager_Keys.Header" xml:space="preserve">
|
<data name="KeyboardManager_Keys.Header" xml:space="preserve">
|
||||||
<value>Keys</value>
|
<value>Keys</value>
|
||||||
<comment>Keyboard Manager remap keyboard header</comment>
|
<comment>Keyboard Manager remap keyboard header</comment>
|
||||||
@@ -280,6 +284,10 @@ Disabling this module or closing PowerToys will unmute the microphone and camera
|
|||||||
<value>Remap a shortcut</value>
|
<value>Remap a shortcut</value>
|
||||||
<comment>Keyboard Manager remap shortcuts button</comment>
|
<comment>Keyboard Manager remap shortcuts button</comment>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="KeyboardManager_RemapShortcutsButton_Accesible.AutomationProperties.Name" xml:space="preserve">
|
||||||
|
<value>Remap a shortcut</value>
|
||||||
|
<comment>Keyboard Manager remap shortcuts button</comment>
|
||||||
|
</data>
|
||||||
<data name="KeyboardManager_Shortcuts.Header" xml:space="preserve">
|
<data name="KeyboardManager_Shortcuts.Header" xml:space="preserve">
|
||||||
<value>Shortcuts</value>
|
<value>Shortcuts</value>
|
||||||
<comment>Keyboard Manager remap keyboard header</comment>
|
<comment>Keyboard Manager remap keyboard header</comment>
|
||||||
@@ -1462,4 +1470,8 @@ From there, simply click on a Markdown file or SVG icon in the File Explorer and
|
|||||||
<data name="More_Options_ButtonTooltip.Text" xml:space="preserve">
|
<data name="More_Options_ButtonTooltip.Text" xml:space="preserve">
|
||||||
<value>More options</value>
|
<value>More options</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="To.Text" xml:space="preserve">
|
||||||
|
<value>to</value>
|
||||||
|
<comment>as in: from x to y</comment>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
|
|
||||||
<controls:SettingsGroup x:Uid="KeyboardManager_Keys" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.Enabled}">
|
<controls:SettingsGroup x:Uid="KeyboardManager_Keys" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.Enabled}">
|
||||||
|
|
||||||
<Button Style="{StaticResource SettingButtonStyle}" Command="{Binding Path=RemapKeyboardCommand}">
|
<Button x:Uid="KeyboardManager_RemapKeyboardButton_Accesible" Style="{StaticResource SettingButtonStyle}" Command="{Binding Path=RemapKeyboardCommand}">
|
||||||
<controls:Setting x:Uid="KeyboardManager_RemapKeyboardButton" Style="{StaticResource ExpanderHeaderSettingStyle}" Icon="">
|
<controls:Setting x:Uid="KeyboardManager_RemapKeyboardButton" Style="{StaticResource ExpanderHeaderSettingStyle}" Icon="">
|
||||||
<controls:Setting.ActionContent>
|
<controls:Setting.ActionContent>
|
||||||
<FontIcon Glyph="" FontFamily="{ThemeResource SymbolThemeFontFamily}" />
|
<FontIcon Glyph="" FontFamily="{ThemeResource SymbolThemeFontFamily}" />
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<controls:SettingsGroup x:Uid="KeyboardManager_Shortcuts" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.Enabled}">
|
<controls:SettingsGroup x:Uid="KeyboardManager_Shortcuts" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.Enabled}">
|
||||||
<Button Style="{StaticResource SettingButtonStyle}" Command="{Binding Path=EditShortcutCommand}">
|
<Button x:Uid="KeyboardManager_RemapShortcutsButton_Accesible" Style="{StaticResource SettingButtonStyle}" Command="{Binding Path=EditShortcutCommand}">
|
||||||
<controls:Setting x:Uid="KeyboardManager_RemapShortcutsButton" Style="{StaticResource ExpanderHeaderSettingStyle}" Icon="">
|
<controls:Setting x:Uid="KeyboardManager_RemapShortcutsButton" Style="{StaticResource ExpanderHeaderSettingStyle}" Icon="">
|
||||||
<controls:Setting.ActionContent>
|
<controls:Setting.ActionContent>
|
||||||
<FontIcon Glyph="" FontFamily="{ThemeResource SymbolThemeFontFamily}" />
|
<FontIcon Glyph="" FontFamily="{ThemeResource SymbolThemeFontFamily}" />
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
</ItemsPanelTemplate>
|
</ItemsPanelTemplate>
|
||||||
</ItemsControl.ItemsPanel>
|
</ItemsControl.ItemsPanel>
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
<TextBlock Text="to"
|
<TextBlock x:Uid="To"
|
||||||
Style="{StaticResource SecondaryTextStyle}"
|
Style="{StaticResource SecondaryTextStyle}"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Margin="8,0,8,0"/>
|
Margin="8,0,8,0"/>
|
||||||
@@ -203,7 +203,6 @@
|
|||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
|
|
||||||
<TextBlock Margin="8,0,0,0" Style="{StaticResource SecondaryTextStyle}" VerticalAlignment="Center">
|
<TextBlock Margin="8,0,0,0" Style="{StaticResource SecondaryTextStyle}" VerticalAlignment="Center">
|
||||||
<Run Text="for"/>
|
|
||||||
<Run Text="{x:Bind TargetApp}" FontWeight="SemiBold"/>
|
<Run Text="{x:Bind TargetApp}" FontWeight="SemiBold"/>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
Reference in New Issue
Block a user