mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-22 00:54:26 +08:00
Simplify splash startup visuals by removing the multi-mode/slide behavior and always using a fade animation. Update App to create SplashWindow without a StartupVisualMode parameter and remove related fields, layout configuration, slide animation, and easing helpers from SplashWindow. Clean up unused using. Replace the single about_banner asset with theme-aware variants (about_banner_dark.png and about_banner_light.png), delete the old about_banner.png, and update AboutSettingsPage to use a DynamicResource ImageBrush (AboutBannerBrush) that selects the appropriate banner per theme.
73 lines
2.4 KiB
XML
73 lines
2.4 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"
|
|
mc:Ignorable="d"
|
|
x:Class="LanMountainDesktop.Launcher.Views.SplashWindow"
|
|
x:DataType="views:SplashWindow"
|
|
Title="LanMountain Desktop"
|
|
Width="480"
|
|
Height="320"
|
|
CanResize="False"
|
|
ShowInTaskbar="False"
|
|
WindowStartupLocation="CenterScreen"
|
|
SystemDecorations="None"
|
|
Background="#0B0B0B"
|
|
TransparencyLevelHint="None"
|
|
Icon="/Assets/logo.ico">
|
|
<Design.DataContext>
|
|
<views:SplashWindow />
|
|
</Design.DataContext>
|
|
|
|
<Grid RowDefinitions="*,Auto"
|
|
Background="#0B0B0B">
|
|
<Grid Grid.Row="0"
|
|
Margin="24">
|
|
<TextBlock x:Name="AppNameText"
|
|
Text="LanMountain Desktop"
|
|
FontSize="24"
|
|
FontWeight="SemiBold"
|
|
VerticalAlignment="Top"
|
|
HorizontalAlignment="Left"
|
|
Foreground="#F6F7FB" />
|
|
</Grid>
|
|
|
|
<Border Grid.Row="1"
|
|
Padding="24,18,24,24"
|
|
Background="Transparent">
|
|
<Grid RowDefinitions="Auto,Auto"
|
|
RowSpacing="10">
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<Border x:Name="VersionTextBorder"
|
|
Background="Transparent"
|
|
Cursor="Hand"
|
|
HorizontalAlignment="Left">
|
|
<TextBlock x:Name="VersionText"
|
|
FontSize="11"
|
|
Foreground="#B9C0CC"
|
|
Text="0.0.0-dev (Administrate)" />
|
|
</Border>
|
|
|
|
<TextBlock x:Name="StatusText"
|
|
Grid.Column="1"
|
|
FontSize="11"
|
|
Foreground="#B9C0CC"
|
|
HorizontalAlignment="Right"
|
|
Text="Initializing..." />
|
|
</Grid>
|
|
|
|
<ProgressBar x:Name="ProgressIndicator"
|
|
Grid.Row="1"
|
|
Minimum="0"
|
|
Maximum="100"
|
|
Value="0"
|
|
Height="4"
|
|
IsIndeterminate="False"
|
|
Foreground="#F6F7FB"
|
|
Background="#2C313D" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Window>
|