Improvements

This commit is contained in:
Niels Laute 2020-10-13 23:30:29 +02:00
parent ac94bbe575
commit 3f4336697e
2 changed files with 8 additions and 15 deletions

View File

@ -5,16 +5,18 @@
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"
AutomationProperties.Name="{x:Bind Header, Mode=OneTime}"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="400">
<StackPanel Orientation="Vertical">
<ToolTipService.ToolTip>
<ToolTip>
<StackPanel Orientation="Vertical">
<TextBlock x:Uid="ShortcutWarningLabel"/>
<TextBlock Text="{x:Bind Keys, Mode=OneTime}" FontWeight="SemiBold"/>
</StackPanel>
<TextBlock x:Name="ShortcutWarningLabelText">
<Run x:Uid="ShortcutWarningLabel"/>
<LineBreak/>
<Run Text="{x:Bind Keys, Mode=OneTime}" FontWeight="SemiBold"/>
</TextBlock>
</ToolTip>
</ToolTipService.ToolTip>
@ -24,7 +26,7 @@
Foreground="{Binding Path=IsEnabled, ElementName=HotkeyTextBox, Converter={StaticResource ModuleEnabledToForegroundConverter}}"
/>
<TextBlock x:Uid="SettingsPage_SetShortcut_Glyph"
<TextBlock AutomationProperties.LabeledBy="{Binding ElementName=ShortcutWarningLabelText}"
x:Name="TitleGlyph" Text="&#xE946;"
FontFamily="Segoe MDL2 Assets"
Margin="4,4,0,0"

View File

@ -337,7 +337,7 @@
<value>Open zones editor</value>
</data>
<data name="SettingsPage_SetShortcut.AutomationProperties.Name" xml:space="preserve">
<value>Enter shortcut</value>
<value>Set shortcut</value>
</data>
<data name="SettingsPage_SetShortcut_Glyph.AutomationProperties.Name" xml:space="preserve">
<value>Information Symbol</value>
@ -768,13 +768,4 @@
<data name="FileExplorerPreview_RebootRequired.Text" xml:space="preserve">
<value>A reboot may be required for changes to these settings to take effect</value>
</data>
<data name="ColorPicker_ActivationShortcut.AutomationProperties.Name" xml:space="preserve">
<value>Open Color Picker</value>
</data>
<data name="FancyZones_HotkeyEditorControl.AutomationProperties.Name" xml:space="preserve">
<value>Open zones editor</value>
</data>
<data name="PowerLauncher_OpenPowerLauncher.AutomationProperties.Name" xml:space="preserve">
<value>Open PowerToys Run</value>
</data>
</root>