|
1 | 1 | <UserControl
|
2 |
| - x:Class="Flow.Launcher.Plugin.BrowserBookmark.Views.SettingsControl" |
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 |
| - d:DesignHeight="300" |
8 |
| - d:DesignWidth="500" |
9 |
| - DataContext="{Binding RelativeSource={RelativeSource Self}}" |
10 |
| - mc:Ignorable="d"> |
11 |
| - <Grid Margin="10"> |
| 2 | + x:Class="Flow.Launcher.Plugin.BrowserBookmark.Views.SettingsControl" |
| 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 | + d:DesignHeight="300" |
| 8 | + d:DesignWidth="500" |
| 9 | + DataContext="{Binding RelativeSource={RelativeSource Self}}" |
| 10 | + mc:Ignorable="d"> |
| 11 | + <Grid Margin="60,0,10,0"> |
12 | 12 | <Grid.RowDefinitions>
|
13 |
| - <RowDefinition Height="auto" /> |
| 13 | + <RowDefinition Height="auto"/> |
14 | 14 | </Grid.RowDefinitions>
|
15 |
| - <StackPanel Margin="0,0,0,0" Orientation="Vertical"> |
16 |
| - <TextBlock Margin="10" Text="{DynamicResource flowlauncher_plugin_browserbookmark_loadBrowserFrom}" /> |
17 |
| - <ListView |
18 |
| - Name="CustomBrowsers" |
19 |
| - Height="auto" |
20 |
| - Margin="10" |
21 |
| - BorderBrush="DarkGray" |
22 |
| - BorderThickness="1" |
23 |
| - ItemsSource="{Binding Settings.CustomChromiumBrowsers}" |
24 |
| - MouseDoubleClick="MouseDoubleClickOnSelectedCustomBrowser" |
25 |
| - SelectedItem="{Binding SelectedCustomBrowser}" |
26 |
| - Style="{StaticResource {x:Static GridView.GridViewStyleKey}}"> |
27 |
| - <ListView.View> |
28 |
| - <GridView> |
29 |
| - <GridViewColumn DisplayMemberBinding="{Binding Name, Mode=OneWay}" Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserName}" /> |
30 |
| - <GridViewColumn DisplayMemberBinding="{Binding DataDirectoryPath, Mode=OneWay}" Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserBookmarkDataDirectory}" /> |
31 |
| - </GridView> |
32 |
| - </ListView.View> |
33 |
| - </ListView> |
34 |
| - <StackPanel HorizontalAlignment="Right" Orientation="Horizontal"> |
| 15 | + <StackPanel Margin="0,10,0,10" Orientation="Vertical"> |
| 16 | + <StackPanel Orientation="Horizontal"> |
| 17 | + <TextBlock Margin="10" Text="{DynamicResource flowlauncher_plugin_browserbookmark_loadBrowserFrom}"/> |
| 18 | + <CheckBox Margin="0,0,15,0" |
| 19 | + Content="Chrome" |
| 20 | + IsChecked="{Binding Settings.LoadChromeBookmark}"/> |
| 21 | + <CheckBox Margin="0,0,15,0" |
| 22 | + Content="Edge" |
| 23 | + IsChecked="{Binding Settings.LoadEdgeBookmark}"/> |
| 24 | + <CheckBox Margin="0,0,15,0" |
| 25 | + Content="Firefox" |
| 26 | + IsChecked="{Binding Settings.LoadFirefoxBookmark}"/> |
35 | 27 | <Button
|
36 |
| - MinWidth="120" |
37 |
| - Margin="10" |
38 |
| - Click="NewCustomBrowser" |
39 |
| - Content="{DynamicResource flowlauncher_plugin_browserbookmark_addBrowserBookmark}" /> |
40 |
| - <Button |
41 |
| - MinWidth="120" |
42 |
| - Margin="10" |
43 |
| - Click="DeleteCustomBrowser" |
44 |
| - Content="{DynamicResource flowlauncher_plugin_browserbookmark_removeBrowserBookmark}" /> |
| 28 | + Margin="0,0,15,0" |
| 29 | + Click="Others_Click" |
| 30 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_others}"/> |
| 31 | + </StackPanel> |
| 32 | + <StackPanel Name="CustomBrowsersList" Visibility="Collapsed"> |
| 33 | + <ListView |
| 34 | + Name="CustomBrowsers" |
| 35 | + Height="auto" |
| 36 | + Margin="10" |
| 37 | + BorderBrush="DarkGray" |
| 38 | + BorderThickness="1" |
| 39 | + ItemsSource="{Binding Settings.CustomChromiumBrowsers}" |
| 40 | + MouseDoubleClick="MouseDoubleClickOnSelectedCustomBrowser" |
| 41 | + SelectedItem="{Binding SelectedCustomBrowser}" |
| 42 | + Style="{StaticResource {x:Static GridView.GridViewStyleKey}}"> |
| 43 | + <ListView.View> |
| 44 | + <GridView> |
| 45 | + <GridViewColumn DisplayMemberBinding="{Binding Name, Mode=OneWay}" |
| 46 | + Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserName}"/> |
| 47 | + <GridViewColumn DisplayMemberBinding="{Binding DataDirectoryPath, Mode=OneWay}" |
| 48 | + Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserBookmarkDataDirectory}"/> |
| 49 | + </GridView> |
| 50 | + </ListView.View> |
| 51 | + </ListView> |
| 52 | + <StackPanel HorizontalAlignment="Right" Orientation="Horizontal"> |
| 53 | + <Button |
| 54 | + MinWidth="130" |
| 55 | + Margin="10" |
| 56 | + Click="NewCustomBrowser" |
| 57 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_addBrowserBookmark}"/> |
| 58 | + <Button |
| 59 | + MinWidth="120" |
| 60 | + Margin="10" |
| 61 | + Click="DeleteCustomBrowser" |
| 62 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_removeBrowserBookmark}"/> |
| 63 | + </StackPanel> |
45 | 64 | </StackPanel>
|
46 | 65 | </StackPanel>
|
47 | 66 | </Grid>
|
|
0 commit comments