Skip to content

Commit 9547078

Browse files
committed
Test
1 parent 0bbcd35 commit 9547078

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

src/Files.App/Views/Settings/AppearancePage.xaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<DataTemplate x:Key="AppThemeResourcesItemTemplate" x:DataType="dataitem:AppThemeResourceItem">
2323
<Grid
2424
Width="120"
25-
AutomationProperties.AutomationControlType="Custom"
25+
AutomationProperties.AutomationControlType="CheckBox"
2626
AutomationProperties.Name="{x:Bind Name, Mode=OneWay}"
2727
BorderBrush="{ThemeResource ControlElevationBorderBrush}"
2828
BorderThickness="1"
@@ -102,7 +102,7 @@
102102
</wctcontrols:SettingsCard.HeaderIcon>
103103
<uc:ComboBoxEx
104104
x:Name="ThemeChooser"
105-
AutomationProperties.AutomationControlType="Custom"
105+
AutomationProperties.AutomationControlType="CheckBox"
106106
AutomationProperties.Name="{helpers:ResourceString Name=SettingsAppearanceTheme}"
107107
ItemsSource="{x:Bind ViewModel.Themes, Mode=OneWay}"
108108
SelectedIndex="{x:Bind ViewModel.SelectedThemeIndex, Mode=TwoWay}" />
@@ -114,7 +114,7 @@
114114
<FontIcon Glyph="&#xEF1F;" />
115115
</wctcontrols:SettingsCard.HeaderIcon>
116116
<uc:ComboBoxEx
117-
AutomationProperties.AutomationControlType="Custom"
117+
AutomationProperties.AutomationControlType="CheckBox"
118118
AutomationProperties.Name="{helpers:ResourceString Name=BackdropMaterial}"
119119
ItemsSource="{x:Bind ViewModel.BackdropMaterialTypes.Values}"
120120
SelectedItem="{x:Bind ViewModel.SelectedBackdropMaterial, Mode=TwoWay}" />
@@ -130,7 +130,7 @@
130130
</wctcontrols:SettingsExpander.HeaderIcon>
131131
<Button
132132
Padding="0"
133-
AutomationProperties.AutomationControlType="Custom"
133+
AutomationProperties.AutomationControlType="CheckBox"
134134
AutomationProperties.Name="{helpers:ResourceString Name=BackgroundColor}">
135135
<StackPanel Orientation="Horizontal">
136136
<Border
@@ -199,7 +199,7 @@
199199
<Slider
200200
Width="140"
201201
HorizontalAlignment="Right"
202-
AutomationProperties.AutomationControlType="Custom"
202+
AutomationProperties.AutomationControlType="CheckBox"
203203
AutomationProperties.Name="{helpers:ResourceString Name=Opacity}"
204204
IsThumbToolTipEnabled="False"
205205
Maximum="1"
@@ -212,7 +212,7 @@
212212
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ImageFit}">
213213
<uc:ComboBoxEx
214214
MinWidth="140"
215-
AutomationProperties.AutomationControlType="Custom"
215+
AutomationProperties.AutomationControlType="CheckBox"
216216
AutomationProperties.Name="{helpers:ResourceString Name=ImageFit}"
217217
ItemsSource="{x:Bind ViewModel.ImageStretchTypes.Values}"
218218
SelectedItem="{x:Bind ViewModel.SelectedImageStretchType, Mode=TwoWay}" />
@@ -222,7 +222,7 @@
222222
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=VerticalAlignment}">
223223
<uc:ComboBoxEx
224224
MinWidth="140"
225-
AutomationProperties.AutomationControlType="Custom"
225+
AutomationProperties.AutomationControlType="CheckBox"
226226
AutomationProperties.Name="{helpers:ResourceString Name=VerticalAlignment}"
227227
ItemsSource="{x:Bind ViewModel.ImageVerticalAlignmentTypes.Values}"
228228
SelectedItem="{x:Bind ViewModel.SelectedImageVerticalAlignmentType, Mode=TwoWay}" />
@@ -232,7 +232,7 @@
232232
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=HorizontalAlignment}">
233233
<uc:ComboBoxEx
234234
MinWidth="140"
235-
AutomationProperties.AutomationControlType="Custom"
235+
AutomationProperties.AutomationControlType="CheckBox"
236236
AutomationProperties.Name="{helpers:ResourceString Name=HorizontalAlignment}"
237237
ItemsSource="{x:Bind ViewModel.ImageHorizontalAlignmentTypes.Values}"
238238
SelectedItem="{x:Bind ViewModel.SelectedImageHorizontalAlignmentType, Mode=TwoWay}" />
@@ -247,7 +247,7 @@
247247
<PathIcon Data="{StaticResource App.Theme.PathIcon.TabActions}" />
248248
</wctcontrols:SettingsCard.HeaderIcon>
249249
<ToggleSwitch
250-
AutomationProperties.AutomationControlType="Custom"
250+
AutomationProperties.AutomationControlType="CheckBox"
251251
AutomationProperties.Name="{helpers:ResourceString Name=ShowTabActions}"
252252
IsOn="{x:Bind ViewModel.ShowTabActions, Mode=TwoWay}" />
253253
</wctcontrols:SettingsCard>
@@ -262,7 +262,7 @@
262262
<!-- Show home button -->
263263
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowHomeButton}">
264264
<ToggleSwitch
265-
AutomationProperties.AutomationControlType="Custom"
265+
AutomationProperties.AutomationControlType="CheckBox"
266266
AutomationProperties.Name="{helpers:ResourceString Name=ShowHomeButton}"
267267
IsOn="{x:Bind ViewModel.ShowHomeButton, Mode=TwoWay}" />
268268
</wctcontrols:SettingsCard>
@@ -273,15 +273,15 @@
273273
Header="{helpers:ResourceString Name=ShowShelfPaneButtonInAddressBar}"
274274
Visibility="{x:Bind ViewModel.IsAppEnvironmentDev, Mode=OneTime}">
275275
<ToggleSwitch
276-
AutomationProperties.AutomationControlType="Custom"
276+
AutomationProperties.AutomationControlType="CheckBox"
277277
AutomationProperties.Name="{helpers:ResourceString Name=ShowShelfPaneButtonInAddressBar}"
278278
IsOn="{x:Bind ViewModel.ShowShelfPaneToggleButton, Mode=TwoWay}" />
279279
</wctcontrols:SettingsCard>
280280

