|
| 1 | +<UserControl |
| 2 | + x:Class="Flow.Launcher.Plugin.Url.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:local="clr-namespace:Flow.Launcher.Plugin.Url" |
| 7 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 8 | + d:DesignHeight="450" |
| 9 | + d:DesignWidth="800" |
| 10 | + DataContext="{Binding RelativeSource={RelativeSource Self}}" |
| 11 | + mc:Ignorable="d"> |
| 12 | + |
| 13 | + <Grid Margin="{StaticResource SettingPanelMargin}"> |
| 14 | + <Grid.RowDefinitions> |
| 15 | + <RowDefinition Height="auto" /> |
| 16 | + <RowDefinition Height="auto" /> |
| 17 | + <RowDefinition Height="auto" /> |
| 18 | + <RowDefinition Height="auto" /> |
| 19 | + </Grid.RowDefinitions> |
| 20 | + <Grid.ColumnDefinitions> |
| 21 | + <ColumnDefinition Width="Auto" /> |
| 22 | + <ColumnDefinition Width="*" /> |
| 23 | + </Grid.ColumnDefinitions> |
| 24 | + |
| 25 | + <CheckBox |
| 26 | + Grid.Row="0" |
| 27 | + Grid.Column="0" |
| 28 | + Grid.ColumnSpan="2" |
| 29 | + Margin="{StaticResource SettingPanelItemTopBottomMargin}" |
| 30 | + HorizontalAlignment="Left" |
| 31 | + VerticalAlignment="Center" |
| 32 | + Content="{DynamicResource flowlauncher_plugin_use_custom_browser}" |
| 33 | + IsChecked="{Binding Settings.UseCustomBrowser, Mode=TwoWay}" /> |
| 34 | + |
| 35 | + <TextBlock |
| 36 | + Grid.Row="1" |
| 37 | + Grid.Column="0" |
| 38 | + Margin="{StaticResource SettingPanelItemRightTopBottomMargin}" |
| 39 | + VerticalAlignment="Center" |
| 40 | + FontSize="14" |
| 41 | + Text="{DynamicResource flowlauncher_plugin_browser_path}" /> |
| 42 | + <Grid |
| 43 | + Grid.Row="1" |
| 44 | + Grid.Column="1" |
| 45 | + Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"> |
| 46 | + <Grid.ColumnDefinitions> |
| 47 | + <ColumnDefinition Width="*" /> |
| 48 | + <ColumnDefinition Width="Auto" /> |
| 49 | + </Grid.ColumnDefinitions> |
| 50 | + |
| 51 | + <TextBox |
| 52 | + Grid.Column="0" |
| 53 | + HorizontalAlignment="Stretch" |
| 54 | + VerticalAlignment="Center" |
| 55 | + IsReadOnly="True" |
| 56 | + Text="{Binding Settings.BrowserPath, Mode=OneWay}" /> |
| 57 | + <Button |
| 58 | + Grid.Column="1" |
| 59 | + Margin="{StaticResource SettingPanelItemLeftMargin}" |
| 60 | + HorizontalAlignment="Left" |
| 61 | + VerticalAlignment="Center" |
| 62 | + Click="SelectBrowserPath" |
| 63 | + Content="{DynamicResource flowlauncher_plugin_url_plugin_choose}" /> |
| 64 | + </Grid> |
| 65 | + |
| 66 | + <CheckBox |
| 67 | + Grid.Row="2" |
| 68 | + Grid.Column="0" |
| 69 | + Grid.ColumnSpan="2" |
| 70 | + Margin="{StaticResource SettingPanelItemTopBottomMargin}" |
| 71 | + HorizontalAlignment="Left" |
| 72 | + VerticalAlignment="Center" |
| 73 | + Content="{DynamicResource flowlauncher_plugin_url_open_in_new_window}" |
| 74 | + IsChecked="{Binding Settings.OpenInNewBrowserWindow, Mode=TwoWay}" /> |
| 75 | + |
| 76 | + <CheckBox |
| 77 | + Grid.Row="3" |
| 78 | + Grid.Column="0" |
| 79 | + Grid.ColumnSpan="2" |
| 80 | + Margin="{StaticResource SettingPanelItemTopBottomMargin}" |
| 81 | + HorizontalAlignment="Left" |
| 82 | + VerticalAlignment="Center" |
| 83 | + Content="{DynamicResource flowlauncher_plugin_url_open_in_private}" |
| 84 | + IsChecked="{Binding Settings.OpenInPrivateMode, Mode=TwoWay}" /> |
| 85 | + </Grid> |
| 86 | +</UserControl> |
0 commit comments