Skip to content

Commit 48ef53f

Browse files
committed
Change CustomQueryHotkeyWindow to Responsive
1 parent d7d567e commit 48ef53f

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

Flow.Launcher/CustomQueryHotkeySetting.xaml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,18 @@
7979
</StackPanel>
8080

8181
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
82-
<Grid>
82+
<Grid Width="470">
8383
<Grid.RowDefinitions>
8484
<RowDefinition />
8585
<RowDefinition />
8686
</Grid.RowDefinitions>
8787
<Grid.ColumnDefinitions>
88-
<ColumnDefinition />
89-
<ColumnDefinition />
88+
<ColumnDefinition Width="Auto" />
89+
<ColumnDefinition Width="*" />
9090
</Grid.ColumnDefinitions>
9191
<TextBlock
9292
Grid.Row="0"
9393
Grid.Column="0"
94-
Width="Auto"
95-
MinWidth="110"
9694
Margin="10"
9795
HorizontalAlignment="Left"
9896
VerticalAlignment="Center"
@@ -106,7 +104,7 @@
106104
x:Name="ctlHotkey"
107105
Grid.Column="1"
108106
Width="200"
109-
Height="34"
107+
Height="36"
110108
Margin="10,0,10,0"
111109
HorizontalAlignment="Left"
112110
VerticalAlignment="Center"
@@ -123,29 +121,27 @@
123121
<TextBlock
124122
Grid.Row="1"
125123
Grid.Column="0"
126-
Width="Auto"
127-
MinWidth="110"
128124
Margin="10"
129125
HorizontalAlignment="Left"
130126
VerticalAlignment="Center"
131127
FontSize="14"
132128
Text="{DynamicResource customQuery}" />
133-
<StackPanel
129+
<DockPanel
134130
Grid.Row="1"
135131
Grid.Column="1"
136-
Orientation="Horizontal">
137-
<TextBox
138-
x:Name="tbAction"
139-
MinWidth="220"
140-
Margin="10"
141-
HorizontalAlignment="Left"
142-
VerticalAlignment="Center" />
132+
LastChildFill="True">
143133
<Button
144134
x:Name="btnTestActionKeyword"
145135
Padding="10,5,10,5"
146136
Click="BtnTestActionKeyword_OnClick"
147-
Content="{DynamicResource preview}" />
148-
</StackPanel>
137+
Content="{DynamicResource preview}"
138+
DockPanel.Dock="Right" />
139+
<TextBox
140+
x:Name="tbAction"
141+
Margin="10"
142+
HorizontalAlignment="Stretch"
143+
VerticalAlignment="Center" />
144+
</DockPanel>
149145
</Grid>
150146
</StackPanel>
151147
</StackPanel>
@@ -159,15 +155,13 @@
159155
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
160156
<Button
161157
x:Name="btnCancel"
162-
Width="100"
163-
Height="32"
158+
MinWidth="140"
164159
Margin="10,0,5,0"
165160
Click="BtnCancel_OnClick"
166161
Content="{DynamicResource cancel}" />
167162
<Button
168163
x:Name="btnAdd"
169-
Width="100"
170-
Height="32"
164+
MinWidth="140"
171165
Margin="5,0,10,0"
172166
Click="btnAdd_OnClick"
173167
Style="{StaticResource AccentButtonStyle}">

0 commit comments

Comments
 (0)