Files
LanMountainDesktop/LanMountainDesktop.Launcher/Views/SplashWindow.axaml

58 lines
2.1 KiB
Plaintext
Raw Normal View History

2026-04-16 01:59:21 +08:00
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2026-04-16 19:28:58 +08:00
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="400"
d:DesignHeight="200"
2026-04-16 01:59:21 +08:00
x:Class="LanMountainDesktop.Launcher.Views.SplashWindow"
2026-04-16 19:28:58 +08:00
x:DataType="views:SplashWindow"
2026-04-16 01:59:21 +08:00
Title="阑山桌面"
2026-04-16 19:28:58 +08:00
Width="400"
Height="200"
2026-04-16 01:59:21 +08:00
CanResize="False"
WindowStartupLocation="CenterScreen"
2026-04-16 19:28:58 +08:00
SystemDecorations="None"
Background="{DynamicResource SolidBackgroundFillColorBaseBrush}"
TransparencyLevelHint="None">
<Design.DataContext>
<views:SplashWindow />
</Design.DataContext>
<Grid RowDefinitions="*,Auto,Auto">
<!-- 应用名称 -->
2026-04-16 01:59:21 +08:00
<TextBlock x:Name="AppNameText"
Text="阑山桌面"
2026-04-16 19:28:58 +08:00
FontSize="36"
FontWeight="Light"
2026-04-16 01:59:21 +08:00
VerticalAlignment="Center"
2026-04-16 14:17:46 +08:00
HorizontalAlignment="Center"
2026-04-16 19:28:58 +08:00
Grid.Row="0"
Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
<!-- 进度条 -->
2026-04-16 14:17:46 +08:00
<ProgressBar x:Name="ProgressIndicator"
Grid.Row="1"
Minimum="0"
Maximum="100"
Value="0"
2026-04-16 19:28:58 +08:00
Height="3"
Width="200"
Margin="0,20,0,0"
IsIndeterminate="True"
Foreground="{DynamicResource AccentFillColorDefaultBrush}"
Background="{DynamicResource ControlStrokeColorDefaultBrush}" />
<!-- 状态文本 -->
<TextBlock x:Name="StatusText"
2026-04-16 14:17:46 +08:00
Grid.Row="2"
FontSize="12"
2026-04-16 19:28:58 +08:00
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
2026-04-16 14:17:46 +08:00
HorizontalAlignment="Center"
2026-04-16 19:28:58 +08:00
Margin="0,12,0,24"
Text="正在启动..." />
2026-04-16 01:59:21 +08:00
</Grid>
</Window>