|
10 | 10 | <UserControl.Resources> |
11 | 11 | <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" /> |
12 | 12 | </UserControl.Resources> |
13 | | - <Grid Margin="0"> |
| 13 | + <Grid Margin="{StaticResource SettingPanelMargin}"> |
14 | 14 | <Grid.RowDefinitions> |
15 | 15 | <RowDefinition Height="Auto" /> |
16 | 16 | <RowDefinition Height="Auto" /> |
17 | 17 | <RowDefinition Height="*" /> |
18 | 18 | <RowDefinition Height="Auto" /> |
19 | 19 | </Grid.RowDefinitions> |
20 | | - <DockPanel |
21 | | - Margin="70 10 0 8" |
22 | | - HorizontalAlignment="Stretch" |
23 | | - LastChildFill="True"> |
| 20 | + <DockPanel HorizontalAlignment="Stretch" LastChildFill="True"> |
24 | 21 | <TextBlock |
25 | 22 | MinWidth="120" |
26 | | - Margin="0 5 10 0" |
| 23 | + Margin="{StaticResource SettingPanelItemRightTopBottomMargin}" |
27 | 24 | Text="{DynamicResource flowlauncher_plugin_program_index_source}" /> |
28 | 25 | <WrapPanel |
29 | 26 | Width="Auto" |
30 | | - Margin="0 0 14 0" |
| 27 | + Margin="{StaticResource SettingPanelItemTopBottomMargin}" |
31 | 28 | HorizontalAlignment="Right" |
32 | 29 | DockPanel.Dock="Right"> |
33 | 30 | <CheckBox |
34 | 31 | Name="UWPEnabled" |
35 | | - Margin="12 0 12 0" |
| 32 | + Margin="{StaticResource SettingPanelItemRightMargin}" |
36 | 33 | Content="{DynamicResource flowlauncher_plugin_program_index_uwp}" |
37 | 34 | IsChecked="{Binding EnableUWP}" |
38 | 35 | ToolTip="{DynamicResource flowlauncher_plugin_program_index_uwp_tooltip}" |
39 | 36 | Visibility="{Binding ShowUWPCheckbox, Converter={StaticResource BooleanToVisibilityConverter}}" /> |
40 | 37 | <CheckBox |
41 | 38 | Name="StartMenuEnabled" |
42 | | - Margin="12 0 12 0" |
| 39 | + Margin="{StaticResource SettingPanelItemRightMargin}" |
43 | 40 | Content="{DynamicResource flowlauncher_plugin_program_index_start}" |
44 | 41 | IsChecked="{Binding EnableStartMenuSource}" |
45 | 42 | ToolTip="{DynamicResource flowlauncher_plugin_program_index_start_tooltip}" /> |
46 | 43 | <CheckBox |
47 | 44 | Name="RegistryEnabled" |
48 | | - Margin="12 0 12 0" |
| 45 | + Margin="{StaticResource SettingPanelItemRightMargin}" |
49 | 46 | Content="{DynamicResource flowlauncher_plugin_program_index_registry}" |
50 | 47 | IsChecked="{Binding EnableRegistrySource}" |
51 | 48 | ToolTip="{DynamicResource flowlauncher_plugin_program_index_registry_tooltip}" /> |
52 | 49 | <CheckBox |
53 | 50 | Name="PATHEnabled" |
54 | | - Margin="12 0 12 0" |
55 | 51 | Content="{DynamicResource flowlauncher_plugin_program_index_PATH}" |
56 | 52 | IsChecked="{Binding EnablePATHSource}" |
57 | 53 | ToolTip="{DynamicResource flowlauncher_plugin_program_index_PATH_tooltip}" /> |
58 | 54 | </WrapPanel> |
59 | 55 | </DockPanel> |
60 | | - |
61 | 56 | <StackPanel |
62 | 57 | Grid.Row="1" |
63 | 58 | HorizontalAlignment="Stretch" |
64 | 59 | Orientation="Vertical"> |
65 | | - <Separator |
66 | | - Height="1" |
67 | | - BorderBrush="{DynamicResource Color03B}" |
68 | | - BorderThickness="1" /> |
69 | | - <DockPanel |
70 | | - Margin="70 10 0 8" |
71 | | - HorizontalAlignment="Stretch" |
72 | | - LastChildFill="True"> |
| 60 | + <Separator Style="{StaticResource SettingPanelSeperatorStyle}" /> |
| 61 | + <DockPanel HorizontalAlignment="Stretch" LastChildFill="True"> |
73 | 62 | <TextBlock |
74 | 63 | MinWidth="120" |
75 | | - Margin="0 5 10 0" |
| 64 | + Margin="{StaticResource SettingPanelItemRightTopBottomMargin}" |
76 | 65 | Text="{DynamicResource flowlauncher_plugin_program_index_option}" /> |
77 | 66 | <WrapPanel |
78 | 67 | Width="Auto" |
79 | | - Margin="0 0 14 0" |
| 68 | + Margin="{StaticResource SettingPanelItemTopBottomMargin}" |
80 | 69 | HorizontalAlignment="Right" |
81 | 70 | DockPanel.Dock="Right"> |
82 | 71 | <CheckBox |
83 | | - Margin="12 0 12 0" |
| 72 | + Margin="{StaticResource SettingPanelItemRightMargin}" |
84 | 73 | Content="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath}" |
85 | 74 | IsChecked="{Binding HideAppsPath}" |
86 | 75 | ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath_tooltip}" /> |
87 | 76 | <CheckBox |
88 | | - Margin="12 0 12 0" |
| 77 | + Margin="{StaticResource SettingPanelItemRightMargin}" |
89 | 78 | Content="{DynamicResource flowlauncher_plugin_program_enable_hideuninstallers}" |
90 | 79 | IsChecked="{Binding HideUninstallers}" |
91 | 80 | ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hideuninstallers_tooltip}" /> |
92 | 81 | <CheckBox |
93 | | - Margin="12 0 12 0" |
| 82 | + Margin="{StaticResource SettingPanelItemRightMargin}" |
94 | 83 | Content="{DynamicResource flowlauncher_plugin_program_enable_description}" |
95 | 84 | IsChecked="{Binding EnableDescription}" |
96 | 85 | ToolTip="{DynamicResource flowlauncher_plugin_program_enable_description_tooltip}" /> |
97 | 86 | <CheckBox |
98 | | - Margin="12 0 12 0" |
99 | 87 | Content="{DynamicResource flowlauncher_plugin_program_enable_hideduplicatedwindowsapp}" |
100 | 88 | IsChecked="{Binding HideDuplicatedWindowsApp}" |
101 | 89 | ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hideduplicatedwindowsapp_tooltip}" /> |
102 | 90 | </WrapPanel> |
103 | 91 | </DockPanel> |
104 | | - <Separator |
105 | | - Height="1" |
106 | | - BorderBrush="{DynamicResource Color03B}" |
107 | | - BorderThickness="1" /> |
| 92 | + <Separator Style="{StaticResource SettingPanelSeperatorStyle}" /> |
108 | 93 | <StackPanel |
109 | | - Margin="60 0 0 2" |
110 | 94 | HorizontalAlignment="Left" |
111 | 95 | VerticalAlignment="Center" |
112 | 96 | Orientation="Horizontal"> |
113 | 97 | <Button |
114 | 98 | x:Name="btnLoadAllProgramSource" |
115 | 99 | MinWidth="120" |
116 | | - Margin="10 10 5 10" |
| 100 | + Margin="{StaticResource SettingPanelItemRightTopBottomMargin}" |
117 | 101 | HorizontalAlignment="Right" |
118 | 102 | Click="btnLoadAllProgramSource_OnClick" |
119 | 103 | Content="{DynamicResource flowlauncher_plugin_program_all_programs}" /> |
120 | 104 | <Button |
121 | 105 | x:Name="btnProgramSuffixes" |
122 | 106 | MinWidth="120" |
123 | | - Margin="5 10 5 10" |
| 107 | + Margin="{StaticResource SettingPanelItemRightTopBottomMargin}" |
124 | 108 | HorizontalAlignment="Right" |
125 | 109 | Click="BtnProgramSuffixes_OnClick" |
126 | 110 | Content="{DynamicResource flowlauncher_plugin_program_suffixes}" /> |
127 | 111 | <Button |
128 | 112 | x:Name="btnReindex" |
129 | 113 | MinWidth="120" |
130 | | - Margin="5 10 5 10" |
| 114 | + Margin="{StaticResource SettingPanelItemRightTopBottomMargin}" |
131 | 115 | HorizontalAlignment="Right" |
132 | 116 | Click="btnReindex_Click" |
133 | 117 | Content="{DynamicResource flowlauncher_plugin_program_reindex}" /> |
|
140 | 124 | x:Name="progressBarIndexing" |
141 | 125 | Width="80" |
142 | 126 | Height="20" |
| 127 | + Margin="{StaticResource SettingPanelItemRightTopBottomMargin}" |
143 | 128 | IsIndeterminate="True" |
144 | 129 | Maximum="100" |
145 | 130 | Minimum="0" /> |
146 | 131 | <TextBlock |
147 | 132 | Height="20" |
148 | | - Margin="10 0 0 0" |
| 133 | + Margin="{StaticResource SettingPanelItemTopBottomMargin}" |
149 | 134 | HorizontalAlignment="Center" |
150 | 135 | Text="{DynamicResource flowlauncher_plugin_program_indexing}" /> |
151 | 136 | </StackPanel> |
|
154 | 139 | <ListView |
155 | 140 | x:Name="programSourceView" |
156 | 141 | Grid.Row="2" |
157 | | - Margin="70 0 20 0" |
| 142 | + Margin="{StaticResource SettingPanelItemTopBottomMargin}" |
158 | 143 | AllowDrop="True" |
159 | 144 | BorderBrush="DarkGray" |
160 | 145 | BorderThickness="1" |
|
203 | 188 | </GridView> |
204 | 189 | </ListView.View> |
205 | 190 | </ListView> |
206 | | - <DockPanel |
207 | | - Grid.Row="3" |
208 | | - Grid.RowSpan="1" |
209 | | - Margin="0 0 20 0"> |
| 191 | + <DockPanel Grid.Row="3"> |
210 | 192 | <StackPanel HorizontalAlignment="Right" Orientation="Horizontal"> |
211 | 193 | <Button |
212 | 194 | x:Name="btnProgramSourceStatus" |
213 | 195 | MinWidth="100" |
214 | | - Margin="10" |
| 196 | + Margin="{StaticResource SettingPanelItemTopBottomMargin}" |
215 | 197 | Click="btnProgramSourceStatus_OnClick" |
216 | 198 | Content="{DynamicResource flowlauncher_plugin_program_disable}" /> |
217 | 199 | <Button |
218 | 200 | x:Name="btnEditProgramSource" |
219 | 201 | MinWidth="100" |
220 | | - Margin="10" |
| 202 | + Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}" |
221 | 203 | Click="btnEditProgramSource_OnClick" |
222 | 204 | Content="{DynamicResource flowlauncher_plugin_program_edit}" /> |
223 | 205 | <Button |
224 | 206 | x:Name="btnAddProgramSource" |
225 | 207 | MinWidth="100" |
226 | | - Margin="10 10 0 10" |
| 208 | + Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}" |
227 | 209 | Click="btnAddProgramSource_OnClick" |
228 | 210 | Content="{DynamicResource flowlauncher_plugin_program_add}" /> |
229 | 211 | </StackPanel> |
|
0 commit comments