|
18 | 18 | <Thickness x:Key="RegionMargin">10,5,5,10</Thickness> |
19 | 19 | <ui:FontTypography x:Key="RegionFontTypography">BodyStrong</ui:FontTypography> |
20 | 20 |
|
| 21 | + <Style BasedOn="{StaticResource {x:Type ui:CardControl}}" TargetType="{x:Type ui:CardControl}"> |
| 22 | + <Setter Property="Margin" Value="5,5,15,0" /> |
| 23 | + </Style> |
| 24 | + <Style BasedOn="{StaticResource {x:Type ui:TextBox}}" TargetType="{x:Type ui:TextBox}"> |
| 25 | + <Setter Property="Padding" Value="8,4" /> |
| 26 | + </Style> |
| 27 | + <Style BasedOn="{StaticResource {x:Type ComboBox}}" TargetType="{x:Type ComboBox}"> |
| 28 | + <Setter Property="Padding" Value="8,4" /> |
| 29 | + </Style> |
| 30 | + <Style BasedOn="{StaticResource {x:Type ui:PasswordBox}}" TargetType="{x:Type ui:PasswordBox}"> |
| 31 | + <Setter Property="Padding" Value="8,4" /> |
| 32 | + </Style> |
| 33 | + |
21 | 34 | <!-- Data providers --> |
22 | 35 | <ObjectDataProvider |
23 | 36 | x:Key="KeySource" |
|
55 | 68 | Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
56 | 69 | Text="Window" /> |
57 | 70 |
|
58 | | - <ui:CardControl |
59 | | - Margin="5,5,5,12" |
60 | | - Icon="{ui:SymbolIcon Keyboard24}" |
61 | | - ToolTipService.ToolTip="Defines the keyboard shortcut used to open the search interface and start searching aliases. Choose a key combination that does not conflict with system or application shortcuts."> |
| 71 | + <ui:CardControl Icon="{ui:SymbolIcon Keyboard24}" ToolTipService.ToolTip="Defines the keyboard shortcut used to open the search interface and start searching aliases. Choose a key combination that does not conflict with system or application shortcuts."> |
62 | 72 | <ui:CardControl.Header> |
63 | 73 | <ui:TextBlock FontTypography="Body" Text="Hot key" /> |
64 | 74 | </ui:CardControl.Header> |
|
83 | 93 | </StackPanel> |
84 | 94 | </ui:CardControl> |
85 | 95 |
|
86 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon Color24}"> |
| 96 | + <ui:CardControl Icon="{ui:SymbolIcon Color24}"> |
87 | 97 | <ui:CardControl.ToolTip> |
88 | 98 | <ToolTip |
89 | 99 | MaxWidth="360" |
|
125 | 135 |
|
126 | 136 | </ui:CardControl> |
127 | 137 |
|
128 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon Glasses24}"> |
| 138 | + <ui:CardControl Icon="{ui:SymbolIcon Glasses24}"> |
129 | 139 | <ui:CardControl.Header> |
130 | 140 | <ui:TextBlock FontTypography="Body" Text="Show search after Windows loads and Lanceur starts?" /> |
131 | 141 | </ui:CardControl.Header> |
|
137 | 147 | </StackPanel> |
138 | 148 | </ui:CardControl> |
139 | 149 |
|
140 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon ReadingList24}"> |
| 150 | + <ui:CardControl Icon="{ui:SymbolIcon ReadingList24}"> |
141 | 151 | <ui:CardControl.Header> |
142 | 152 | <ui:TextBlock FontTypography="Body" Text="Notification Duration (in seconds)." /> |
143 | 153 | </ui:CardControl.Header> |
|
151 | 161 | Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
152 | 162 | Text="Search box" /> |
153 | 163 |
|
154 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon Timer24}"> |
| 164 | + <ui:CardControl Icon="{ui:SymbolIcon Timer24}"> |
155 | 165 | <ui:CardControl.Header> |
156 | 166 | <ui:TextBlock FontTypography="Body" Text="Search Trigger Delay (ms)" /> |
157 | 167 | </ui:CardControl.Header> |
158 | 168 | <ui:CardControl.ToolTip>Time in milliseconds before search starts after typing stops.</ui:CardControl.ToolTip> |
159 | 169 | <ui:NumberBox Value="{Binding SearchDelay, UpdateSourceTrigger=PropertyChanged}" /> |
160 | 170 | </ui:CardControl> |
161 | 171 |
|
162 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon ClipboardBulletListLtr20}"> |
| 172 | + <ui:CardControl Icon="{ui:SymbolIcon ClipboardBulletListLtr20}"> |
163 | 173 | <ui:CardControl.Header> |
164 | 174 | <ui:TextBlock FontTypography="Body" Text="When search box becomes visible..." /> |
165 | 175 | </ui:CardControl.Header> |
|
170 | 180 | OnContent="Show all results" /> |
171 | 181 | </StackPanel> |
172 | 182 | </ui:CardControl> |
173 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon SlideHide24}"> |
| 183 | + <ui:CardControl Icon="{ui:SymbolIcon SlideHide24}"> |
174 | 184 | <ui:CardControl.Header> |
175 | 185 | <ui:TextBlock FontTypography="Body" Text="Shortcut shows search; repeat hides" /> |
176 | 186 | </ui:CardControl.Header> |
|
183 | 193 | </StackPanel> |
184 | 194 | </ui:CardControl> |
185 | 195 |
|
186 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon Search24}"> |
| 196 | + <ui:CardControl Icon="{ui:SymbolIcon Search24}"> |
187 | 197 | <ui:CardControl.Header> |
188 | 198 | <ui:TextBlock FontTypography="Body" Text="Should the last query be shown when the search opens?" /> |
189 | 199 | </ui:CardControl.Header> |
|
195 | 205 | </StackPanel> |
196 | 206 | </ui:CardControl> |
197 | 207 |
|
198 | | - <ui:CardControl |
199 | | - Margin="5,5,5,12" |
200 | | - Icon="{ui:SymbolIcon Settings24}" |
201 | | - ToolTip="Controls whether the settings button is visible in the search box."> |
| 208 | + <ui:CardControl Icon="{ui:SymbolIcon Settings24}" ToolTip="Controls whether the settings button is visible in the search box."> |
202 | 209 | <ui:CardControl.Header> |
203 | 210 | <ui:TextBlock FontTypography="Body" Text="Show settings button in search box?" /> |
204 | 211 | </ui:CardControl.Header> |
|
210 | 217 | </StackPanel> |
211 | 218 | </ui:CardControl> |
212 | 219 |
|
213 | | - <ui:CardControl |
214 | | - Margin="5,5,5,12" |
215 | | - Icon="{ui:SymbolIcon Pin24}" |
216 | | - ToolTip="Keep the status bar visible at all times, even when there are no active results to display."> |
| 220 | + <ui:CardControl Icon="{ui:SymbolIcon Pin24}" ToolTip="Keep the status bar visible at all times, even when there are no active results to display."> |
217 | 221 | <ui:CardControl.Header> |
218 | 222 | <ui:TextBlock FontTypography="Body" Text="Always show status bar" /> |
219 | 223 | </ui:CardControl.Header> |
|
225 | 229 | </StackPanel> |
226 | 230 | </ui:CardControl> |
227 | 231 |
|
| 232 | + <!-- DATA SOURCE --> |
228 | 233 | <ui:TextBlock |
229 | 234 | Margin="{StaticResource RegionMargin}" |
230 | 235 | FontTypography="{StaticResource RegionFontTypography}" |
231 | 236 | Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
232 | 237 | Text="Data sources" /> |
233 | 238 |
|
234 | | - <ui:CardControl |
235 | | - Margin="5,0,5,12" |
236 | | - Icon="{ui:SymbolIcon Database24}" |
237 | | - ToolTip="This change will take effect until you restart the application or adjust it again here."> |
| 239 | + <ui:CardControl Icon="{ui:SymbolIcon Database24}" ToolTip="This change will take effect until you restart the application or adjust it again here."> |
238 | 240 | <ui:CardControl.Header> |
239 | 241 | <ui:TextBlock FontTypography="Body" Text="Database" /> |
240 | 242 | </ui:CardControl.Header> |
241 | 243 | <StackPanel Orientation="Horizontal"> |
242 | | - <ui:TextBox |
243 | | - MinWidth="500" |
244 | | - Margin="5" |
245 | | - Text="{Binding DbPath}" /> |
| 244 | + <ui:TextBox MinWidth="500" Text="{Binding DbPath}" /> |
246 | 245 | <ui:Button |
247 | 246 | Margin="5,0,0,0" |
248 | 247 | Click="OnClickDbPath" |
249 | 248 | Content="Select database" /> |
250 | 249 | </StackPanel> |
251 | 250 | </ui:CardControl> |
252 | 251 |
|
253 | | - <ui:CardControl |
254 | | - Margin="5,0,5,12" |
255 | | - Icon="{ui:SymbolIcon BookmarkSearch24}" |
256 | | - ToolTip="Select the main browser to use for searching your bookmarks."> |
| 252 | + <ui:CardControl Icon="{ui:SymbolIcon BookmarkSearch24}" ToolTip="Select the main browser to use for searching your bookmarks."> |
257 | 253 |
|
258 | 254 | <ui:CardControl.Header> |
259 | 255 | <ui:TextBlock FontTypography="Body" Text="Source of the bookmarks" /> |
260 | 256 | </ui:CardControl.Header> |
261 | | - <StackPanel> |
| 257 | + <StackPanel Orientation="Horizontal"> |
262 | 258 | <ComboBox ItemsSource="{StaticResource Browsers}" SelectedItem="{Binding BookmarkSourceBrowser}" /> |
263 | 259 | </StackPanel> |
264 | 260 | </ui:CardControl> |
|
268 | 264 | FontTypography="{StaticResource RegionFontTypography}" |
269 | 265 | Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
270 | 266 | Text="Stores" /> |
271 | | - <ui:CardExpander |
272 | | - Margin="5,5,5,12" |
273 | | - Icon="{ui:SymbolIcon DatabaseSearch24}" |
274 | | - IsExpanded="True"> |
| 267 | + <ui:CardExpander Icon="{ui:SymbolIcon DatabaseSearch24}" IsExpanded="True"> |
275 | 268 | <ui:CardExpander.Header> |
276 | 269 | <ui:TextBlock |
277 | 270 | Grid.Row="0" |
|
280 | 273 | Text="Everything Store Configuration" /> |
281 | 274 | </ui:CardExpander.Header> |
282 | 275 | <StackPanel> |
283 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon SlideHide24}"> |
| 276 | + <ui:CardControl Icon="{ui:SymbolIcon SlideHide24}"> |
284 | 277 | <ui:CardControl.Header> |
285 | 278 | <ui:TextBlock FontTypography="Body" Text="Should hidden files be excluded from the results?" /> |
286 | 279 | </ui:CardControl.Header> |
|
292 | 285 | </StackPanel> |
293 | 286 | </ui:CardControl> |
294 | 287 |
|
295 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon ShieldKeyhole24}"> |
| 288 | + <ui:CardControl Icon="{ui:SymbolIcon ShieldKeyhole24}"> |
296 | 289 | <ui:CardControl.Header> |
297 | 290 | <ui:TextBlock FontTypography="Body" Text="Should system files be excluded from the results?" /> |
298 | 291 | </ui:CardControl.Header> |
|
304 | 297 | </StackPanel> |
305 | 298 | </ui:CardControl> |
306 | 299 |
|
307 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon Run24}"> |
| 300 | + <ui:CardControl Icon="{ui:SymbolIcon Run24}"> |
308 | 301 | <ui:CardControl.Header> |
309 | 302 | <ui:TextBlock FontTypography="Body" Text="Should only executable files be included in the results?" /> |
310 | 303 | </ui:CardControl.Header> |
|
316 | 309 | </StackPanel> |
317 | 310 | </ui:CardControl> |
318 | 311 |
|
319 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon Delete24}"> |
| 312 | + <ui:CardControl Icon="{ui:SymbolIcon Delete24}"> |
320 | 313 | <ui:CardControl.Header> |
321 | 314 | <ui:TextBlock FontTypography="Body" Text="Should files in the Recycle Bin be excluded from the results?" /> |
322 | 315 | </ui:CardControl.Header> |
|
330 | 323 | </StackPanel> |
331 | 324 | </ui:CardExpander> |
332 | 325 |
|
333 | | - <ui:CardExpander |
334 | | - Margin="5,5,5,12" |
335 | | - Icon="{ui:SymbolIcon ArrowUpRight24}" |
336 | | - IsExpanded="True"> |
| 326 | + <ui:CardExpander Icon="{ui:SymbolIcon ArrowUpRight24}" IsExpanded="True"> |
337 | 327 | <ui:CardExpander.Header> |
338 | 328 | <Grid> |
339 | 329 | <Grid.RowDefinitions> |
|
411 | 401 | Text="Feature flags" /> |
412 | 402 |
|
413 | 403 | <!-- Feature flags --> |
414 | | - <ui:CardExpander |
415 | | - Margin="5,5,5,12" |
416 | | - Icon="{ui:SymbolIcon FlagCheckered20}" |
417 | | - IsExpanded="True"> |
| 404 | + <ui:CardExpander Icon="{ui:SymbolIcon FlagCheckered20}" IsExpanded="True"> |
418 | 405 | <ui:CardExpander.Header> |
419 | 406 | <ui:TextBlock |
420 | 407 | Grid.Row="0" |
|
425 | 412 | <ItemsControl ItemsSource="{Binding FeatureFlags}"> |
426 | 413 | <ItemsControl.ItemTemplate> |
427 | 414 | <DataTemplate> |
428 | | - <ui:CardControl Margin="5,5,5,12"> |
| 415 | + <ui:CardControl> |
429 | 416 | <ui:CardControl.Icon> |
430 | 417 | <ui:SymbolIcon Symbol="{Binding Icon}" /> |
431 | 418 | </ui:CardControl.Icon> |
|
454 | 441 | Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
455 | 442 | Text="Miscellaneous" /> |
456 | 443 |
|
457 | | - <ui:CardControl Margin="5,0,5,12" Icon="{ui:SymbolIcon NoteBookError24}"> |
| 444 | + <ui:CardControl Icon="{ui:SymbolIcon NoteBookError24}"> |
458 | 445 | <ui:CardControl.Header> |
459 | 446 | <ui:TextBlock FontTypography="Body" Text="Minimum Log Detail" /> |
460 | 447 | </ui:CardControl.Header> |
|
466 | 453 | </StackPanel> |
467 | 454 | </ui:CardControl> |
468 | 455 |
|
469 | | - <ui:CardControl Margin="5,0,5,12" Icon="{ui:SymbolIcon PersonKey20}"> |
| 456 | + <ui:CardControl Icon="{ui:SymbolIcon PersonKey20}"> |
470 | 457 | <ui:CardControl.Header> |
471 | 458 | <ui:TextBlock FontTypography="Body" Text="GitHub API Token" /> |
472 | 459 | </ui:CardControl.Header> |
|
478 | 465 |
|
479 | 466 | <!-- Resource monitor settings --> |
480 | 467 | <ui:CardExpander |
481 | | - Margin="5,5,5,12" |
482 | 468 | Icon="{ui:SymbolIcon Gauge24}" |
483 | 469 | IsExpanded="True" |
484 | 470 | Visibility="{Binding IsResourceMonitorEnabled, Converter={StaticResource BooleanToVisibilityConverter}, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}"> |
|
491 | 477 | </ui:CardExpander.Header> |
492 | 478 |
|
493 | 479 | <StackPanel> |
494 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon Timer24}"> |
| 480 | + <ui:CardControl Icon="{ui:SymbolIcon Timer24}"> |
495 | 481 | <ui:CardControl.Header> |
496 | 482 | <ui:TextBlock FontTypography="Body" Text="Refresh rate (ms)" /> |
497 | 483 | </ui:CardControl.Header> |
|
504 | 490 | Value="{Binding RefreshRate, UpdateSourceTrigger=PropertyChanged}" /> |
505 | 491 | </ui:CardControl> |
506 | 492 |
|
507 | | - <ui:CardControl Margin="5,5,5,12" Icon="{ui:SymbolIcon BezierCurveSquare20}"> |
| 493 | + <ui:CardControl Icon="{ui:SymbolIcon BezierCurveSquare20}"> |
508 | 494 | <ui:CardControl.Header> |
509 | 495 | <ui:TextBlock FontTypography="Body" Text="CPU smoothing index" /> |
510 | 496 | </ui:CardControl.Header> |
|
0 commit comments