281281
<!-- Show toolbar -->
282282
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowToolbar}">
283283
<ToggleSwitch
284-
AutomationProperties.AutomationControlType="Custom"
284+
AutomationProperties.AutomationControlType="CheckBox"
285285
AutomationProperties.Name="{helpers:ResourceString Name=ShowToolbar}"
286286
IsOn="{x:Bind ViewModel.ShowToolbar, Mode=TwoWay}" />
287287
</wctcontrols:SettingsCard>

src/Files.App/Views/Settings/GeneralPage.xaml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<uc:ComboBoxEx
3939
x:Name="AppLanguagesComboBox"
4040
HorizontalAlignment="Left"
41-
AutomationProperties.AutomationControlType="Custom"
41+
AutomationProperties.AutomationControlType="CheckBox"
4242
AutomationProperties.Name="{helpers:ResourceString Name=Language}"
4343
ItemsSource="{x:Bind ViewModel.AppLanguages}"
4444
SelectedIndex="{x:Bind ViewModel.SelectedAppLanguageIndex, Mode=TwoWay}">
@@ -61,7 +61,7 @@
6161
<uc:ComboBoxEx
6262
x:Name="DateFormatChooser"
6363
Grid.Column="1"
64-
AutomationProperties.AutomationControlType="Custom"
64+
AutomationProperties.AutomationControlType="CheckBox"
6565
AutomationProperties.Name="{helpers:ResourceString Name=DateFormat}"
6666
ItemsSource="{x:Bind ViewModel.DateFormats}"
6767
SelectedIndex="{x:Bind ViewModel.SelectedDateTimeFormatIndex, Mode=TwoWay}">
@@ -91,7 +91,7 @@
9191
<FontIcon Glyph="&#xE7E8;" />
9292
</wctcontrols:SettingsExpander.HeaderIcon>
9393
<uc:ComboBoxEx
94-
AutomationProperties.AutomationControlType="Custom"
94+
AutomationProperties.AutomationControlType="CheckBox"
9595
AutomationProperties.Name="{helpers:ResourceString Name=StartupSettings}"
9696
SelectedIndex="{x:Bind ViewModel.SelectedStartupSettingIndex, Mode=OneWay}">
9797
<ComboBoxItem Content="{helpers:ResourceString Name=SettingsOnStartupOpenANewTab/Content}" IsSelected="{x:Bind ViewModel.OpenNewTabPageOnStartup, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
@@ -163,7 +163,7 @@
163163
ToolTipService.ToolTip="{x:Bind Text}" />
164164
<Button
165165
HorizontalAlignment="Right"
166-
AutomationProperties.AutomationControlType="Custom"
166+
AutomationProperties.AutomationControlType="CheckBox"
167167
AutomationProperties.Name="{helpers:ResourceString Name=Remove}"
168168
Click="RemoveStartupPage"
169169
ToolTipService.ToolTip="{helpers:ResourceString Name=Remove}">
@@ -177,7 +177,7 @@
177177

