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