Refactor MainWindow.xaml to streamline the hotkey button definition by consolidating properties and removing unnecessary elements, improving code clarity.

This commit is contained in:
2026-02-22 12:21:27 -05:00
parent 4902802615
commit 9b73bdbb24

View File

@@ -13,7 +13,7 @@
<MicaBackdrop />
</Window.SystemBackdrop>
<Grid x:Name="RootGrid" Focusable="True" TabIndex="0">
<Grid x:Name="RootGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="*"/>
@@ -381,14 +381,12 @@
BorderThickness="0"
CornerRadius="6"
Padding="16,10"
MinWidth="140">
<TextBlock x:Name="HotkeyRecorderText"
Text="Alt + F9"
FontFamily="Consolas"
FontSize="14"
FontWeight="Bold"
Foreground="#E8FF47"/>
</Button>
MinWidth="140"
FontFamily="Consolas"
FontSize="14"
FontWeight="Bold"
Foreground="#E8FF47"
Content="Alt + F9"/>
</StackPanel>
</Border>