Skip to content

Commit bdd5d24

Browse files
committed
Change Label width to responsive
1 parent d573c48 commit bdd5d24

File tree

1 file changed

+69
-51
lines changed

1 file changed

+69
-51
lines changed

Flow.Launcher/CustomQueryHotkeySetting.xaml

Lines changed: 69 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
55
xmlns:flowlauncher="clr-namespace:Flow.Launcher"
66
Title="{DynamicResource customeQueryHotkeyTitle}"
7-
Width="500"
7+
Width="530"
88
Background="{DynamicResource PopuBGColor}"
99
Foreground="{DynamicResource PopupTextColor}"
1010
Icon="Images\app.png"
@@ -79,56 +79,74 @@
7979
</StackPanel>
8080

8181
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
82-
<TextBlock
83-
Grid.Row="0"
84-
Grid.Column="0"
85-
Width="100"
86-
Margin="10"
87-
HorizontalAlignment="Left"
88-
VerticalAlignment="Center"
89-
FontSize="14"
90-
Text="{DynamicResource hotkey}" />
91-
<flowlauncher:HotkeyControl
92-
x:Name="ctlHotkey"
93-
Grid.Column="1"
94-
Width="200"
95-
Height="34"
96-
Margin="10,0,10,0"
97-
HorizontalAlignment="Left"
98-
VerticalAlignment="Center"
99-
HorizontalContentAlignment="Left" />
100-
<TextBlock
101-
Grid.Row="1"
102-
Grid.Column="0"
103-
Margin="10"
104-
HorizontalAlignment="Left"
105-
VerticalAlignment="Center"
106-
FontSize="14"
107-
Text="{DynamicResource actionKeyword}" />
108-
</StackPanel>
109-
110-
<StackPanel Margin="0,0,0,0" Orientation="Horizontal">
111-
<TextBlock
112-
Grid.Row="0"
113-
Grid.Column="0"
114-
Width="100"
115-
Margin="10"
116-
HorizontalAlignment="Left"
117-
VerticalAlignment="Center"
118-
FontSize="14"
119-
Text="{DynamicResource customQuery}" />
120-
<TextBox
121-
x:Name="tbAction"
122-
Width="220"
123-
Margin="10"
124-
HorizontalAlignment="Left"
125-
VerticalAlignment="Center" />
126-
<Button
127-
x:Name="btnTestActionKeyword"
128-
Height="30"
129-
Padding="10,5,10,5"
130-
Click="BtnTestActionKeyword_OnClick"
131-
Content="{DynamicResource preview}" />
82+
<Grid>
83+
<Grid.RowDefinitions>
84+
<RowDefinition />
85+
<RowDefinition />
86+
</Grid.RowDefinitions>
87+
<Grid.ColumnDefinitions>
88+
<ColumnDefinition />
89+
<ColumnDefinition />
90+
</Grid.ColumnDefinitions>
91+
<TextBlock
92+
Grid.Row="0"
93+
Grid.Column="0"
94+
Width="Auto"
95+
MinWidth="110"
96+
Margin="10"
97+
HorizontalAlignment="Left"
98+
VerticalAlignment="Center"
99+
FontSize="14"
100+
Text="{DynamicResource hotkey}" />
101+
<StackPanel
102+
Grid.Row="0"
103+
Grid.Column="1"
104+
Orientation="Horizontal">
105+
<flowlauncher:HotkeyControl
106+
x:Name="ctlHotkey"
107+
Grid.Column="1"
108+
Width="200"
109+
Height="34"
110+
Margin="10,0,10,0"
111+
HorizontalAlignment="Left"
112+
VerticalAlignment="Center"
113+
HorizontalContentAlignment="Left" />
114+
<TextBlock
115+
Grid.Row="1"
116+
Grid.Column="0"
117+
Margin="10"
118+
HorizontalAlignment="Left"
119+
VerticalAlignment="Center"
120+
FontSize="14"
121+
Text="{DynamicResource actionKeyword}" />
122+
</StackPanel>
123+
<TextBlock
124+
Grid.Row="1"
125+
Grid.Column="0"
126+
Width="Auto"
127+
MinWidth="110"
128+
Margin="10"
129+
HorizontalAlignment="Left"
130+
VerticalAlignment="Center"
131+
FontSize="14"
132+
Text="{DynamicResource customQuery}" />
133+
<StackPanel
134+
Grid.Row="1"
135+
Grid.Column="1"
136+
Orientation="Horizontal">
137+
<TextBox
138+
x:Name="tbAction"
139+
MinWidth="220"
140+
Margin="10"
141+
HorizontalAlignment="Left"
142+
VerticalAlignment="Center" />
143+
<Button
144+
x:Name="btnTestActionKeyword"
145+
Padding="10,5,10,5"
146+
Click="BtnTestActionKeyword_OnClick"
147+
Content="{DynamicResource preview}" />
148+
</StackPanel>
149+
</Grid>
132150
</StackPanel>
133151
</StackPanel>
134152
</StackPanel>

0 commit comments

Comments
 (0)