Skip to content

Commit a5a37b6

Browse files
committed
Dev Tools
1 parent 2a74810 commit a5a37b6

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@
266266
<!-- Show shelf pane toggle button -->
267267
<wctcontrols:SettingsCard
268268
x:Name="ShowShelfPaneSetting"
269-
Visibility="{x:Bind ViewModel.IsAppEnvironmentDev, Mode=OneTime}"
270-
Header="{helpers:ResourceString Name=ShowShelfPaneButtonInAddressBar}">
269+
Header="{helpers:ResourceString Name=ShowShelfPaneButtonInAddressBar}"
270+
Visibility="{x:Bind ViewModel.IsAppEnvironmentDev, Mode=OneTime}">
271271
<ToggleSwitch
272272
AutomationProperties.Name="{helpers:ResourceString Name=ShowShelfPaneButtonInAddressBar}"
273273
IsOn="{x:Bind ViewModel.ShowShelfPaneToggleButton, Mode=TwoWay}"

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

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
88
xmlns:helpers="using:Files.App.Helpers"
99
xmlns:i="using:Microsoft.Xaml.Interactivity"
10-
xmlns:local="using:Files.App.UserControls.Settings"
1110
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
1211
xmlns:uc="using:Files.App.UserControls"
1312
xmlns:vm="using:Files.App.ViewModels.Settings"
13+
xmlns:wctcontrols="using:CommunityToolkit.WinUI.Controls"
1414
xmlns:wctconverters="using:CommunityToolkit.WinUI.Converters"
1515
mc:Ignorable="d">
1616

@@ -50,15 +50,15 @@
5050
Text="{helpers:ResourceString Name=DevTools}" />
5151

5252
<!-- Display Open IDE status bar button -->
53-
<local:SettingsBlockControl Title="{helpers:ResourceString Name=DisplayOpenIDE}" HorizontalAlignment="Stretch">
54-
<local:SettingsBlockControl.Icon>
53+
<wctcontrols:SettingsExpander Header="{helpers:ResourceString Name=DisplayOpenIDE}">
54+
<wctcontrols:SettingsExpander.HeaderIcon>
5555
<FontIcon Glyph="&#xE7AC;" />
56-
</local:SettingsBlockControl.Icon>
56+
</wctcontrols:SettingsExpander.HeaderIcon>
5757
<uc:ComboBoxEx
5858
AutomationProperties.Name="{helpers:ResourceString Name=DisplayOpenIDE}"
5959
ItemsSource="{x:Bind ViewModel.OpenInIDEOptions.Values}"
6060
SelectedItem="{x:Bind ViewModel.SelectedOpenInIDEOption, Mode=TwoWay}" />
61-
<local:SettingsBlockControl.ExpandableContent>
61+
<wctcontrols:SettingsExpander.Items>
6262
<StackPanel Orientation="Vertical">
6363
<Grid
6464
x:Name="IDEConfigGrid"
@@ -211,32 +211,30 @@
211211
Style="{StaticResource AccentButtonStyle}" />
212212
</StackPanel>
213213
</StackPanel>
214-
</local:SettingsBlockControl.ExpandableContent>
215-
</local:SettingsBlockControl>
214+
</wctcontrols:SettingsExpander.Items>
215+
</wctcontrols:SettingsExpander>
216216

217217
<!-- Connect to GitHub -->
218-
<local:SettingsBlockControl
218+
<wctcontrols:SettingsCard
219219
x:Name="ConnectToGitHubSection"
220-
Title="{helpers:ResourceString Name=ConnectToGitHub}"
221-
HorizontalAlignment="Stretch"
222-
x:Load="{x:Bind ViewModel.IsLogoutEnabled, Converter={StaticResource BoolNegationConverter}, Mode=OneWay}">
223-
<local:SettingsBlockControl.Icon>
220+
x:Load="{x:Bind ViewModel.IsLogoutEnabled, Converter={StaticResource BoolNegationConverter}, Mode=OneWay}"
221+
Header="{helpers:ResourceString Name=ConnectToGitHub}">
222+
<wctcontrols:SettingsCard.HeaderIcon>
224223
<FontIcon Glyph="&#xF0B9;" />
225-
</local:SettingsBlockControl.Icon>
224+
</wctcontrols:SettingsCard.HeaderIcon>
226225
<Button Command="{x:Bind ViewModel.ConnectToGitHubCommand}" Content="{helpers:ResourceString Name=Login}" />
227-
</local:SettingsBlockControl>
226+
</wctcontrols:SettingsCard>
228227

229228
<!-- Remove credentials -->
230-
<local:SettingsBlockControl
229+
<wctcontrols:SettingsCard
231230
x:Name="RemoveCredentialsSection"
232-
Title="{helpers:ResourceString Name=ConnectedToGitHub}"
233-
HorizontalAlignment="Stretch"
234-
x:Load="{x:Bind ViewModel.IsLogoutEnabled, Mode=OneWay}">
235-
<local:SettingsBlockControl.Icon>
231+
x:Load="{x:Bind ViewModel.IsLogoutEnabled, Mode=OneWay}"
232+
Header="{helpers:ResourceString Name=ConnectedToGitHub}">
233+
<wctcontrols:SettingsCard.HeaderIcon>
236234
<FontIcon Glyph="&#xF0B9;" />
237-
</local:SettingsBlockControl.Icon>
235+
</wctcontrols:SettingsCard.HeaderIcon>
238236
<Button Command="{x:Bind ViewModel.RemoveCredentialsCommand}" Content="{helpers:ResourceString Name=Logout}" />
239-
</local:SettingsBlockControl>
237+
</wctcontrols:SettingsCard>
240238

241239
</StackPanel>
242240

0 commit comments

Comments
 (0)