|
13 | 13 | xmlns:controls="using:CommunityToolkit.WinUI.Controls"
|
14 | 14 | mc:Ignorable="d"
|
15 | 15 | Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
16 |
| - |
17 | 16 | <Page.Resources>
|
18 |
| -<!-- These styles can be referenced to create a consistent SettingsPage layout--> |
19 |
| - |
20 | 17 | <!-- Spacing between cards-->
|
21 | 18 | <x:Doublex:Key="SettingsCardSpacing">4</x:Double>
|
22 |
| - |
23 | 19 | <!-- Style (inc. the correct spacing) of a section header-->
|
24 | 20 | <Stylex:Key="SettingsSectionHeaderTextBlockStyle"
|
25 | 21 | BasedOn="{StaticResource BodyStrongTextBlockStyle}"
|
|
34 | 30 | <StackPanelMaxWidth="1000"
|
35 | 31 | HorizontalAlignment="Stretch"
|
36 | 32 | Spacing="{StaticResource SettingsCardSpacing}">
|
37 |
| - |
38 | 33 | <TextBlockStyle="{StaticResource SettingsSectionHeaderTextBlockStyle}"Text="Coder Desktop" />
|
39 |
| - |
40 | 34 | <controls:SettingsCardDescription="This setting controls whether the Coder Desktop app starts on Windows startup."
|
41 | 35 | Header="Start on login"
|
42 | 36 | HeaderIcon="{ui:FontIcon Glyph=}"
|
43 | 37 | IsEnabled="{x:Bind ViewModel.StartOnLoginDisabled, Converter={StaticResource InverseBoolConverter}, Mode=OneWay}">
|
44 | 38 | <ToggleSwitchIsOn="{x:Bind ViewModel.StartOnLogin, Mode=TwoWay}" />
|
45 | 39 | </controls:SettingsCard>
|
46 |
| - |
47 | 40 | <TextBlockStyle="{StaticResource SettingsSectionHeaderTextBlockStyle}"Text="Coder Connect" />
|
48 | 41 | <controls:SettingsCardDescription="This setting controls whether Coder Connect automatically starts with Coder Desktop."
|
49 | 42 | Header="Connect on launch"
|
50 | 43 | HeaderIcon="{ui:FontIcon Glyph=}"
|
51 | 44 | >
|
52 | 45 | <ToggleSwitchIsOn="{x:Bind ViewModel.ConnectOnLaunch, Mode=TwoWay}" />
|
53 | 46 | </controls:SettingsCard>
|
54 |
| - |
55 | 47 | </StackPanel>
|
56 | 48 | </Grid>
|
57 | 49 | </ScrollViewer>
|
58 |
| - |
59 | 50 | </Page>
|