Skip to content

Commit e825a86

Browse files
Merge pull request #1535 from onesounds/FixNarrowButton
Change the Add program source window to responsive
2 parents e2427ce + 396f85f commit e825a86

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

Plugins/Flow.Launcher.Plugin.Program/AddProgramSource.xaml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
77
Title="{DynamicResource flowlauncher_plugin_program_directory}"
8-
Width="530"
8+
Width="Auto"
9+
Height="276"
910
Background="{DynamicResource PopuBGColor}"
1011
Foreground="{DynamicResource PopupTextColor}"
1112
ResizeMode="NoResize"
12-
SizeToContent="Height"
13+
SizeToContent="Width"
1314
WindowStartupLocation="CenterScreen">
1415
<WindowChrome.WindowChrome>
1516
<WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
@@ -69,9 +70,9 @@
6970
TextAlignment="Left"
7071
TextWrapping="WrapWithOverflow" />
7172
</StackPanel>
72-
73-
<StackPanel Margin="0,10,0,0" Orientation="Horizontal">
74-
<Grid Width="470">
73+
74+
<StackPanel Margin="0,10,10,0" Orientation="Horizontal">
75+
<Grid>
7576
<Grid.RowDefinitions>
7677
<RowDefinition />
7778
<RowDefinition />
@@ -88,21 +89,22 @@
8889
VerticalAlignment="Center"
8990
FontSize="14"
9091
Text="{DynamicResource flowlauncher_plugin_program_directory}" />
91-
<DockPanel
92-
Grid.Row="0"
93-
Grid.Column="1"
92+
<DockPanel
93+
Grid.Row="0"
94+
Grid.Column="1"
9495
LastChildFill="True">
9596
<Button
96-
Width="70"
97-
HorizontalAlignment="Right"
97+
MinWidth="70"
98+
HorizontalAlignment="Stretch"
9899
Click="BrowseButton_Click"
99-
DockPanel.Dock="Right"
100-
Content="{DynamicResource flowlauncher_plugin_program_browse}" />
100+
Content="{DynamicResource flowlauncher_plugin_program_browse}"
101+
DockPanel.Dock="Right" />
101102
<TextBox
102103
Name="Directory"
104+
MinWidth="300"
103105
Margin="10"
104-
VerticalAlignment="Center"
105-
HorizontalAlignment="Stretch" />
106+
HorizontalAlignment="Stretch"
107+
VerticalAlignment="Center" />
106108
</DockPanel>
107109
<TextBlock
108110
Grid.Row="1"
@@ -112,7 +114,8 @@
112114
VerticalAlignment="Center"
113115
FontSize="14"
114116
Text="{DynamicResource flowlauncher_plugin_program_enabled}" />
115-
<CheckBox x:Name="Chkbox"
117+
<CheckBox
118+
x:Name="Chkbox"
116119
Grid.Row="1"
117120
Grid.Column="1"
118121
Margin="10,0"

0 commit comments

Comments
 (0)