Refactor MainWindow.xaml to streamline the hotkey button definition by consolidating properties and removing unnecessary elements, improving code clarity.
This commit is contained in:
@@ -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"
|
|
||||||
Text="Alt + F9"
|
|
||||||
FontFamily="Consolas"
|
FontFamily="Consolas"
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
FontWeight="Bold"
|
FontWeight="Bold"
|
||||||
Foreground="#E8FF47"/>
|
Foreground="#E8FF47"
|
||||||
</Button>
|
Content="Alt + F9"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user