|
7 | 7 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
8 | 8 | xmlns:ui="clr-namespace:Flow.Launcher.Infrastructure.UI;assembly=Flow.Launcher.Infrastructure"
|
9 | 9 | Title="{DynamicResource flowlauncher_plugin_browserbookmark_bookmarkDataSetting}"
|
10 |
| - Width="520" |
| 10 | + Width="550" |
11 | 11 | Background="{DynamicResource PopuBGColor}"
|
12 | 12 | Foreground="{DynamicResource PopupTextColor}"
|
13 | 13 | KeyDown="WindowKeyDown"
|
|
39 | 39 | </Grid.ColumnDefinitions>
|
40 | 40 | <Button
|
41 | 41 | Grid.Column="4"
|
42 |
| - Click="ConfirmCancelEditCustomBrowser" |
| 42 | + Click="CancelEditCustomBrowser" |
43 | 43 | Style="{StaticResource TitleBarCloseButtonStyle}">
|
44 | 44 | <Path
|
45 | 45 | Width="46"
|
|
71 | 71 | TextAlignment="Left" />
|
72 | 72 | </StackPanel>
|
73 | 73 |
|
74 |
| - <StackPanel Margin="0,10,0,20" Orientation="Horizontal"> |
75 |
| - <Grid Width="444" HorizontalAlignment="Stretch"> |
| 74 | + <StackPanel Margin="0,0,0,20" Orientation="Horizontal"> |
| 75 | + <Grid Width="474" HorizontalAlignment="Stretch"> |
76 | 76 | <Grid.ColumnDefinitions>
|
77 | 77 | <ColumnDefinition Width="Auto" />
|
78 | 78 | <ColumnDefinition Width="*" />
|
|
81 | 81 | <RowDefinition />
|
82 | 82 | <RowDefinition />
|
83 | 83 | <RowDefinition />
|
| 84 | + <RowDefinition /> |
84 | 85 | </Grid.RowDefinitions>
|
85 |
| - <TextBlock |
| 86 | + <StackPanel |
86 | 87 | Grid.Row="0"
|
87 | 88 | Grid.Column="0"
|
| 89 | + Grid.ColumnSpan="2" |
| 90 | + Margin="5,0,0,20"> |
| 91 | + <TextBlock |
| 92 | + Margin="0,0,0,4" |
| 93 | + HorizontalAlignment="Left" |
| 94 | + VerticalAlignment="Center" |
| 95 | + FontSize="14" |
| 96 | + Text="{DynamicResource flowlauncher_plugin_browserbookmark_guideMessage01}" |
| 97 | + TextWrapping="WrapWithOverflow" /> |
| 98 | + <TextBlock |
| 99 | + Margin="0,4,0,4" |
| 100 | + HorizontalAlignment="Left" |
| 101 | + VerticalAlignment="Center" |
| 102 | + FontSize="14" |
| 103 | + Text="{DynamicResource flowlauncher_plugin_browserbookmark_guideMessage02}" |
| 104 | + TextWrapping="WrapWithOverflow" /> |
| 105 | + <TextBlock |
| 106 | + Margin="0,4,0,0" |
| 107 | + HorizontalAlignment="Left" |
| 108 | + VerticalAlignment="Center" |
| 109 | + FontSize="14" |
| 110 | + Text="{DynamicResource flowlauncher_plugin_browserbookmark_guideMessage03}" |
| 111 | + TextWrapping="WrapWithOverflow" /> |
| 112 | + </StackPanel> |
| 113 | + <TextBlock |
| 114 | + Grid.Row="1" |
| 115 | + Grid.Column="0" |
88 | 116 | Margin="5,0,20,0"
|
89 | 117 | HorizontalAlignment="Left"
|
90 | 118 | VerticalAlignment="Center"
|
91 | 119 | FontSize="14"
|
92 | 120 | Text="{DynamicResource flowlauncher_plugin_browserbookmark_browserName}" />
|
93 | 121 | <TextBox
|
94 |
| - Grid.Row="0" |
| 122 | + Grid.Row="1" |
95 | 123 | Grid.Column="1"
|
96 | 124 | Width="120"
|
97 | 125 | Height="34"
|
|
100 | 128 | VerticalAlignment="Center"
|
101 | 129 | Text="{Binding Name}" />
|
102 | 130 | <TextBlock
|
103 |
| - Grid.Row="1" |
| 131 | + Grid.Row="2" |
104 | 132 | Grid.Column="0"
|
105 | 133 | Margin="5,10,20,0"
|
106 | 134 | HorizontalAlignment="Left"
|
107 | 135 | VerticalAlignment="Center"
|
108 | 136 | FontSize="14"
|
109 | 137 | Text="{DynamicResource flowlauncher_plugin_browserbookmark_browserEngine}" />
|
110 | 138 | <ComboBox
|
111 |
| - Grid.Row="1" |
| 139 | + Grid.Row="2" |
112 | 140 | Grid.Column="1"
|
113 | 141 | Width="120"
|
114 | 142 | Height="34"
|
115 | 143 | Margin="5,10,10,0"
|
116 | 144 | HorizontalAlignment="Left"
|
117 | 145 | VerticalAlignment="Center"
|
118 | 146 | ItemsSource="{Binding Source={ui:EnumBindingSource {x:Type local:BrowserType}}}"
|
119 |
| - SelectedItem="{Binding BrowserType}"> |
120 |
| - </ComboBox> |
| 147 | + SelectedItem="{Binding BrowserType}" /> |
121 | 148 | <TextBlock
|
122 |
| - Grid.Row="2" |
| 149 | + Grid.Row="3" |
123 | 150 | Grid.Column="0"
|
124 | 151 | Margin="5,10,20,0"
|
125 | 152 | HorizontalAlignment="Left"
|
126 | 153 | VerticalAlignment="Center"
|
127 | 154 | FontSize="14"
|
128 | 155 | Text="{DynamicResource flowlauncher_plugin_browserbookmark_browserBookmarkDataDirectory}" />
|
129 |
| - <TextBox |
130 |
| - Grid.Row="2" |
| 156 | + <DockPanel |
| 157 | + Grid.Row="3" |
131 | 158 | Grid.Column="1"
|
132 |
| - Height="34" |
133 |
| - Margin="5,10,0,0" |
134 |
| - HorizontalAlignment="Stretch" |
135 |
| - VerticalAlignment="Center" |
136 |
| - Text="{Binding DataDirectoryPath}" /> |
| 159 | + LastChildFill="True"> |
| 160 | + <Button |
| 161 | + Height="34" |
| 162 | + MinWidth="100" |
| 163 | + Margin="5,10,0,0" |
| 164 | + VerticalContentAlignment="Stretch" |
| 165 | + Click="OnSelectPathClick" |
| 166 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_browseBrowserBookmark}" |
| 167 | + DockPanel.Dock="Right" /> |
| 168 | + <TextBox |
| 169 | + Name="PathTextBox" |
| 170 | + Height="34" |
| 171 | + Margin="5,10,0,0" |
| 172 | + HorizontalAlignment="Stretch" |
| 173 | + VerticalAlignment="Center" |
| 174 | + Text="{Binding DataDirectoryPath}" /> |
| 175 | + </DockPanel> |
137 | 176 | </Grid>
|
138 | 177 | </StackPanel>
|
139 | 178 | </StackPanel>
|
|
148 | 187 | x:Name="btnCancel"
|
149 | 188 | MinWidth="145"
|
150 | 189 | Margin="0,0,5,0"
|
151 |
| - Click="ConfirmCancelEditCustomBrowser" |
| 190 | + Click="CancelEditCustomBrowser" |
152 | 191 | Content="{DynamicResource cancel}" />
|
153 | 192 | <Button
|
154 | 193 | Name="btnConfirm"
|
155 | 194 | MinWidth="145"
|
156 | 195 | Margin="5,0,0,0"
|
157 |
| - Click="ConfirmCancelEditCustomBrowser" |
| 196 | + Click="ConfirmEditCustomBrowser" |
158 | 197 | Style="{StaticResource AccentButtonStyle}">
|
159 | 198 | <TextBlock x:Name="lblAdd" Text="{DynamicResource done}" />
|
160 | 199 | </Button>
|
|
0 commit comments