178178
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=OpenTabInExistingInstance}">
179179
<ToggleSwitch
180-
AutomationProperties.AutomationControlType="Custom"
180+
AutomationProperties.AutomationControlType="CheckBox"
181181
AutomationProperties.Name="{helpers:ResourceString Name=OpenTabInExistingInstance}"
182182
IsOn="{x:Bind ViewModel.OpenTabInExistingInstance, Mode=TwoWay}" />
183183
</wctcontrols:SettingsCard>
@@ -190,13 +190,13 @@
190190
<FontIcon Glyph="&#xE89F;" />
191191
</wctcontrols:SettingsExpander.HeaderIcon>
192192
<ToggleSwitch
193-
AutomationProperties.AutomationControlType="Custom"
193+
AutomationProperties.AutomationControlType="CheckBox"
194194
AutomationProperties.Name="{helpers:ResourceString Name=SettingsMultitaskingAlwaysOpenDualPane}"
195195
IsOn="{x:Bind ViewModel.AlwaysOpenDualPaneInNewTab, Mode=TwoWay}" />
196196
<wctcontrols:SettingsExpander.Items>
197197
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=DefaultPaneArrangement}">
198198
<uc:ComboBoxEx
199-
AutomationProperties.AutomationControlType="Custom"
199+
AutomationProperties.AutomationControlType="CheckBox"
200200
AutomationProperties.Name="{helpers:ResourceString Name=DefaultPaneArrangement}"
201201
ItemsSource="{x:Bind ViewModel.ShellPaneArrangementTypes.Values}"
202202
SelectedItem="{x:Bind ViewModel.SelectedShellPaneArrangementType, Mode=TwoWay}" />
@@ -211,7 +211,7 @@
211211
</wctcontrols:SettingsCard.HeaderIcon>
212212
<ToggleSwitch
213213
x:Name="AlwaysSwitchToNewlyOpenedTab"
214-
AutomationProperties.AutomationControlType="Custom"
214+
AutomationProperties.AutomationControlType="CheckBox"
215215
AutomationProperties.Name="{helpers:ResourceString Name=AlwaysSwitchToNewlyOpenedTab}"
216216
IsOn="{x:Bind ViewModel.AlwaysSwitchToNewlyOpenedTab, Mode=TwoWay}" />
217217
</wctcontrols:SettingsCard>
@@ -224,35 +224,35 @@
224224
<wctcontrols:SettingsExpander.Items>
225225
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=QuickAccess}">
226226
<ToggleSwitch
227-
AutomationProperties.AutomationControlType="Custom"
227+
AutomationProperties.AutomationControlType="CheckBox"
228228
AutomationProperties.Name="{helpers:ResourceString Name=QuickAccess}"
229229
IsOn="{x:Bind ViewModel.ShowQuickAccessWidget, Mode=TwoWay}" />
230230
</wctcontrols:SettingsCard>
231231

