|
1 |
| -<Page |
2 |
| - x:Class="Notepads.Views.Settings.AdvancedSettingsPage" |
3 |
| - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 |
| - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
7 |
| - xmlns:utilities="using:Notepads.Utilities" |
8 |
| - mc:Ignorable="d"> |
| 1 | +<Page x:Class="Notepads.Views.Settings.AdvancedSettingsPage" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:utilities="using:Notepads.Utilities" |
| 7 | + mc:Ignorable="d"> |
9 | 8 |
|
10 | 9 | <Grid>
|
11 | 10 | <Grid.ChildrenTransitions>
|
|
17 | 16 | <BrushTransition />
|
18 | 17 | </Grid.BackgroundTransition>
|
19 | 18 |
|
20 |
| - <ScrollViewer |
21 |
| - Grid.Row="0" |
22 |
| - Padding="{StaticResource SettingsPagePadding}" |
23 |
| - IsTabStop="False" |
24 |
| - UseSystemFocusVisuals="False" |
25 |
| - VerticalScrollBarVisibility="Auto" |
26 |
| - VerticalScrollMode="Auto"> |
| 19 | + <ScrollViewer Grid.Row="0" |
| 20 | + Padding="{StaticResource SettingsPagePadding}" |
| 21 | + VerticalScrollBarVisibility="Auto" |
| 22 | + VerticalScrollMode="Auto" |
| 23 | + IsTabStop="False" |
| 24 | + UseSystemFocusVisuals="False"> |
27 | 25 | <StackPanel Margin="{StaticResource SettingsPageFooterMargin}" HorizontalAlignment="Left">
|
28 | 26 |
|
29 | 27 | <!-- Status Bar -->
|
|
45 | 43 |
|
46 | 44 | <!-- Session Snapshot -->
|
47 | 45 | <StackPanel x:Name="SessionSnapshotSettingsPanel" Style="{StaticResource SettingsSectionStyle}">
|
48 |
| - <TextBlock x:Name="SessionSnapshotSettingsTitle" x:Uid="/Settings/AdvancedPage_SessionSnapshotSettings_Title" Style="{StaticResource CompactSubtitleTextBlockStyle}" /> |
| 46 | + <TextBlock x:Name="SessionSnapshotSettingsTitle" |
| 47 | + x:Uid="/Settings/AdvancedPage_SessionSnapshotSettings_Title" |
| 48 | + Style="{StaticResource CompactSubtitleTextBlockStyle}" /> |
49 | 49 | <StackPanel x:Name="SessionSnapshotSettingsControls">
|
50 | 50 | <ToggleSwitch x:Name="EnableSessionSnapshotToggleSwitch" x:Uid="/Settings/AdvancedPage_SessionSnapshotSettings_OnOffToggleSwitch" Style="{StaticResource CustomToggleSwitchStyle}" />
|
51 | 51 | <TextBlock x:Uid="/Settings/AdvancedPage_SessionSnapshotSettings_Description" Style="{ThemeResource DescriptionTextBlockStyle}" />
|
|
54 | 54 |
|
55 | 55 | <!-- Launch -->
|
56 | 56 | <StackPanel x:Name="LaunchPreferenceSettingsPanel" Style="{StaticResource SettingsSectionStyle}">
|
57 |
| - <TextBlock x:Name="LaunchPreferenceSettingsTitle" x:Uid="/Settings/AdvancedPage_LaunchPreferenceSettings_Title" Style="{StaticResource CompactSubtitleTextBlockStyle}" /> |
| 57 | + <TextBlock x:Name="LaunchPreferenceSettingsTitle" |
| 58 | + x:Uid="/Settings/AdvancedPage_LaunchPreferenceSettings_Title" |
| 59 | + Style="{StaticResource CompactSubtitleTextBlockStyle}" /> |
58 | 60 | <StackPanel x:Name="LaunchPreferenceSettingsControls">
|
59 | 61 | <ToggleSwitch x:Name="AlwaysOpenNewWindowToggleSwitch" x:Uid="/Settings/AdvancedPage_LaunchPreferenceSettings_AlwaysOpenNewWindowToggleSwitch" Style="{StaticResource CustomToggleSwitchStyle}" />
|
60 |
| - <TextBlock |
61 |
| - x:Uid="/Settings/AdvancedPage_AlwaysOpenNewWindow_Description" |
62 |
| - Margin="0,0,0,10" |
63 |
| - Style="{ThemeResource DescriptionTextBlockStyle}" /> |
| 62 | + <TextBlock x:Uid="/Settings/AdvancedPage_AlwaysOpenNewWindow_Description" |
| 63 | + Style="{ThemeResource DescriptionTextBlockStyle}" |
| 64 | + Margin="0,0,0,10" /> |
64 | 65 | <ToggleSwitch x:Name="ExitWhenLastTabClosedToggleSwitch" x:Uid="/Settings/AdvancedPage_LaunchPreferenceSettings_ExitWhenLastTabClosedToggleSwitch" Style="{StaticResource CustomToggleSwitchStyle}" />
|
65 | 66 | </StackPanel>
|
66 | 67 | </StackPanel>
|
67 | 68 |
|
68 | 69 | <!-- Language -->
|
69 | 70 | <StackPanel Style="{StaticResource SettingsSectionStyle}">
|
70 |
| - <TextBlock x:Name="LanguagePreferenceSettingsTitle" x:Uid="/Settings/AdvancedPage_LanguagePreferenceSettings_Title" Style="{StaticResource CompactSubtitleTextBlockStyle}" /> |
| 71 | + <TextBlock x:Name="LanguagePreferenceSettingsTitle" |
| 72 | + x:Uid="/Settings/AdvancedPage_LanguagePreferenceSettings_Title" |
| 73 | + Style="{StaticResource CompactSubtitleTextBlockStyle}" /> |
71 | 74 | <StackPanel x:Name="LanguagePreferenceSettingsControls" Margin="0,6,0,0">
|
72 |
| - <ComboBox |
73 |
| - x:Name="LanguagePicker" |
74 |
| - HorizontalAlignment="Stretch" |
75 |
| - VerticalAlignment="Center" |
76 |
| - Background="Transparent" |
77 |
| - IsTextSearchEnabled="True" |
78 |
| - ItemsSource="{x:Bind SupportedLanguages, Mode=OneTime}"> |
| 75 | + <ComboBox x:Name="LanguagePicker" |
| 76 | + HorizontalAlignment="Stretch" |
| 77 | + VerticalAlignment="Center" |
| 78 | + IsTextSearchEnabled="True" |
| 79 | + ItemsSource="{x:Bind SupportedLanguages, Mode=OneTime}"> |
79 | 80 | <ComboBox.ItemTemplate>
|
80 | 81 | <DataTemplate x:DataType="utilities:LanguageItem">
|
81 | 82 | <TextBlock Text="{x:Bind Name}" />
|
82 | 83 | </DataTemplate>
|
83 | 84 | </ComboBox.ItemTemplate>
|
84 | 85 | </ComboBox>
|
85 |
| - <TextBlock |
86 |
| - x:Name="RestartPrompt" |
87 |
| - x:Uid="/Settings/AdvancedPage_LanguagePreferenceSettings_RestartPrompt" |
88 |
| - Margin="0,8,0,0" |
89 |
| - Foreground="{ThemeResource SystemControlErrorTextForegroundBrush}" |
90 |
| - Style="{ThemeResource DescriptionTextBlockStyle}" |
91 |
| - Visibility="Collapsed" /> |
92 |
| - <TextBlock |
93 |
| - x:Uid="/Settings/AdvancedPage_LanguagePreferenceSettings_Description" |
94 |
| - Margin="0,6,0,0" |
95 |
| - Style="{ThemeResource DescriptionTextBlockStyle}" /> |
| 86 | + <TextBlock x:Name="RestartPrompt" |
| 87 | + x:Uid="/Settings/AdvancedPage_LanguagePreferenceSettings_RestartPrompt" |
| 88 | + Style="{ThemeResource DescriptionTextBlockStyle}" |
| 89 | + Foreground="{ThemeResource SystemControlErrorTextForegroundBrush}" |
| 90 | + Margin="0,8,0,0" |
| 91 | + Visibility="Collapsed" /> |
| 92 | + <TextBlock x:Uid="/Settings/AdvancedPage_LanguagePreferenceSettings_Description" |
| 93 | + Style="{ThemeResource DescriptionTextBlockStyle}" |
| 94 | + Margin="0,6,0,0" /> |
96 | 95 | </StackPanel>
|
97 | 96 | </StackPanel>
|
98 | 97 |
|
|
0 commit comments