feat.完善了时钟轻应用,为启动器提供了多语言支持

This commit is contained in:
lincube
2026-05-18 12:26:23 +08:00
parent 93758fc083
commit b6d820a320
63 changed files with 4581 additions and 342 deletions

View File

@@ -3,10 +3,12 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:LanMountainDesktop.Launcher.ViewModels"
xmlns:res="clr-namespace:LanMountainDesktop.Launcher.Resources"
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="600"
x:Class="LanMountainDesktop.Launcher.Views.DevDebugWindow"
x:DataType="vm:DevDebugWindowViewModel"
Title="开发调试窗口 - Launcher"
x:CompileBindings="False"
Title="{x:Static res:Strings.DevDebug_Title}"
Width="500"
Height="600"
WindowStartupLocation="CenterScreen"
@@ -43,7 +45,7 @@
Padding="15">
<Grid ColumnDefinitions="*,Auto">
<StackPanel Grid.Column="0">
<TextBlock Text="🚀 启动画面 (SplashWindow)"
<TextBlock Text="{x:Static res:Strings.DevDebug_Splash}"
FontWeight="SemiBold"
FontSize="14" />
<TextBlock Text="显示启动进度和状态"
@@ -52,11 +54,11 @@
Margin="0,3,0,0" />
</StackPanel>
<StackPanel Grid.Column="1" Spacing="8">
<ToggleSwitch Content="启用功能"
<ToggleSwitch Content="{x:Static res:Strings.DevDebug_EnableFeature}"
IsChecked="{Binding IsSplashEnabled}"
OnContent="功能"
OffContent="查看" />
<Button Content="打开"
<Button Content="{x:Static res:Strings.DevDebug_Open}"
Command="{Binding OpenSplashCommand}"
HorizontalAlignment="Right" />
</StackPanel>
@@ -69,7 +71,7 @@
Padding="15">
<Grid ColumnDefinitions="*,Auto">
<StackPanel Grid.Column="0">
<TextBlock Text="❌ 错误页面 (ErrorWindow)"
<TextBlock Text="{x:Static res:Strings.DevDebug_Error}"
FontWeight="SemiBold"
FontSize="14" />
<TextBlock Text="显示错误信息和重试选项"
@@ -78,11 +80,11 @@
Margin="0,3,0,0" />
</StackPanel>
<StackPanel Grid.Column="1" Spacing="8">
<ToggleSwitch Content="启用功能"
<ToggleSwitch Content="{x:Static res:Strings.DevDebug_EnableFeature}"
IsChecked="{Binding IsErrorEnabled}"
OnContent="功能"
OffContent="查看" />
<Button Content="打开"
<Button Content="{x:Static res:Strings.DevDebug_Open}"
Command="{Binding OpenErrorCommand}"
HorizontalAlignment="Right" />
</StackPanel>
@@ -95,7 +97,7 @@
Padding="15">
<Grid ColumnDefinitions="*,Auto">
<StackPanel Grid.Column="0">
<TextBlock Text="⬆️ 更新页面 (UpdateWindow)"
<TextBlock Text="{x:Static res:Strings.DevDebug_Update}"
FontWeight="SemiBold"
FontSize="14" />
<TextBlock Text="显示更新进度和状态"
@@ -104,11 +106,11 @@
Margin="0,3,0,0" />
</StackPanel>
<StackPanel Grid.Column="1" Spacing="8">
<ToggleSwitch Content="启用功能"
<ToggleSwitch Content="{x:Static res:Strings.DevDebug_EnableFeature}"
IsChecked="{Binding IsUpdateEnabled}"
OnContent="功能"
OffContent="查看" />
<Button Content="打开"
<Button Content="{x:Static res:Strings.DevDebug_Open}"
Command="{Binding OpenUpdateCommand}"
HorizontalAlignment="Right" />
</StackPanel>
@@ -121,7 +123,7 @@
Padding="15">
<Grid ColumnDefinitions="*,Auto">
<StackPanel Grid.Column="0">
<TextBlock Text="👋 OOBE页面 (OobeWindow)"
<TextBlock Text="{x:Static res:Strings.DevDebug_Oobe}"
FontWeight="SemiBold"
FontSize="14" />
<TextBlock Text="首次运行引导页面"
@@ -130,11 +132,11 @@
Margin="0,3,0,0" />
</StackPanel>
<StackPanel Grid.Column="1" Spacing="8">
<ToggleSwitch Content="启用功能"
<ToggleSwitch Content="{x:Static res:Strings.DevDebug_EnableFeature}"
IsChecked="{Binding IsOobeEnabled}"
OnContent="功能"
OffContent="查看" />
<Button Content="打开"
<Button Content="{x:Static res:Strings.DevDebug_Open}"
Command="{Binding OpenOobeCommand}"
HorizontalAlignment="Right" />
</StackPanel>
@@ -147,7 +149,7 @@
Padding="15">
<Grid ColumnDefinitions="*,Auto">
<StackPanel Grid.Column="0">
<TextBlock Text="📁 数据位置选择 (DataLocationPromptWindow)"
<TextBlock Text="{x:Static res:Strings.DevDebug_DataLocation}"
FontWeight="SemiBold"
FontSize="14" />
<TextBlock Text="选择数据保存位置"
@@ -156,11 +158,11 @@
Margin="0,3,0,0" />
</StackPanel>
<StackPanel Grid.Column="1" Spacing="8">
<ToggleSwitch Content="启用功能"
<ToggleSwitch Content="{x:Static res:Strings.DevDebug_EnableFeature}"
IsChecked="{Binding IsDataLocationEnabled}"
OnContent="功能"
OffContent="查看" />
<Button Content="打开"
<Button Content="{x:Static res:Strings.DevDebug_Open}"
Command="{Binding OpenDataLocationCommand}"
HorizontalAlignment="Right" />
</StackPanel>
@@ -176,10 +178,10 @@
HorizontalAlignment="Center"
Spacing="10"
Margin="0,15">
<Button Content="全部设为查看模式"
<Button Content="{x:Static res:Strings.DevDebug_SetAllViewMode}"
Command="{Binding SetAllViewOnlyCommand}"
Background="{DynamicResource SystemControlBackgroundAltMediumBrush}" />
<Button Content="全部设为功能模式"
<Button Content="{x:Static res:Strings.DevDebug_SetAllFunctionMode}"
Command="{Binding SetAllFunctionalCommand}"
Background="{DynamicResource SystemControlHighlightAccentBrush}"
Foreground="White" />
@@ -197,7 +199,7 @@
Opacity="0.8"
TextTrimming="CharacterEllipsis" />
<Button Grid.Column="1"
Content="关闭"
Content="{x:Static res:Strings.DevDebug_Close}"
Command="{Binding CloseCommand}"
Padding="15,5" />
</Grid>