232232
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=Drives}">
233233
<ToggleSwitch
234-
AutomationProperties.AutomationControlType="Custom"
234+
AutomationProperties.AutomationControlType="CheckBox"
235235
AutomationProperties.Name="{helpers:ResourceString Name=Drives}"
236236
IsOn="{x:Bind ViewModel.ShowDrivesWidget, Mode=TwoWay}" />
237237
</wctcontrols:SettingsCard>
238238

239239
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=NetworkLocations}">
240240
<ToggleSwitch
241-
AutomationProperties.AutomationControlType="Custom"
241+
AutomationProperties.AutomationControlType="CheckBox"
242242
AutomationProperties.Name="{helpers:ResourceString Name=NetworkLocations}"
243243
IsOn="{x:Bind ViewModel.ShowNetworkLocationsWidget, Mode=TwoWay}" />
244244
</wctcontrols:SettingsCard>
245245

246246
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=FileTags}">
247247
<ToggleSwitch
248-
AutomationProperties.AutomationControlType="Custom"
248+
AutomationProperties.AutomationControlType="CheckBox"
249249
AutomationProperties.Name="{helpers:ResourceString Name=FileTags}"
250250
IsOn="{x:Bind ViewModel.ShowFileTagsWidget, Mode=TwoWay}" />
251251
</wctcontrols:SettingsCard>
252252

253253
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=RecentFiles}">
254254
<ToggleSwitch
255-
AutomationProperties.AutomationControlType="Custom"
255+
AutomationProperties.AutomationControlType="CheckBox"
256256
AutomationProperties.Name="{helpers:ResourceString Name=RecentFiles}"
257257
IsOn="{x:Bind ViewModel.ShowRecentFilesWidget, Mode=TwoWay}" />
258258
</wctcontrols:SettingsCard>
@@ -276,63 +276,63 @@
276276
<!-- Open in new tab -->
277277
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowOpenInNewTab}">
278278
<ToggleSwitch
279-
AutomationProperties.AutomationControlType="Custom"
279+
AutomationProperties.AutomationControlType="CheckBox"
280280
AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewTab}"
281281
IsOn="{x:Bind ViewModel.ShowOpenInNewTab, Mode=TwoWay}" />
282282
</wctcontrols:SettingsCard>
283283

284284
<!-- Open in new window -->
285285
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowOpenInNewWindow}">
286286
<ToggleSwitch
287-
AutomationProperties.AutomationControlType="Custom"
287+
AutomationProperties.AutomationControlType="CheckBox"
288288
AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewWindow}"
289289
IsOn="{x:Bind ViewModel.ShowOpenInNewWindow, Mode=TwoWay}" />
290290
</wctcontrols:SettingsCard>
291291

292292
<!-- Open in new pane -->
293293
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowOpenInNewPane}">
294294
<ToggleSwitch
295-
AutomationProperties.AutomationControlType="Custom"
295+
AutomationProperties.AutomationControlType="CheckBox"
296296
AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewPane}"
297297
IsOn="{x:Bind ViewModel.ShowOpenInNewPane, Mode=TwoWay}" />
298298
</wctcontrols:SettingsCard>
299299

300300
<!-- Copy path -->
301301
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCopyPath}">
302302
<ToggleSwitch
303-
AutomationProperties.AutomationControlType="Custom"
303+
AutomationProperties.AutomationControlType="CheckBox"
304304
AutomationProperties.Name="{helpers:ResourceString Name=ShowCopyPath}"
305305
IsOn="{x:Bind ViewModel.ShowCopyPath, Mode=TwoWay}" />
306306
</wctcontrols:SettingsCard>
307307

