|
1 |
| -<Window x:Class="Flow.Launcher.Plugin.Program.AddProgramSource" |
2 |
| - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 |
| - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 |
| - mc:Ignorable="d" |
7 |
| - Width="400" |
8 |
| - Height="130" |
9 |
| - WindowStartupLocation="CenterScreen"> |
| 1 | +<Window |
| 2 | + x:Class="Flow.Launcher.Plugin.Program.AddProgramSource" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 7 | + Title="{DynamicResource flowlauncher_plugin_program_directory}" |
| 8 | + Width="400" |
| 9 | + Background="{DynamicResource PopuBGColor}" |
| 10 | + Foreground="{DynamicResource PopupTextColor}" |
| 11 | + SizeToContent="Height" |
| 12 | + WindowStartupLocation="CenterScreen" |
| 13 | + mc:Ignorable="d"> |
| 14 | + <WindowChrome.WindowChrome> |
| 15 | + <WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" /> |
| 16 | + </WindowChrome.WindowChrome> |
| 17 | + <Grid> |
| 18 | + <Grid.RowDefinitions> |
| 19 | + <RowDefinition /> |
| 20 | + <RowDefinition Height="80" /> |
| 21 | + </Grid.RowDefinitions> |
| 22 | + |
| 23 | + <StackPanel Grid.Row="0"> |
| 24 | + <StackPanel> |
| 25 | + <Grid> |
| 26 | + <Grid.ColumnDefinitions> |
| 27 | + <ColumnDefinition Width="Auto" /> |
| 28 | + <ColumnDefinition Width="*" /> |
| 29 | + <ColumnDefinition Width="Auto" /> |
| 30 | + <ColumnDefinition Width="Auto" /> |
| 31 | + <ColumnDefinition Width="Auto" /> |
| 32 | + </Grid.ColumnDefinitions> |
| 33 | + <Button |
| 34 | + Grid.Column="4" |
| 35 | + Click="BtnCancel_OnClick" |
| 36 | + Style="{StaticResource TitleBarCloseButtonStyle}"> |
| 37 | + <Path |
| 38 | + Width="46" |
| 39 | + Height="32" |
| 40 | + Data="M 18,11 27,20 M 18,20 27,11" |
| 41 | + Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" |
| 42 | + StrokeThickness="1"> |
| 43 | + <Path.Style> |
| 44 | + <Style TargetType="Path"> |
| 45 | + <Style.Triggers> |
| 46 | + <DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False"> |
| 47 | + <Setter Property="Opacity" Value="0.5" /> |
| 48 | + </DataTrigger> |
| 49 | + </Style.Triggers> |
| 50 | + </Style> |
| 51 | + </Path.Style> |
| 52 | + </Path> |
| 53 | + </Button> |
| 54 | + </Grid> |
| 55 | + </StackPanel> |
| 56 | + <StackPanel Margin="26,12,26,0"> |
| 57 | + <StackPanel Margin="0,0,0,12"> |
| 58 | + <TextBlock |
| 59 | + Grid.Column="0" |
| 60 | + Margin="0,0,0,0" |
| 61 | + FontFamily="Segoe UI" |
| 62 | + FontSize="20" |
| 63 | + FontWeight="SemiBold" |
| 64 | + Text="{DynamicResource flowlauncher_plugin_program_directory}" |
| 65 | + TextAlignment="Left" /> |
| 66 | + </StackPanel> |
| 67 | + <StackPanel Margin="0,0,0,10" Orientation="Horizontal"> |
| 68 | + <TextBox |
| 69 | + Name="Directory" |
| 70 | + Width="268" |
| 71 | + Margin="0,7" |
| 72 | + VerticalAlignment="Center" /> |
| 73 | + <Button |
| 74 | + Width="70" |
| 75 | + Margin="10" |
| 76 | + HorizontalAlignment="Right" |
| 77 | + Click="BrowseButton_Click" |
| 78 | + Content="{DynamicResource flowlauncher_plugin_program_browse}" /> |
| 79 | + </StackPanel> |
| 80 | + </StackPanel> |
| 81 | + </StackPanel> |
| 82 | + <Border |
| 83 | + Grid.Row="1" |
| 84 | + Background="{DynamicResource PopupButtonAreaBGColor}" |
| 85 | + BorderBrush="{DynamicResource PopupButtonAreaBorderColor}" |
| 86 | + BorderThickness="0,1,0,0"> |
| 87 | + <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"> |
| 88 | + <Button |
| 89 | + x:Name="btnCancel" |
| 90 | + Width="100" |
| 91 | + Margin="0,0,5,0" |
| 92 | + Click="BtnCancel_OnClick" |
| 93 | + Content="{DynamicResource cancel}" /> |
| 94 | + |
| 95 | + <Button |
| 96 | + Width="100" |
| 97 | + Margin="10" |
| 98 | + HorizontalAlignment="Right" |
| 99 | + Click="ButtonAdd_OnClick" |
| 100 | + Content="{DynamicResource flowlauncher_plugin_program_update}" /> |
| 101 | + </StackPanel> |
| 102 | + </Border> |
| 103 | + </Grid> |
| 104 | + <!-- |
10 | 105 | <StackPanel Orientation="Vertical">
|
11 | 106 | <StackPanel Orientation="Horizontal">
|
12 |
| - <Label Content="{DynamicResource flowlauncher_plugin_program_directory}" Margin="15,10"/> |
13 |
| - <TextBox Name="Directory" VerticalAlignment="Center" Width="278" Margin="10,7" /> |
| 107 | + <Label Margin="15,10" Content="{DynamicResource flowlauncher_plugin_program_directory}" /> |
| 108 | + <TextBox |
| 109 | + Name="Directory" |
| 110 | + Width="278" |
| 111 | + Margin="10,7" |
| 112 | + VerticalAlignment="Center" /> |
14 | 113 | </StackPanel>
|
15 |
| - <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> |
16 |
| - <Button Click="BrowseButton_Click" Content="{DynamicResource flowlauncher_plugin_program_browse}" |
17 |
| - HorizontalAlignment="Right" Margin="10" Height="31" Width="70" /> |
18 |
| - <Button Click="ButtonAdd_OnClick" Content="{DynamicResource flowlauncher_plugin_program_update}" |
19 |
| - HorizontalAlignment="Right" Margin="10" Height="31" Width="70" /> |
| 114 | + <StackPanel HorizontalAlignment="Right" Orientation="Horizontal"> |
| 115 | + <Button |
| 116 | + Width="70" |
| 117 | + Height="31" |
| 118 | + Margin="10" |
| 119 | + HorizontalAlignment="Right" |
| 120 | + Click="BrowseButton_Click" |
| 121 | + Content="{DynamicResource flowlauncher_plugin_program_browse}" /> |
| 122 | + <Button |
| 123 | + Width="70" |
| 124 | + Height="31" |
| 125 | + Margin="10" |
| 126 | + HorizontalAlignment="Right" |
| 127 | + Click="ButtonAdd_OnClick" |
| 128 | + Content="{DynamicResource flowlauncher_plugin_program_update}" /> |
20 | 129 | </StackPanel>
|
21 | 130 | </StackPanel>
|
| 131 | + --> |
22 | 132 | </Window>
|
0 commit comments