|
1 |
| -<UserControl x:Class="Flow.Launcher.Plugin.BrowserBookmark.Views.SettingsControl" |
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 |
| - Background="White" |
8 |
| - d:DesignHeight="300" d:DesignWidth="500" |
9 |
| - DataContext="{Binding RelativeSource={RelativeSource Self}}"> |
| 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"> |
10 | 11 | <Grid Margin="10">
|
11 | 12 | <Grid.RowDefinitions>
|
12 | 13 | <RowDefinition Height="50" />
|
13 |
| - <RowDefinition Height="80"/> |
14 |
| - <RowDefinition Height="auto"/> |
| 14 | + <RowDefinition Height="80" /> |
| 15 | + <RowDefinition Height="auto" /> |
15 | 16 | </Grid.RowDefinitions>
|
16 | 17 | <StackPanel>
|
17 |
| - <Grid Grid.Row="0" Margin="30 20 0 0"> |
| 18 | + <Grid Grid.Row="0" Margin="30,20,0,0"> |
18 | 19 | <Grid.ColumnDefinitions>
|
19 | 20 | <ColumnDefinition Width="160" />
|
20 |
| - <ColumnDefinition Width="140"/> |
21 |
| - <ColumnDefinition Width="100"/> |
| 21 | + <ColumnDefinition Width="140" /> |
| 22 | + <ColumnDefinition Width="100" /> |
22 | 23 | </Grid.ColumnDefinitions>
|
23 |
| - <Label Grid.Column="0" Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_openBookmarks}" |
24 |
| - FontSize="15" Margin="10 5 0 0"/> |
25 |
| - <RadioButton Grid.Column="1" Name="NewWindowBrowser" |
26 |
| - IsChecked="{Binding OpenInNewBrowserWindow}" |
27 |
| - Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_newWindow}"/> |
28 |
| - <RadioButton Grid.Column="2" Name="NewTabInBrowser" |
29 |
| - IsChecked="{Binding OpenInNewTab, Mode=OneTime}" |
30 |
| - Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_newTab}"/> |
| 24 | + <Label |
| 25 | + Grid.Column="0" |
| 26 | + Margin="10,5,0,0" |
| 27 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_openBookmarks}" |
| 28 | + FontSize="15" /> |
| 29 | + <RadioButton |
| 30 | + Name="NewWindowBrowser" |
| 31 | + Grid.Column="1" |
| 32 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_newWindow}" |
| 33 | + IsChecked="{Binding OpenInNewBrowserWindow}" /> |
| 34 | + <RadioButton |
| 35 | + Name="NewTabInBrowser" |
| 36 | + Grid.Column="2" |
| 37 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_newTab}" |
| 38 | + IsChecked="{Binding OpenInNewTab, Mode=OneTime}" /> |
31 | 39 | </Grid>
|
32 | 40 | </StackPanel>
|
33 |
| - <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Grid.Row="1" Height="60" Margin="30,20,0,0"> |
34 |
| - <Label Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_setBrowserFromPath}" |
35 |
| - Height="28" Margin="10"/> |
36 |
| - <TextBox x:Name="BrowserPathBox" |
37 |
| - HorizontalAlignment="Left" |
38 |
| - Height="30" |
39 |
| - TextWrapping="NoWrap" |
40 |
| - VerticalAlignment="Center" |
41 |
| - Text="{Binding Settings.BrowserPath}" |
42 |
| - Width="240" |
43 |
| - Margin="10"/> |
44 |
| - <Button x:Name="ViewButton" Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_choose}" |
45 |
| - HorizontalAlignment="Left" Margin="10" Width="100" Height="30" Click="OnChooseClick" FontSize="14" /> |
| 41 | + <StackPanel |
| 42 | + Grid.Row="1" |
| 43 | + Height="60" |
| 44 | + Margin="30,20,0,0" |
| 45 | + VerticalAlignment="Top" |
| 46 | + Orientation="Horizontal"> |
| 47 | + <Label |
| 48 | + Height="28" |
| 49 | + Margin="10" |
| 50 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_setBrowserFromPath}" /> |
| 51 | + <TextBox |
| 52 | + x:Name="BrowserPathBox" |
| 53 | + Width="240" |
| 54 | + Height="30" |
| 55 | + Margin="10" |
| 56 | + HorizontalAlignment="Left" |
| 57 | + VerticalAlignment="Center" |
| 58 | + Text="{Binding Settings.BrowserPath}" |
| 59 | + TextWrapping="NoWrap" /> |
| 60 | + <Button |
| 61 | + x:Name="ViewButton" |
| 62 | + Width="100" |
| 63 | + Height="30" |
| 64 | + Margin="10" |
| 65 | + HorizontalAlignment="Left" |
| 66 | + Click="OnChooseClick" |
| 67 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_choose}" |
| 68 | + FontSize="14" /> |
46 | 69 | </StackPanel>
|
47 |
| - <StackPanel Grid.Row="2" Orientation="Vertical" Margin="30,20,0,0"> |
48 |
| - <TextBlock Text="{DynamicResource flowlauncher_plugin_browserbookmark_loadBrowserFrom}" Margin="10"/> |
49 |
| - <ListView Grid.Row="2" ItemsSource="{Binding Settings.CustomChromiumBrowsers}" |
50 |
| - SelectedItem="{Binding SelectedCustomBrowser}" |
51 |
| - Margin="10" |
52 |
| - BorderBrush="DarkGray" |
53 |
| - BorderThickness="1" |
54 |
| - Style="{StaticResource {x:Static GridView.GridViewStyleKey}}" |
55 |
| - Height="auto" |
56 |
| - Name="CustomBrowsers" |
57 |
| - MouseDoubleClick="MouseDoubleClickOnSelectedCustomBrowser"> |
| 70 | + <StackPanel |
| 71 | + Grid.Row="2" |
| 72 | + Margin="30,20,0,0" |
| 73 | + Orientation="Vertical"> |
| 74 | + <TextBlock Margin="10" Text="{DynamicResource flowlauncher_plugin_browserbookmark_loadBrowserFrom}" /> |
| 75 | + <ListView |
| 76 | + Name="CustomBrowsers" |
| 77 | + Grid.Row="2" |
| 78 | + Height="auto" |
| 79 | + Margin="10" |
| 80 | + BorderBrush="DarkGray" |
| 81 | + BorderThickness="1" |
| 82 | + ItemsSource="{Binding Settings.CustomChromiumBrowsers}" |
| 83 | + MouseDoubleClick="MouseDoubleClickOnSelectedCustomBrowser" |
| 84 | + SelectedItem="{Binding SelectedCustomBrowser}" |
| 85 | + Style="{StaticResource {x:Static GridView.GridViewStyleKey}}"> |
58 | 86 | <ListView.View>
|
59 | 87 | <GridView>
|
60 |
| - <GridViewColumn DisplayMemberBinding="{Binding Name, Mode=OneWay}" Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserName}"/> |
61 |
| - <GridViewColumn DisplayMemberBinding="{Binding DataDirectoryPath, Mode=OneWay}" Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserBookmarkDataDirectory}"/> |
| 88 | + <GridViewColumn DisplayMemberBinding="{Binding Name, Mode=OneWay}" Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserName}" /> |
| 89 | + <GridViewColumn DisplayMemberBinding="{Binding DataDirectoryPath, Mode=OneWay}" Header="{DynamicResource flowlauncher_plugin_browserbookmark_browserBookmarkDataDirectory}" /> |
62 | 90 | </GridView>
|
63 | 91 | </ListView.View>
|
64 | 92 | </ListView>
|
65 | 93 | <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
66 |
| - <Button Content="{DynamicResource flowlauncher_plugin_browserbookmark_addBrowserBookmark}" |
67 |
| - Margin="10" Click="NewCustomBrowser" Width="80" /> |
68 |
| - <Button Content="{DynamicResource flowlauncher_plugin_browserbookmark_removeBrowserBookmark}" |
69 |
| - Margin="10" Click="DeleteCustomBrowser" Width="80"/> |
| 94 | + <Button |
| 95 | + Width="80" |
| 96 | + Margin="10" |
| 97 | + Click="NewCustomBrowser" |
| 98 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_addBrowserBookmark}" /> |
| 99 | + <Button |
| 100 | + Width="80" |
| 101 | + Margin="10" |
| 102 | + Click="DeleteCustomBrowser" |
| 103 | + Content="{DynamicResource flowlauncher_plugin_browserbookmark_removeBrowserBookmark}" /> |
70 | 104 | </StackPanel>
|
71 | 105 | </StackPanel>
|
72 | 106 | </Grid>
|
|
0 commit comments