308308
<!-- Create folder with selection -->
309309
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCreateFolderWithSelection}">
310310
<ToggleSwitch
311-
AutomationProperties.AutomationControlType="Custom"
311+
AutomationProperties.AutomationControlType="CheckBox"
312312
AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateFolderWithSelection}"
313313
IsOn="{x:Bind ViewModel.ShowCreateFolderWithSelection, Mode=TwoWay}" />
314314
</wctcontrols:SettingsCard>
315315

316316
<!-- Create alternate data stream -->
317317
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCreateAlternateDataStream}">
318318
<ToggleSwitch
319-
AutomationProperties.AutomationControlType="Custom"
319+
AutomationProperties.AutomationControlType="CheckBox"
320320
AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateAlternateDataStream}"
321321
IsOn="{x:Bind ViewModel.ShowCreateAlternateDataStream, Mode=TwoWay}" />
322322
</wctcontrols:SettingsCard>
323323

324324
<!-- Create shortcut -->
325325
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCreateShortcut}">
326326
<ToggleSwitch
327-
AutomationProperties.AutomationControlType="Custom"
327+
AutomationProperties.AutomationControlType="CheckBox"
328328
AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateShortcut}"
329329
IsOn="{x:Bind ViewModel.ShowCreateShortcut, Mode=TwoWay}" />
330330
</wctcontrols:SettingsCard>
331331

332332
<!-- Compression options -->
333333
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCompressionOptions}">
334334
<ToggleSwitch
335-
AutomationProperties.AutomationControlType="Custom"
335+
AutomationProperties.AutomationControlType="CheckBox"
336336
AutomationProperties.Name="{helpers:ResourceString Name=ShowCompressionOptions}"
337337
IsOn="{x:Bind ViewModel.ShowCompressionOptions, Mode=TwoWay}" />
338338
</wctcontrols:SettingsCard>
@@ -341,23 +341,23 @@
341341
<!-- TODO uncomment code when feature is marked as stable -->
342342
<!--<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowFlattenOptions}">
343343
<ToggleSwitch
344-
AutomationProperties.AutomationControlType="Custom" AutomationProperties.Name="{helpers:ResourceString Name=ShowFlattenOptions}"
344+
AutomationProperties.AutomationControlType="CheckBox" AutomationProperties.Name="{helpers:ResourceString Name=ShowFlattenOptions}"
345345
IsOn="{x:Bind ViewModel.ShowFlattenOptions, Mode=TwoWay}"
346346
/>
347347
</wctcontrols:SettingsCard>-->
348348

349349
<!-- Send To -->
350350
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowSendToMenu}">
351351
<ToggleSwitch
352-
AutomationProperties.AutomationControlType="Custom"
352+
AutomationProperties.AutomationControlType="CheckBox"
353353
AutomationProperties.Name="{helpers:ResourceString Name=ShowSendToMenu}"
354354
IsOn="{x:Bind ViewModel.ShowSendToMenu, Mode=TwoWay}" />
355355
</wctcontrols:SettingsCard>
356356

357357
<!-- Edit tags -->
358358
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowEditTagsMenu}">
359359
<ToggleSwitch
360-
AutomationProperties.AutomationControlType="Custom"
360+
AutomationProperties.AutomationControlType="CheckBox"
361361
AutomationProperties.Name="{helpers:ResourceString Name=ShowEditTagsMenu}"
362362
IsOn="{x:Bind ViewModel.ShowEditTagsMenu, Mode=TwoWay}" />
363363
</wctcontrols:SettingsCard>
@@ -371,7 +371,7 @@
371371
<FontIcon Glyph="&#xE712;" />
372372
</wctcontrols:SettingsCard.HeaderIcon>
373373
<ToggleSwitch
374-
AutomationProperties.AutomationControlType="Custom"
374+
AutomationProperties.AutomationControlType="CheckBox"
375375
AutomationProperties.Name="{helpers:ResourceString Name=SettingsContextMenuOverflow}"
376376
IsOn="{x:Bind ViewModel.MoveShellExtensionsToSubMenu, Mode=TwoWay}" />
377377
</wctcontrols:SettingsCard>

0 commit comments

Comments
 (0)