32
32
</DockPanel >
33
33
</DataTemplate >
34
34
</UserControl .Resources>
35
- <Grid Margin =" 14" >
35
+ <Grid Margin =" 14 14 14 0 " >
36
36
<Grid .RowDefinitions>
37
- <RowDefinition Height =" 30" />
38
37
<RowDefinition Height =" 48" />
39
- <RowDefinition Height =" 45 " />
38
+ <RowDefinition Height =" 40 " />
40
39
<RowDefinition />
40
+ <RowDefinition Height =" 56" />
41
41
<RowDefinition Height =" 50" />
42
42
</Grid .RowDefinitions>
43
- <StackPanel Orientation =" Horizontal" Grid.Row=" 0" >
44
- <CheckBox IsChecked =" {Binding Settings.EnableSuggestion}"
45
- Margin =" 0 0 20 0"
46
- Name =" EnableSuggestion"
47
- Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion}" />
48
- <ComboBox ItemsSource =" {Binding Settings.Suggestions}"
49
- SelectedItem =" {Binding Settings.SelectedSuggestion}"
50
- IsEnabled =" {Binding ElementName=EnableSuggestion, Path=IsChecked}" />
51
- <!-- Not sure why binding IsEnabled directly to Settings.EnableWebSaerchSuggestion is not working -->
52
- </StackPanel >
53
- <StackPanel Grid.Row=" 1" HorizontalAlignment =" Left" Orientation =" Horizontal" >
43
+ <StackPanel Grid.Row=" 0" HorizontalAlignment =" Left" Orientation =" Horizontal" Margin =" 14 0 0 0" >
54
44
<Label Content =" {DynamicResource flowlauncher_plugin_websearch_open_search_in}" Margin =" 0 15 20 0" />
55
45
<RadioButton Name =" NewWindowBrowser" GroupName =" OpenSearchBehaviour" Content =" {DynamicResource flowlauncher_plugin_websearch_new_window}" Click =" OnNewBrowserWindowClick"
56
46
Margin =" 0 0 20 0" />
57
47
<RadioButton Name =" NewTabInBrowser" GroupName =" OpenSearchBehaviour" Content =" {DynamicResource flowlauncher_plugin_websearch_new_tab}" Click =" OnNewTabClick" />
58
48
</StackPanel >
59
- <StackPanel Grid.Row=" 2 " HorizontalAlignment =" Left" Margin =" 0 3 0 0" >
60
- <Label Content =" {DynamicResource flowlaucnher_plugin_websearch_set_browser_path}" Margin =" 0 0 350 0" HorizontalAlignment =" Left" Width = " 140 " />
61
- <TextBox x : Name =" browserPathBox" HorizontalAlignment =" Left" Margin =" 160,-22 ,0,0" TextChanged =" OnBrowserPathTextChanged"
62
- Width =" 214 " Style =" {StaticResource BrowserPathBoxStyle}" />
63
- <Button x : Name =" viewButton" HorizontalAlignment =" Left" Margin =" 400,-30 ,0,0"
49
+ <StackPanel Grid.Row=" 1 " HorizontalAlignment =" Left" Margin =" 14 3 0 0" Orientation = " Horizontal " >
50
+ <Label Content =" {DynamicResource flowlaucnher_plugin_websearch_set_browser_path}" Margin =" 0 0 10 0" HorizontalAlignment =" Left" VerticalAlignment = " Center " />
51
+ <TextBox x : Name =" browserPathBox" HorizontalAlignment =" Left" Margin =" 0,0 ,0,0" TextChanged =" OnBrowserPathTextChanged"
52
+ Width =" 250 " Style =" {StaticResource BrowserPathBoxStyle}" />
53
+ <Button x : Name =" viewButton" HorizontalAlignment =" Left" Margin =" 10,0 ,0,0"
64
54
Click =" OnChooseClick" FontSize =" 13" Content =" {DynamicResource flowlauncher_plugin_websearch_choose}" Width =" 80" />
65
55
</StackPanel >
66
- <ListView ItemsSource =" {Binding Settings.SearchSources}"
56
+ <ListView Margin = " 0 18 0 0 " ItemsSource =" {Binding Settings.SearchSources}"
67
57
SelectedItem =" {Binding Settings.SelectedSearchSource}"
68
58
x : Name =" SearchSourcesListView"
69
59
70
- Grid.Row=" 3 "
60
+ Grid.Row=" 2 "
71
61
Style =" {StaticResource {x:Static GridView.GridViewStyleKey}}"
72
62
BorderBrush =" DarkGray"
73
63
BorderThickness =" 1"
95
85
</GridViewColumn >
96
86
<GridViewColumn Header =" {DynamicResource flowlauncher_plugin_websearch_url}"
97
87
DisplayMemberBinding =" {Binding Url}"
98
- Width =" auto " >
88
+ Width =" Auto " >
99
89
<GridViewColumn .CellTemplate>
100
90
<DataTemplate >
101
91
<TextBlock Text =" {Binding Url}" />
105
95
</GridView >
106
96
</ListView .View>
107
97
</ListView >
108
- <StackPanel Grid.Row=" 4 " HorizontalAlignment =" Right" Orientation =" Horizontal" >
98
+ <StackPanel Grid.Row=" 3 " HorizontalAlignment =" Right" Orientation =" Horizontal" >
109
99
<Button Click =" OnDeleteSearchSearchClick" Width =" 100" Margin =" 10"
110
100
Content =" {DynamicResource flowlauncher_plugin_websearch_delete}" />
111
101
<Button Click =" OnEditSearchSourceClick" Width =" 100" Margin =" 10"
112
102
Content =" {DynamicResource flowlauncher_plugin_websearch_edit}" />
113
- <Button Click =" OnAddSearchSearchClick" Width =" 100" Margin =" 10 10 10 10"
103
+ <Button Click =" OnAddSearchSearchClick" Width =" 100" Margin =" 10 10 0 10"
114
104
Content =" {DynamicResource flowlauncher_plugin_websearch_add}" />
115
105
</StackPanel >
106
+ <Border BorderThickness =" 0 1 0 0" Grid.Row=" 4" Margin =" 0 0 0 0" BorderBrush =" #cecece" HorizontalAlignment =" Stretch" >
107
+ <DockPanel HorizontalAlignment =" Right" Margin =" 0 14 0 0" >
108
+ <StackPanel Orientation =" Horizontal" DockPanel.Dock=" Right" >
109
+ <Label Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion_provider}" Margin =" 14 0 10 0" HorizontalAlignment =" Right" VerticalAlignment =" Center" />
110
+ <ComboBox ItemsSource =" {Binding Settings.Suggestions}" VerticalAlignment =" Center"
111
+ SelectedItem =" {Binding Settings.SelectedSuggestion}"
112
+ IsEnabled =" {Binding ElementName=EnableSuggestion, Path=IsChecked}" Margin =" 0 0 20 0" FontSize =" 11" Height =" 30" />
113
+ <Label Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion}" Margin =" 0 0 10 0" HorizontalAlignment =" Right" VerticalAlignment =" Center" />
114
+ <CheckBox IsChecked =" {Binding Settings.EnableSuggestion}"
115
+ Margin =" 0 0 0 0"
116
+ Name =" EnableSuggestion" />
117
+ </StackPanel >
118
+ <!-- Not sure why binding IsEnabled directly to Settings.EnableWebSaerchSuggestion is not working -->
119
+ </DockPanel >
120
+ </Border >
116
121
</Grid >
117
122
</UserControl >
0 commit comments