Merge pull request #1535 from onesounds/FixNarrowButton

Change the Add program source window to responsive
This commit is contained in:
VictoriousRaptor 2022-11-15 01:11:23 +08:00 committed by GitHub
commit e825a86be4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}" />
@ -70,8 +71,8 @@
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 />
@ -93,16 +94,17 @@
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"