mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #1535 from onesounds/FixNarrowButton
Change the Add program source window to responsive
This commit is contained in:
commit
e825a86be4
1 changed files with 18 additions and 15 deletions
|
|
@ -5,11 +5,12 @@
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
Title="{DynamicResource flowlauncher_plugin_program_directory}"
|
Title="{DynamicResource flowlauncher_plugin_program_directory}"
|
||||||
Width="530"
|
Width="Auto"
|
||||||
|
Height="276"
|
||||||
Background="{DynamicResource PopuBGColor}"
|
Background="{DynamicResource PopuBGColor}"
|
||||||
Foreground="{DynamicResource PopupTextColor}"
|
Foreground="{DynamicResource PopupTextColor}"
|
||||||
ResizeMode="NoResize"
|
ResizeMode="NoResize"
|
||||||
SizeToContent="Height"
|
SizeToContent="Width"
|
||||||
WindowStartupLocation="CenterScreen">
|
WindowStartupLocation="CenterScreen">
|
||||||
<WindowChrome.WindowChrome>
|
<WindowChrome.WindowChrome>
|
||||||
<WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
|
<WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
|
||||||
|
|
@ -69,9 +70,9 @@
|
||||||
TextAlignment="Left"
|
TextAlignment="Left"
|
||||||
TextWrapping="WrapWithOverflow" />
|
TextWrapping="WrapWithOverflow" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Margin="0,10,0,0" Orientation="Horizontal">
|
<StackPanel Margin="0,10,10,0" Orientation="Horizontal">
|
||||||
<Grid Width="470">
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition />
|
<RowDefinition />
|
||||||
<RowDefinition />
|
<RowDefinition />
|
||||||
|
|
@ -88,21 +89,22 @@
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
Text="{DynamicResource flowlauncher_plugin_program_directory}" />
|
Text="{DynamicResource flowlauncher_plugin_program_directory}" />
|
||||||
<DockPanel
|
<DockPanel
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
LastChildFill="True">
|
LastChildFill="True">
|
||||||
<Button
|
<Button
|
||||||
Width="70"
|
MinWidth="70"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Stretch"
|
||||||
Click="BrowseButton_Click"
|
Click="BrowseButton_Click"
|
||||||
DockPanel.Dock="Right"
|
Content="{DynamicResource flowlauncher_plugin_program_browse}"
|
||||||
Content="{DynamicResource flowlauncher_plugin_program_browse}" />
|
DockPanel.Dock="Right" />
|
||||||
<TextBox
|
<TextBox
|
||||||
Name="Directory"
|
Name="Directory"
|
||||||
|
MinWidth="300"
|
||||||
Margin="10"
|
Margin="10"
|
||||||
VerticalAlignment="Center"
|
HorizontalAlignment="Stretch"
|
||||||
HorizontalAlignment="Stretch" />
|
VerticalAlignment="Center" />
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
|
|
@ -112,7 +114,8 @@
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
Text="{DynamicResource flowlauncher_plugin_program_enabled}" />
|
Text="{DynamicResource flowlauncher_plugin_program_enabled}" />
|
||||||
<CheckBox x:Name="Chkbox"
|
<CheckBox
|
||||||
|
x:Name="Chkbox"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="10,0"
|
Margin="10,0"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue