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