|
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
4 | 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
| 5 | + xmlns:local="clr-namespace:Flow.Launcher" |
5 | 6 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
6 | 7 | xmlns:ui="http://schemas.modernwpf.com/2019"
|
7 |
| - xmlns:local="clr-namespace:Flow.Launcher" |
8 |
| - mc:Ignorable="d" |
| 8 | + Title="{DynamicResource fileManagerWindow}" |
| 9 | + Width="500" |
| 10 | + Height="420" |
| 11 | + Background="#f3f3f3" |
| 12 | + DataContext="{Binding RelativeSource={RelativeSource Self}}" |
| 13 | + ResizeMode="NoResize" |
9 | 14 | WindowStartupLocation="CenterScreen"
|
10 |
| - Title="{DynamicResource fileManagerWindow}" Height="420" Width="500" ResizeMode="NoResize" Background="#f3f3f3"> |
| 15 | + mc:Ignorable="d"> |
11 | 16 | <Grid>
|
12 | 17 | <Grid.RowDefinitions>
|
13 | 18 | <RowDefinition />
|
14 |
| - <RowDefinition Height="80"/> |
| 19 | + <RowDefinition Height="80" /> |
15 | 20 | </Grid.RowDefinitions>
|
16 |
| - <Border BorderThickness="0 0 0 1" BorderBrush="#e5e5e5" Background="#ffffff" Padding="26 26 26 0"> |
| 21 | + <Border Padding="26,26,26,0" |
| 22 | + Background="#ffffff" |
| 23 | + BorderBrush="#e5e5e5" |
| 24 | + BorderThickness="0,0,0,1"> |
17 | 25 | <Grid>
|
18 | 26 | <StackPanel>
|
19 |
| - <StackPanel Grid.Row="0" Margin="0 0 0 12"> |
20 |
| - <TextBlock Grid.Column="0" Text="{DynamicResource fileManagerWindow}" FontSize="20" FontWeight="SemiBold" FontFamily="Segoe UI" TextAlignment="Left" |
21 |
| - Margin="0 0 0 0" /> |
| 27 | + <StackPanel Grid.Row="0" Margin="0,0,0,12"> |
| 28 | + <TextBlock Grid.Column="0" |
| 29 | + Margin="0,0,0,0" |
| 30 | + FontFamily="Segoe UI" |
| 31 | + FontSize="20" |
| 32 | + FontWeight="SemiBold" |
| 33 | + Text="{DynamicResource fileManagerWindow}" |
| 34 | + TextAlignment="Left" /> |
22 | 35 | </StackPanel>
|
23 | 36 | <StackPanel>
|
24 |
| - <TextBlock |
25 |
| - Text="{DynamicResource fileManager_tips}" Foreground="#1b1b1b" FontSize="14" TextWrapping="WrapWithOverflow" TextAlignment="Left"/> |
| 37 | + <TextBlock FontSize="14" |
| 38 | + Foreground="#1b1b1b" |
| 39 | + Text="{DynamicResource fileManager_tips}" |
| 40 | + TextAlignment="Left" |
| 41 | + TextWrapping="WrapWithOverflow" /> |
26 | 42 | </StackPanel>
|
27 | 43 |
|
28 |
| - <StackPanel Orientation="Horizontal" Margin="14 28 0 0"> |
29 |
| - <TextBlock FontSize="14" Grid.Column="1" VerticalAlignment="Center" |
30 |
| - HorizontalAlignment="Left" Text="{DynamicResource fileManager_name}" /> |
31 |
| - <ComboBox Height="35" SelectedIndex="0" HorizontalAlignment="Left" Margin="14 0 0 0" Name="comboBox" VerticalAlignment="Center" Width="200"> |
32 |
| - <ComboBoxItem Content="Explorer (Default)" /> |
33 |
| - <ComboBoxItem Content="Custom" /> |
34 |
| - <ComboBoxItem Content="Files" /> |
35 |
| - <ComboBoxItem Content="Directory Opus" /> |
36 |
| - <ComboBoxItem Content="Total Commander" /> |
| 44 | + <StackPanel Margin="14,28,0,0" Orientation="Horizontal"> |
| 45 | + <TextBlock Grid.Column="1" |
| 46 | + HorizontalAlignment="Left" |
| 47 | + VerticalAlignment="Center" |
| 48 | + FontSize="14" |
| 49 | + Text="{DynamicResource fileManager_name}" /> |
| 50 | + <ComboBox Name="comboBox" |
| 51 | + Width="200" |
| 52 | + Height="35" |
| 53 | + Margin="14,0,0,0" |
| 54 | + HorizontalAlignment="Left" |
| 55 | + VerticalAlignment="Center" |
| 56 | + ItemsSource="{Binding Settings.CustomExplorerList}" |
| 57 | + SelectedIndex="0" |
| 58 | + SelectedItem="{Binding Settings.CustomExplorer}"> |
| 59 | + <ComboBox.ItemTemplate> |
| 60 | + <DataTemplate> |
| 61 | + <TextBlock Text="{Binding Name}" /> |
| 62 | + </DataTemplate> |
| 63 | + </ComboBox.ItemTemplate> |
37 | 64 | </ComboBox>
|
38 | 65 | </StackPanel>
|
39 |
| - <Rectangle Margin="0 20 0 12" Height="1" Fill="#cecece"></Rectangle> |
40 |
| - <StackPanel Orientation="Horizontal" Margin="0 0 0 0" HorizontalAlignment="Stretch"> |
| 66 | + <Rectangle Height="1" Margin="0,20,0,12" Fill="#cecece" /> |
| 67 | + <StackPanel Margin="0,0,0,0" |
| 68 | + HorizontalAlignment="Stretch" |
| 69 | + DataContext="{Binding Settings.CustomExplorer}" |
| 70 | + Orientation="Horizontal"> |
41 | 71 | <Grid Width="430">
|
42 | 72 | <Grid.ColumnDefinitions>
|
43 |
| - <ColumnDefinition Width="100"/> |
| 73 | + <ColumnDefinition Width="100" /> |
44 | 74 | <ColumnDefinition />
|
45 | 75 | </Grid.ColumnDefinitions>
|
46 | 76 | <Grid.RowDefinitions>
|
47 |
| - <RowDefinition Height="50"/> |
| 77 | + <RowDefinition Height="50" /> |
48 | 78 | <RowDefinition />
|
49 | 79 | </Grid.RowDefinitions>
|
50 |
| - <TextBlock FontSize="14" VerticalAlignment="Center" Grid.Column="0" Grid.Row="0" |
51 |
| - HorizontalAlignment="Left" Text="{DynamicResource fileManager_path}" Margin="14 0 0 0"/> |
52 |
| - <TextBox Margin="10 0 15 0" Width="Auto" VerticalAlignment="Center" HorizontalAlignment="Stretch" Grid.Column="1" Grid.Row="0"> |
| 80 | + <TextBlock Grid.Row="0" |
| 81 | + Grid.Column="0" |
| 82 | + Margin="14,0,0,0" |
| 83 | + HorizontalAlignment="Left" |
| 84 | + VerticalAlignment="Center" |
| 85 | + FontSize="14" |
| 86 | + Text="{DynamicResource fileManager_path}" /> |
| 87 | + <TextBox Grid.Row="0" |
| 88 | + Grid.Column="1" |
| 89 | + Width="Auto" |
| 90 | + Margin="10,0,15,0" |
| 91 | + HorizontalAlignment="Stretch" |
| 92 | + VerticalAlignment="Center" |
| 93 | + IsEnabled="{Binding Editable}" |
| 94 | + Text="{Binding Path}"> |
53 | 95 | <TextBox.Style>
|
54 | 96 | <Style TargetType="TextBox">
|
55 |
| - <Setter Property="Background" Value="#ffffff"/> |
56 |
| - <Setter Property="Height" Value="34"/> |
57 |
| - <Setter Property="FontSize" Value="14"/> |
58 |
| - <Setter Property="Padding" Value="6 6 0 0"/> |
59 |
| - <Setter Property="VerticalAlignment" Value="Center"/> |
60 |
| - |
61 |
| - <Setter Property="BorderBrush" Value="#000000"/> |
62 |
| - <Style.Triggers> |
63 |
| - <DataTrigger Binding="{Binding Path=SelectedIndex, ElementName=comboBox}" Value="0"> |
64 |
| - <Setter Property="IsEnabled" Value="False"/> |
65 |
| - <Setter Property="Text" Value=""/> |
66 |
| - <Setter Property="Background" Value="#cecece"/> |
67 |
| - </DataTrigger> |
68 |
| - <DataTrigger Binding="{Binding Path=SelectedIndex, ElementName=comboBox}" Value="2"> |
69 |
| - <Setter Property="Text" Value="Files"/> |
70 |
| - |
71 |
| - </DataTrigger> |
72 |
| - <DataTrigger Binding="{Binding Path=SelectedIndex, ElementName=comboBox}" Value="3"> |
73 |
| - <Setter Property="Text" Value="c:\programe files\dopus\dopus.exe"/> |
74 |
| - </DataTrigger> |
75 |
| - <DataTrigger Binding="{Binding Path=SelectedIndex, ElementName=comboBox}" Value="4"> |
76 |
| - <Setter Property="Text" Value="C:\Program Files\TOTALCMD\totalcommander.exe"/> |
77 |
| - </DataTrigger> |
78 |
| - </Style.Triggers> |
| 97 | + <Setter Property="Background" Value="#ffffff" /> |
| 98 | + <Setter Property="Height" Value="34" /> |
| 99 | + <Setter Property="FontSize" Value="14" /> |
| 100 | + <Setter Property="Padding" Value="6,6,0,0" /> |
| 101 | + <Setter Property="VerticalAlignment" Value="Center" /> |
| 102 | + <Setter Property="BorderBrush" Value="#000000" /> |
79 | 103 | </Style>
|
80 | 104 | </TextBox.Style>
|
81 |
| - |
82 | 105 | </TextBox>
|
83 |
| - |
84 |
| - |
85 |
| - |
86 |
| - <TextBlock FontSize="14" VerticalAlignment="Center" Margin="14 0 0 0" |
87 |
| - HorizontalAlignment="Left" Text="{DynamicResource fileManager_arg}" Grid.Column="0" Grid.Row="1"/> |
88 |
| - <TextBox Margin="10 0 15 0" Width="Auto" VerticalAlignment="Center" HorizontalAlignment="Stretch" Grid.Column="1" Grid.Row="1" > |
| 106 | + <TextBlock Grid.Row="1" |
| 107 | + Grid.Column="0" |
| 108 | + Margin="14,0,0,0" |
| 109 | + HorizontalAlignment="Left" |
| 110 | + VerticalAlignment="Center" |
| 111 | + FontSize="14" |
| 112 | + Text="{DynamicResource fileManager_directory_arg}" /> |
| 113 | + <TextBox Grid.Row="1" |
| 114 | + Grid.Column="1" |
| 115 | + Width="Auto" |
| 116 | + Margin="10,0,15,0" |
| 117 | + HorizontalAlignment="Stretch" |
| 118 | + VerticalAlignment="Center" |
| 119 | + Text="{Binding DirectoryArgument}"> |
89 | 120 | <TextBox.Style>
|
90 | 121 | <Style TargetType="TextBox">
|
91 |
| - <Setter Property="Background" Value="#ffffff"/> |
92 |
| - <Setter Property="Height" Value="34"/> |
93 |
| - <Setter Property="FontSize" Value="14"/> |
94 |
| - <Setter Property="Padding" Value="6 6 0 0"/> |
95 |
| - <Setter Property="VerticalAlignment" Value="Center"/> |
96 |
| - |
97 |
| - <Setter Property="BorderBrush" Value="#000000"/> |
98 |
| - <Style.Triggers> |
99 |
| - <DataTrigger Binding="{Binding Path=SelectedIndex, ElementName=comboBox}" Value="0"> |
100 |
| - <Setter Property="IsEnabled" Value="False"/> |
101 |
| - <Setter Property="Text" Value=""/> |
102 |
| - <Setter Property="Background" Value="#cecece"/> |
103 |
| - </DataTrigger> |
104 |
| - <DataTrigger Binding="{Binding Path=SelectedIndex, ElementName=comboBox}" Value="2"> |
105 |
| - <Setter Property="Text" Value=""/> |
106 |
| - </DataTrigger> |
107 |
| - <DataTrigger Binding="{Binding Path=SelectedIndex, ElementName=comboBox}" Value="3"> |
108 |
| - <Setter Property="Text" Value=""/> |
109 |
| - </DataTrigger> |
110 |
| - </Style.Triggers> |
| 122 | + <Setter Property="Background" Value="#ffffff" /> |
| 123 | + <Setter Property="Height" Value="34" /> |
| 124 | + <Setter Property="FontSize" Value="14" /> |
| 125 | + <Setter Property="Padding" Value="6,6,0,0" /> |
| 126 | + <Setter Property="VerticalAlignment" Value="Center" /> |
| 127 | + <Setter Property="BorderBrush" Value="#000000" /> |
| 128 | + </Style> |
| 129 | + </TextBox.Style> |
| 130 | + </TextBox> |
| 131 | + <TextBlock Grid.Row="1" |
| 132 | + Grid.Column="0" |
| 133 | + Margin="14,0,0,0" |
| 134 | + HorizontalAlignment="Left" |
| 135 | + VerticalAlignment="Center" |
| 136 | + FontSize="14" |
| 137 | + Text="{DynamicResource fileManager_directory_arg}" /> |
| 138 | + <TextBox Grid.Row="1" |
| 139 | + Grid.Column="1" |
| 140 | + Width="Auto" |
| 141 | + Margin="10,0,15,0" |
| 142 | + HorizontalAlignment="Stretch" |
| 143 | + VerticalAlignment="Center" |
| 144 | + Text="{Binding FileArgument}"> |
| 145 | + <TextBox.Style> |
| 146 | + <Style TargetType="TextBox"> |
| 147 | + <Setter Property="Background" Value="#ffffff" /> |
| 148 | + <Setter Property="Height" Value="34" /> |
| 149 | + <Setter Property="FontSize" Value="14" /> |
| 150 | + <Setter Property="Padding" Value="6,6,0,0" /> |
| 151 | + <Setter Property="VerticalAlignment" Value="Center" /> |
| 152 | + <Setter Property="BorderBrush" Value="#000000" /> |
111 | 153 | </Style>
|
112 | 154 | </TextBox.Style>
|
113 | 155 | </TextBox>
|
|
116 | 158 | </StackPanel>
|
117 | 159 | </Grid>
|
118 | 160 | </Border>
|
119 |
| - <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1"> |
120 |
| - <Button x:Name="btnCancel" Margin="0 0 5 0" Width="100" Height="30" |
| 161 | + <StackPanel Grid.Row="1" HorizontalAlignment="Center" Orientation="Horizontal"> |
| 162 | + <Button x:Name="btnCancel" |
| 163 | + Width="100" |
| 164 | + Height="30" |
| 165 | + Margin="0,0,5,0" |
121 | 166 | Content="{DynamicResource cancel}" />
|
122 |
| - <Button x:Name="btnDone" Margin="5 0 0 0" Width="100" Height="30"> |
| 167 | + <Button x:Name="btnDone" |
| 168 | + Width="100" |
| 169 | + Height="30" |
| 170 | + Margin="5,0,0,0"> |
123 | 171 | <TextBlock x:Name="lblAdd" Text="{DynamicResource done}" />
|
124 | 172 | </Button>
|
125 | 173 | </StackPanel>
|
|
0 commit comments