057fb35d00
快捷键设置UI改进
71 lines
2.8 KiB
XML
71 lines
2.8 KiB
XML
<UserControl x:Class="Ink_Canvas.Windows.HotkeyItem"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="60"
|
|
d:DesignWidth="600">
|
|
|
|
<Border Background="#2d2d30"
|
|
BorderBrush="#3f3f46"
|
|
BorderThickness="1"
|
|
CornerRadius="6"
|
|
Margin="0,2"
|
|
SnapsToDevicePixels="True">
|
|
<Grid Margin="14,10">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ikw:SimpleStackPanel Grid.Column="0" VerticalAlignment="Center">
|
|
<TextBlock x:Name="TitleTextBlock"
|
|
Text="快捷键标题"
|
|
FontSize="14"
|
|
FontWeight="SemiBold"
|
|
Foreground="#fafafa" />
|
|
<TextBlock x:Name="DescriptionTextBlock"
|
|
Text="快捷键描述"
|
|
FontSize="12"
|
|
Foreground="#a1a1aa"
|
|
Margin="0,2,0,0"
|
|
TextWrapping="Wrap" />
|
|
</ikw:SimpleStackPanel>
|
|
|
|
<Border Grid.Column="1"
|
|
Background="#3f3f46"
|
|
BorderBrush="#71717a"
|
|
BorderThickness="1"
|
|
CornerRadius="4"
|
|
Margin="10,0,0,0"
|
|
Padding="10,6"
|
|
VerticalAlignment="Center">
|
|
<TextBlock x:Name="CurrentHotkeyTextBlock"
|
|
Text="未设置"
|
|
FontSize="12"
|
|
FontFamily="Consolas"
|
|
FontWeight="SemiBold"
|
|
Foreground="#fafafa"
|
|
MinWidth="88"
|
|
TextAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Border>
|
|
|
|
<Button x:Name="BtnSetHotkey"
|
|
Grid.Column="2"
|
|
Content="设置"
|
|
Width="72"
|
|
Height="30"
|
|
FontSize="12"
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Style="{DynamicResource PrimaryButtonStyle}"
|
|
Padding="12,4"
|
|
Click="BtnSetHotkey_Click" />
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|