c058fef7d5
## Summary Fixes the incomplete Simplified Chinese localization shipped in v1.3.0 and prepares v1.3.1. ## Changes - Completed zh-CN localization coverage across the main UI. - Added/updated localization keys for primary views, tray/status text, notifications, and settings. - Kept en-US as the default language. - Updated version metadata to 1.3.1. - Changed installer display name to ThreadPilot while keeping version metadata separate. - Added guarded cleanup for obsolete ThreadPilot 0.1.0-beta uninstall entry. - Improved uninstall cleanup for ThreadPilot AppData, startup task, and HKCU Run entry. - Added localization and packaging metadata tests. ## Validation - dotnet build ThreadPilot_1.sln: passed, 0 warnings - dotnet test ThreadPilot_1.sln: passed, 524 tests ## Safety - No change to elevation behavior. - No change to affinity/process control behavior. - No change to power plan or system tweak behavior. - Normal install/update preserves user settings. - Full uninstall removes ThreadPilot-owned AppData for the uninstalling user.
75 lines
3.8 KiB
XML
75 lines
3.8 KiB
XML
<Window x:Class="ThreadPilot.Views.SettingsWindow"
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:ThreadPilot.Views"
|
|
mc:Ignorable="d"
|
|
Title="{DynamicResource SettingsWindow_Title}"
|
|
Height="700" Width="900"
|
|
MinHeight="600" MinWidth="800"
|
|
WindowStartupLocation="CenterOwner"
|
|
ShowInTaskbar="False"
|
|
Icon="pack://application:,,,/assets/icons/ico.ico">
|
|
|
|
<Window.Resources>
|
|
<Style TargetType="Window">
|
|
<Setter Property="Background" Value="{DynamicResource AppBackgroundBrush}"/>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<Grid>
|
|
<local:SettingsView x:Name="SettingsViewControl"/>
|
|
|
|
<Grid x:Name="UnsavedSettingsOverlay"
|
|
Visibility="Collapsed"
|
|
Background="{DynamicResource OverlayBrush}"
|
|
Panel.ZIndex="10"
|
|
AutomationProperties.Name="{DynamicResource MainWindow_UnsavedSettingsDialog}">
|
|
<Border Background="{DynamicResource CardSurfaceBrush}"
|
|
BorderBrush="{DynamicResource BorderSubtleBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="{DynamicResource StandardCardCornerRadius}"
|
|
Padding="24"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
MinWidth="420"
|
|
MaxWidth="560">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="12" ShadowDepth="0" Opacity="0.18"/>
|
|
</Border.Effect>
|
|
<StackPanel>
|
|
<TextBlock Text="{DynamicResource SettingsWindow_UnsavedTitle}"
|
|
FontSize="22"
|
|
FontWeight="SemiBold"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
Margin="0,0,0,10"/>
|
|
<TextBlock Text="{DynamicResource SettingsWindow_UnsavedDescription}"
|
|
TextWrapping="Wrap"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
Margin="0,0,0,18"/>
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<Button Content="{DynamicResource SettingsWindow_Cancel}"
|
|
Click="UnsavedSettingsCancel_Click"
|
|
Background="{DynamicResource ControlFillColorDefaultBrush}"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
Padding="16,8"
|
|
Margin="0,0,10,0"/>
|
|
<Button Content="{DynamicResource SettingsWindow_Discard}"
|
|
Click="UnsavedSettingsDiscard_Click"
|
|
Background="{DynamicResource ControlFillColorDefaultBrush}"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
Padding="16,8"
|
|
Margin="0,0,10,0"/>
|
|
<Button Content="{DynamicResource SettingsWindow_Save}"
|
|
Click="UnsavedSettingsSave_Click"
|
|
Background="{DynamicResource AccentFillColorDefaultBrush}"
|
|
Foreground="{DynamicResource TextOnAccentFillColorPrimaryBrush}"
|
|
Padding="16,8"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|