mirror of
https://gitlab.com/nullmax17/PlombirLauncher.git
synced 2025-03-14 18:01:12 +03:00
66 lines
1.8 KiB
XML
66 lines
1.8 KiB
XML
<Window
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:LauncherGUI.ViewModels"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d"
|
|
d:DesignWidth="400"
|
|
d:DesignHeight="200"
|
|
x:Class="LauncherGUI.Views.LoadingWindow"
|
|
x:DataType="vm:LoadingWindowViewModel"
|
|
Icon="/Assets/Sprites/icon.png"
|
|
Title="Loading"
|
|
RequestedThemeVariant="Dark"
|
|
Width="400"
|
|
Height="200"
|
|
MinWidth="400"
|
|
MinHeight="200"
|
|
MaxWidth="400"
|
|
MaxHeight="200"
|
|
Background="#353535"
|
|
>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="50" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="50" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="2" >
|
|
|
|
<TextBlock
|
|
Text="Loading minecraft..."
|
|
FontFamily="{StaticResource QuicksandFont}"
|
|
HorizontalAlignment="Center" />
|
|
<!-- Todo: idk but installAsync ignores token. -->
|
|
<!-- <Button HorizontalAlignment="Center"
|
|
Content="Stop" Click="onStopDownloadClick" /> -->
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
|
|
<TextBlock Text="{Binding LoadingStatus}" />
|
|
</Border>
|
|
|
|
<Border Margin="10" Grid.Row="2" Grid.ColumnSpan="2">
|
|
<ProgressBar Minimum="0" Value="{Binding Progress}" Maximum="100" />
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</Window>
|