253 lines
8.0 KiB
XML
253 lines
8.0 KiB
XML
<Window
|
|
x:Class="_29WxOrderWpf.Ctrls.Settings.SettingsView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:_29WxOrderWpf.Ctrls.Settings"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:vm="[vm ]clr-namespace:_29WxOrderWpf.ViewModels"
|
|
xmlns:wpf="WPFCommon"
|
|
Title="设置"
|
|
Width="800"
|
|
Height="450"
|
|
d:DataContext="{d:DesignInstance Type=vm:SettingViewModel}"
|
|
ResizeMode="NoResize"
|
|
ShowInTaskbar="False"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowState="Normal"
|
|
mc:Ignorable="d">
|
|
<Border BorderBrush="#e8eaed" BorderThickness="1">
|
|
<TabControl
|
|
ItemContainerStyle="{StaticResource SideTabItem}"
|
|
Style="{StaticResource SideTabControl}"
|
|
TabStripPlacement="Left">
|
|
|
|
<TabItem Header="发货">
|
|
<StackPanel>
|
|
<Border Style="{StaticResource SettingRow}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel>
|
|
<TextBlock Style="{StaticResource SettingTitle}" Text="礼品单发送" />
|
|
<TextBlock Style="{StaticResource SettingDesc}" Text="超出6元自动改为礼品二(实物)" />
|
|
</StackPanel>
|
|
<CheckBox
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
IsChecked="{Binding AutoSwitchGiftType}"
|
|
Style="{StaticResource ToggleSwitch}" />
|
|
</Grid>
|
|
</Border>
|
|
</StackPanel>
|
|
</TabItem>
|
|
|
|
<!-- ========== 外观 ========== -->
|
|
<!--
|
|
<TabItem Header="外观" Tag="🎨">
|
|
<StackPanel
|
|
MaxWidth="720"
|
|
Margin="40,32,40,32"
|
|
HorizontalAlignment="Left">
|
|
<TextBlock Style="{StaticResource PageTitle}" Text="外观" />
|
|
<TextBlock Style="{StaticResource PageSubtitle}" Text="自定义界面的主题、颜色和字体。" />
|
|
|
|
<Border Style="{StaticResource SettingsCard}">
|
|
<StackPanel>
|
|
<Border Style="{StaticResource SettingRow}">
|
|
<StackPanel>
|
|
<TextBlock Style="{StaticResource SettingTitle}" Text="主题" />
|
|
<TextBlock Style="{StaticResource SettingDesc}" Text="选择浅色、深色或跟随系统" />
|
|
<StackPanel Margin="0,12,0,0" Orientation="Horizontal">
|
|
<RadioButton
|
|
Margin="0,0,20,0"
|
|
Content="浅色"
|
|
IsChecked="True" />
|
|
<RadioButton Margin="0,0,20,0" Content="深色" />
|
|
<RadioButton Content="跟随系统" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
<Border BorderThickness="0" Style="{StaticResource SettingRow}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel>
|
|
<TextBlock Style="{StaticResource SettingTitle}" Text="强调色" />
|
|
<TextBlock Style="{StaticResource SettingDesc}" Text="用于按钮、选中项等强调元素" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Border
|
|
Width="24"
|
|
Height="24"
|
|
Margin="0,0,8,0"
|
|
Background="#0078D4"
|
|
CornerRadius="12" />
|
|
<Border
|
|
Width="24"
|
|
Height="24"
|
|
Margin="0,0,8,0"
|
|
Background="#6E4AFF"
|
|
CornerRadius="12" />
|
|
<Border
|
|
Width="24"
|
|
Height="24"
|
|
Background="#E73C3C"
|
|
CornerRadius="12" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</TabItem>
|
|
|
|
-->
|
|
<!-- ========== 账户 ========== -->
|
|
<!--
|
|
<TabItem Header="账户" Tag="👤">
|
|
<StackPanel
|
|
MaxWidth="720"
|
|
Margin="40,32,40,32"
|
|
HorizontalAlignment="Left">
|
|
<TextBlock Style="{StaticResource PageTitle}" Text="账户" />
|
|
<TextBlock Style="{StaticResource PageSubtitle}" Text="管理你的账号、头像和登录方式。" />
|
|
|
|
<Border Padding="20" Style="{StaticResource SettingsCard}">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Border
|
|
Width="64"
|
|
Height="64"
|
|
Background="#0078D4"
|
|
CornerRadius="32">
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="White"
|
|
Text="A" />
|
|
</Border>
|
|
<StackPanel Margin="16,0,0,0" VerticalAlignment="Center">
|
|
<TextBlock
|
|
FontSize="16"
|
|
FontWeight="SemiBold"
|
|
Foreground="#1F2329"
|
|
Text="Alex" />
|
|
<TextBlock
|
|
Margin="0,2,0,0"
|
|
FontSize="13"
|
|
Foreground="#8A9099"
|
|
Text="alex@example.com" />
|
|
</StackPanel>
|
|
<Button
|
|
Margin="20,0,0,0"
|
|
Padding="16,6"
|
|
VerticalAlignment="Center"
|
|
Content="编辑资料" />
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</TabItem>
|
|
|
|
-->
|
|
<!-- ========== 隐私 ========== -->
|
|
<!--
|
|
<TabItem Header="隐私" Tag="🔒">
|
|
<StackPanel
|
|
MaxWidth="720"
|
|
Margin="40,32,40,32"
|
|
HorizontalAlignment="Left">
|
|
<TextBlock Style="{StaticResource PageTitle}" Text="隐私" />
|
|
<TextBlock Style="{StaticResource PageSubtitle}" Text="控制应用如何使用你的数据。" />
|
|
|
|
<Border Style="{StaticResource SettingsCard}">
|
|
<StackPanel>
|
|
<Border Style="{StaticResource SettingRow}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel>
|
|
<TextBlock Style="{StaticResource SettingTitle}" Text="发送匿名使用数据" />
|
|
<TextBlock Style="{StaticResource SettingDesc}" Text="帮助改进产品,不含个人身份信息" />
|
|
</StackPanel>
|
|
<CheckBox
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
IsChecked="True"
|
|
Style="{StaticResource ToggleSwitch}" />
|
|
</Grid>
|
|
</Border>
|
|
<Border BorderThickness="0" Style="{StaticResource SettingRow}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel>
|
|
<TextBlock Style="{StaticResource SettingTitle}" Text="个性化推荐" />
|
|
<TextBlock Style="{StaticResource SettingDesc}" Text="根据使用习惯推荐内容" />
|
|
</StackPanel>
|
|
<CheckBox
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource ToggleSwitch}" />
|
|
</Grid>
|
|
</Border>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</TabItem>
|
|
|
|
-->
|
|
<!-- ========== 关于 ========== -->
|
|
<!--
|
|
<TabItem Header="关于" Tag="{StaticResource txt-table_stack_above}">
|
|
<StackPanel
|
|
MaxWidth="720"
|
|
Margin="40,32,40,32"
|
|
HorizontalAlignment="Left">
|
|
<TextBlock Style="{StaticResource PageTitle}" Text="关于" />
|
|
<TextBlock Style="{StaticResource PageSubtitle}" Text="版本与许可信息。" />
|
|
|
|
<Border Padding="20" Style="{StaticResource SettingsCard}">
|
|
<StackPanel>
|
|
<TextBlock
|
|
FontSize="18"
|
|
FontWeight="SemiBold"
|
|
Foreground="#1F2329"
|
|
Text="MyApp" />
|
|
<TextBlock
|
|
Margin="0,4,0,0"
|
|
FontSize="13"
|
|
Foreground="#8A9099"
|
|
Text="版本 1.0.0 (Build 20261005)" />
|
|
<TextBlock
|
|
Margin="0,16,0,0"
|
|
FontSize="12"
|
|
Foreground="#8A9099"
|
|
Text="© 2026 My Company. All rights reserved." />
|
|
<StackPanel Margin="0,16,0,0" Orientation="Horizontal">
|
|
<Button
|
|
Margin="0,0,8,0"
|
|
Padding="16,6"
|
|
Content="检查更新" />
|
|
<Button Padding="16,6" Content="查看许可" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</TabItem>-->
|
|
|
|
</TabControl>
|
|
</Border>
|
|
</Window>
|