mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
Add automatic release version stamping and multiple launcher reliability improvements. The Release workflow now runs scripts/Set-ReleaseVersion.ps1 in build jobs to inject tag-derived Version/AssemblyVersion into project metadata; several .csproj/Directory.Build.props and app.manifest files were changed to use a dev placeholder. Introduced AppVersionProvider (and related runtime metadata) to centralize version resolution and updated DeploymentLocator to use it and to prefer package-root/version.json. Launcher startup flow was hardened: added startup success tracking, public-activation recovery path, improved success/fallback semantics, and related IPC handling. UI/UX fixes include OOBE entrance/exit animation improvements (scaling-aware, concurrent fade+translate) and minor window lifecycle reorder in DesktopShellHost. CommandContext now recognizes restart and key=value args. New DesktopTrayService and .trae spec files (spec, checklist, tasks) document shell/tray hardening work. Miscellaneous logging, comments and housekeeping edits across launcher and shared contracts to support the above.
81 lines
3.0 KiB
XML
81 lines
3.0 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
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:views="clr-namespace:LanMountainDesktop.Launcher.Views"
|
|
xmlns:ui="using:FluentAvalonia.UI.Controls"
|
|
mc:Ignorable="d"
|
|
d:DesignWidth="600"
|
|
d:DesignHeight="500"
|
|
x:Class="LanMountainDesktop.Launcher.Views.OobeWindow"
|
|
x:DataType="views:OobeWindow"
|
|
Title="欢迎使用阑山桌面"
|
|
Width="600"
|
|
Height="500"
|
|
CanResize="False"
|
|
WindowStartupLocation="CenterScreen"
|
|
Background="{DynamicResource SolidBackgroundFillColorBaseBrush}"
|
|
TransparencyLevelHint="None"
|
|
Icon="/Assets/logo.ico">
|
|
<Design.DataContext>
|
|
<views:OobeWindow />
|
|
</Design.DataContext>
|
|
|
|
<Grid x:Name="ContentGrid"
|
|
Opacity="0">
|
|
<Grid.RenderTransform>
|
|
<TranslateTransform Y="24" />
|
|
</Grid.RenderTransform>
|
|
<!-- 主内容区域 -->
|
|
<Grid Margin="48" RowDefinitions="*,Auto">
|
|
<!-- 中央内容区域 -->
|
|
<StackPanel Grid.Row="0"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Spacing="24">
|
|
|
|
<!-- 顶部:完成状态勾号图标 -->
|
|
<Border Width="80"
|
|
Height="80"
|
|
Background="{DynamicResource SystemFillColorSuccessBackgroundBrush}"
|
|
CornerRadius="40"
|
|
HorizontalAlignment="Center">
|
|
<ui:SymbolIcon Symbol="Accept"
|
|
FontSize="40"
|
|
Foreground="{DynamicResource SystemFillColorSuccessBrush}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"/>
|
|
</Border>
|
|
|
|
<!-- 中央:欢迎文字 -->
|
|
<StackPanel Spacing="8" HorizontalAlignment="Center">
|
|
<TextBlock Text="欢迎使用阑山桌面"
|
|
FontSize="28"
|
|
FontWeight="SemiBold"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
HorizontalAlignment="Center" />
|
|
<TextBlock Text="你的桌面,不止一面"
|
|
FontSize="14"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
HorizontalAlignment="Center" />
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<!-- 底部:圆形开始按钮 -->
|
|
<Button Grid.Row="1"
|
|
x:Name="EnterButton"
|
|
HorizontalAlignment="Center"
|
|
Width="56"
|
|
Height="56"
|
|
Margin="0,0,0,16"
|
|
Theme="{DynamicResource AccentButtonTheme}"
|
|
CornerRadius="28">
|
|
<ui:SymbolIcon Symbol="Forward"
|
|
FontSize="24"
|
|
Foreground="{DynamicResource TextOnAccentFillColorPrimaryBrush}"/>
|
|
</Button>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|