|
5 | 5 | Icon="Images\app.png"
|
6 | 6 | ResizeMode="NoResize"
|
7 | 7 | WindowStartupLocation="CenterScreen"
|
8 |
| - Title="{DynamicResource customeQueryHotkeyTitle}" Height="200" Width="674.766"> |
| 8 | + MouseDown="window_MouseDown" |
| 9 | + Title="{DynamicResource customeQueryHotkeyTitle}" Height="345" Width="500" Background="#F3F3F3" BorderBrush="#cecece"> |
9 | 10 | <Window.InputBindings>
|
10 | 11 | <KeyBinding Key="Escape" Command="Close"/>
|
11 | 12 | </Window.InputBindings>
|
|
15 | 16 | <Grid>
|
16 | 17 | <Grid.RowDefinitions>
|
17 | 18 | <RowDefinition />
|
18 |
| - <RowDefinition /> |
19 |
| - <RowDefinition /> |
| 19 | + <RowDefinition Height="80"/> |
20 | 20 | </Grid.RowDefinitions>
|
21 |
| - <Grid.ColumnDefinitions> |
22 |
| - <ColumnDefinition Width="150" /> |
23 |
| - <ColumnDefinition /> |
24 |
| - </Grid.ColumnDefinitions> |
25 |
| - <TextBlock Margin="10" FontSize="14" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" |
26 |
| - HorizontalAlignment="Right" Text="{DynamicResource hotkey}" /> |
27 |
| - <flowlauncher:HotkeyControl x:Name="ctlHotkey" Margin="10,0,10,0" Grid.Column="1" VerticalAlignment="Center" Height="32" /> |
| 21 | + <Border BorderThickness="0 0 0 1" BorderBrush="#e5e5e5" Background="#ffffff" Padding="26 26 26 0"> |
| 22 | + <Grid> |
| 23 | + <StackPanel> |
| 24 | + <StackPanel Grid.Row="0" Margin="0 0 0 12"> |
| 25 | + <TextBlock Grid.Column="0" Text="{DynamicResource customeQueryHotkeyTitle}" FontSize="20" FontWeight="SemiBold" FontFamily="Segoe UI" TextAlignment="Left" |
| 26 | + Margin="0 0 0 0" /> |
| 27 | + </StackPanel> |
| 28 | + <StackPanel> |
| 29 | + <TextBlock |
| 30 | + Text="{DynamicResource customeQueryHotkeyTips}" Foreground="#1b1b1b" FontSize="14" TextWrapping="WrapWithOverflow" TextAlignment="Left"/> |
| 31 | + </StackPanel> |
28 | 32 |
|
29 |
| - <TextBlock Margin="10" FontSize="14" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" |
30 |
| - HorizontalAlignment="Right" Text="{DynamicResource actionKeyword}" /> |
31 |
| - <StackPanel Grid.Row="1" Orientation="Horizontal" Grid.Column="1"> |
32 |
| - <TextBox x:Name="tbAction" Margin="10" Width="400" VerticalAlignment="Center" HorizontalAlignment="Left" /> |
33 |
| - <Button x:Name="btnTestActionKeyword" Padding="10 5 10 5" Height="30" Click="BtnTestActionKeyword_OnClick" |
34 |
| - Content="{DynamicResource preview}" /> |
35 |
| - </StackPanel> |
| 33 | + <StackPanel Orientation="Horizontal" Margin="0 20 0 0"> |
| 34 | + <TextBlock Margin="10" FontSize="14" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" |
| 35 | + HorizontalAlignment="Left" Text="{DynamicResource hotkey}" Width="60"/> |
| 36 | + <flowlauncher:HotkeyControl x:Name="ctlHotkey" Margin="10,0,10,0" Grid.Column="1" VerticalAlignment="Center" Height="32" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Width="200"/> |
| 37 | + <TextBlock Margin="10" FontSize="14" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" |
| 38 | + HorizontalAlignment="Left" Text="{DynamicResource actionKeyword}" /> |
| 39 | + </StackPanel> |
36 | 40 |
|
37 |
| - <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1"> |
38 |
| - <Button x:Name="btnCancel" Click="BtnCancel_OnClick" Margin="10 0 10 0" Width="80" Height="32" |
| 41 | + <StackPanel Orientation="Horizontal" Margin="0 0 0 0"> |
| 42 | + <TextBlock Margin="10" FontSize="14" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Width="60" |
| 43 | + HorizontalAlignment="Left" Text="{DynamicResource customQuery}" /> |
| 44 | + <TextBox x:Name="tbAction" Margin="10" Width="250" VerticalAlignment="Center" HorizontalAlignment="Left" /> |
| 45 | + <Button x:Name="btnTestActionKeyword" Padding="10 5 10 5" Height="30" Click="BtnTestActionKeyword_OnClick" |
| 46 | + Content="{DynamicResource preview}" /> |
| 47 | + </StackPanel> |
| 48 | + </StackPanel> |
| 49 | + </Grid> |
| 50 | + </Border> |
| 51 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1"> |
| 52 | + <Button x:Name="btnCancel" Click="BtnCancel_OnClick" Margin="10 0 5 0" Width="100" Height="32" |
39 | 53 | Content="{DynamicResource cancel}" />
|
40 |
| - <Button x:Name="btnAdd" Margin="10 0 10 0" Width="80" Height="32" Click="btnAdd_OnClick"> |
| 54 | + <Button x:Name="btnAdd" Margin="5 0 10 0" Width="100" Height="32" Click="btnAdd_OnClick"> |
41 | 55 | <TextBlock x:Name="lblAdd" Text="{DynamicResource done}" />
|
42 | 56 | </Button>
|
43 | 57 | </StackPanel>
|
|
0 commit comments