feat: enhance hyperlink accessibility and automation properties in UI components (#825)

This commit is contained in:
Jeffrey
2026-10-14 00:03:58 +02:00
committed by GitHub
parent 1a2ffc70f8
commit 9361d7e65d
6 changed files with 88 additions and 18 deletions
+13 -8
View File
@@ -68,12 +68,14 @@
Text="%LANG:AboutProjectLabel%"
Style="{DynamicResource ModalInfoLabelTextStyle}"
Margin="0,0,16,0"/>
<TextBlock x:Name="ProjectLink"
<TextBlock
Grid.Row="2" Grid.Column="1"
Text="https://github.com/Raphire/Win11Debloat"
FontSize="13"
Style="{DynamicResource HyperlinkStyle}"
Margin="0,0,0,0"/>
Margin="0,0,0,0">
<Hyperlink x:Name="ProjectLink"
Style="{DynamicResource InlineHyperlinkStyle}"
AutomationProperties.Name="https://github.com/Raphire/Win11Debloat">https://github.com/Raphire/Win11Debloat</Hyperlink>
</TextBlock>
</Grid>
<!-- Separator -->
@@ -110,14 +112,16 @@
Foreground="{DynamicResource TitleBarCloseHoverColor}"
Margin="0,0,8,0"/>
<TextBlock x:Name="KofiLink"
<TextBlock
Grid.Column="1"
FontSize="16"
Style="{DynamicResource HyperlinkStyle}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontWeight="SemiBold"
Text="%LANG:AboutKofiLink%"/>
FontWeight="SemiBold">
<Hyperlink x:Name="KofiLink"
Style="{DynamicResource InlineHyperlinkStyle}"
AutomationProperties.Name="%LANG:AboutKofiLink%">%LANG:AboutKofiLink%</Hyperlink>
</TextBlock>
</Grid>
</StackPanel>
</Grid>
@@ -133,6 +137,7 @@
<Button x:Name="CloseButton"
Grid.Column="1"
Content="%LANG:TitleBarClose%"
AutomationProperties.Name="%LANG:TitleBarClose%"
Style="{DynamicResource ModalSecondaryStretchedButtonStyle}"/>
</Grid>
</Border>