ef5377f85c
重构主题和语言设置功能,将相关代码从主窗口迁移至新增的个性化设置页面 优化浮动工具栏图标选择逻辑,移除冗余代码 统一设置页面中开关控件的样式和行为 修复设置页面导航项的选择状态问题
66 lines
3.5 KiB
XML
66 lines
3.5 KiB
XML
<ui:Page x:Class="Ink_Canvas.Windows.SettingsViews.Pages.PrivacyPage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:Ink_Canvas.Windows.SettingsViews.Pages"
|
|
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
|
|
xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf"
|
|
xmlns:i18n="clr-namespace:Ink_Canvas.MarkupExtensions"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
mc:Ignorable="d"
|
|
|
|
Title="隐私">
|
|
|
|
<ScrollViewer PanningMode="VerticalFirst">
|
|
<Grid Margin="59,0,59,0">
|
|
<FrameworkElement.Resources>
|
|
<sys:Double x:Key="SettingsCardSpacing">4</sys:Double>
|
|
<Style x:Key="SettingsSectionHeaderTextBlockStyle"
|
|
BasedOn="{StaticResource BodyStrongTextBlockStyle}"
|
|
TargetType="TextBlock">
|
|
<Style.Setters>
|
|
<Setter Property="Margin" Value="1,30,0,6" />
|
|
</Style.Setters>
|
|
</Style>
|
|
</FrameworkElement.Resources>
|
|
<Grid>
|
|
<ikw:SimpleStackPanel MaxWidth="1000"
|
|
HorizontalAlignment="Stretch"
|
|
Spacing="{StaticResource SettingsCardSpacing}">
|
|
|
|
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}"
|
|
Text="{i18n:I18n Key=About_PrivacyAndTelemetry}" />
|
|
|
|
<ui:SettingsExpander Header="{i18n:I18n Key=About_PrivacyAndTelemetry}"
|
|
IsExpanded="True"
|
|
d:Visibility="Visible" d:IsExpanded="True">
|
|
<ui:SettingsExpander.HeaderIcon>
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Shield}" />
|
|
</ui:SettingsExpander.HeaderIcon>
|
|
<ui:SettingsExpander.Items>
|
|
<ui:SettingsCard ContentAlignment="Left">
|
|
<CheckBox x:Name="CheckBoxTelemetryPrivacyAccepted"
|
|
Content="{i18n:I18n Key=About_PrivacyAgreement}"
|
|
Checked="CheckBoxTelemetryPrivacyAccepted_Checked"
|
|
Unchecked="CheckBoxTelemetryPrivacyAccepted_Checked" />
|
|
</ui:SettingsCard>
|
|
<ui:SettingsCard Header="{i18n:I18n Key=About_TelemetryLabel}">
|
|
<ComboBox x:Name="ComboBoxTelemetryUploadLevel"
|
|
SelectionChanged="ComboBoxTelemetryUploadLevel_SelectionChanged">
|
|
<ComboBoxItem Tag="0" Content="{i18n:I18n Key=About_Telemetry_Off}" />
|
|
<ComboBoxItem Tag="1" Content="{i18n:I18n Key=About_Telemetry_Basic}" />
|
|
<ComboBoxItem Tag="2" Content="{i18n:I18n Key=About_Telemetry_Optional}" />
|
|
</ComboBox>
|
|
</ui:SettingsCard>
|
|
</ui:SettingsExpander.Items>
|
|
</ui:SettingsExpander>
|
|
|
|
<Rectangle Height="48" />
|
|
|
|
</ikw:SimpleStackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</ui:Page>
|