Files
romrepomgr/RomRepoMgr/Views/SplashWindow.xaml

166 lines
6.9 KiB
Plaintext
Raw Normal View History

2024-11-09 01:37:59 +00:00
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2020-08-22 02:17:40 +01:00
xmlns:vm="clr-namespace:RomRepoMgr.ViewModels;assembly=RomRepoMgr"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2024-11-09 06:14:25 +00:00
xmlns:svg="clr-namespace:Avalonia.Svg.Skia;assembly=Avalonia.Svg.Skia"
xmlns:resources="clr-namespace:RomRepoMgr.Resources"
2024-11-09 01:37:59 +00:00
mc:Ignorable="d"
d:DesignWidth="450"
d:DesignHeight="250"
x:Class="RomRepoMgr.Views.SplashWindow"
Icon="/Assets/avalonia-logo.ico"
Title="ROM Repository Manager"
SystemDecorations="BorderOnly"
WindowStartupLocation="CenterScreen"
Width="250"
2020-08-23 21:21:55 +01:00
Height="175">
2020-08-22 02:17:40 +01:00
<Design.DataContext>
<vm:SplashWindowViewModel />
</Design.DataContext>
<!-- Icons from KDE's Breeze-->
2024-11-09 01:37:59 +00:00
<StackPanel HorizontalAlignment="Stretch"
VerticalAlignment="Top"
Orientation="Vertical"
Margin="5">
<TextBlock Text="{Binding LoadingText}"
FontWeight="Bold"
HorizontalAlignment="Center"
VerticalAlignment="Top" />
<StackPanel HorizontalAlignment="Left"
Orientation="Horizontal">
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding LoadingSettingsOk}">
2020-08-22 02:17:40 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-checked.svg" />
</Image.Source>
</Image>
2024-11-09 01:37:59 +00:00
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding LoadingSettingsError}">
2020-08-22 02:17:40 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-error.svg" />
</Image.Source>
</Image>
2024-11-09 01:37:59 +00:00
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding LoadingSettingsUnknown}">
2020-08-22 02:17:40 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-question.svg" />
</Image.Source>
</Image>
<TextBlock Text="{x:Static resources:Localization.LoadingSettingsText}"
2024-11-09 01:37:59 +00:00
VerticalAlignment="Center" />
2020-08-22 02:17:40 +01:00
</StackPanel>
2024-11-09 01:37:59 +00:00
<StackPanel HorizontalAlignment="Left"
Orientation="Horizontal">
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding CheckingUnArOk}">
2020-08-23 21:21:55 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-checked.svg" />
</Image.Source>
</Image>
2024-11-09 01:37:59 +00:00
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding CheckingUnArError}">
2020-08-23 21:21:55 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-error.svg" />
</Image.Source>
</Image>
2024-11-09 01:37:59 +00:00
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding CheckingUnArUnknown}">
2020-08-23 21:21:55 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-question.svg" />
</Image.Source>
</Image>
<TextBlock Text="{x:Static resources:Localization.CheckingUnArText}"
2024-11-09 01:37:59 +00:00
VerticalAlignment="Center" />
2020-08-23 21:21:55 +01:00
</StackPanel>
2024-11-09 01:37:59 +00:00
<StackPanel HorizontalAlignment="Left"
Orientation="Horizontal">
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding LoadingDatabaseOk}">
2020-08-22 02:17:40 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-checked.svg" />
</Image.Source>
</Image>
2024-11-09 01:37:59 +00:00
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding LoadingDatabaseError}">
2020-08-22 02:17:40 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-error.svg" />
</Image.Source>
</Image>
2024-11-09 01:37:59 +00:00
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding LoadingDatabaseUnknown}">
2020-08-22 02:17:40 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-question.svg" />
</Image.Source>
</Image>
<TextBlock Text="{x:Static resources:Localization.LoadingDatabaseText}"
2024-11-09 01:37:59 +00:00
VerticalAlignment="Center" />
2020-08-22 02:17:40 +01:00
</StackPanel>
2024-11-09 01:37:59 +00:00
<StackPanel HorizontalAlignment="Left"
Orientation="Horizontal">
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding MigratingDatabaseOk}">
2020-08-22 02:17:40 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-checked.svg" />
</Image.Source>
</Image>
2024-11-09 01:37:59 +00:00
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding MigratingDatabaseError}">
2020-08-22 02:17:40 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-error.svg" />
</Image.Source>
</Image>
2024-11-09 01:37:59 +00:00
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding MigratingDatabaseUnknown}">
2020-08-22 02:17:40 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-question.svg" />
</Image.Source>
</Image>
<TextBlock Text="{x:Static resources:Localization.MigratingDatabaseText}"
2024-11-09 01:37:59 +00:00
VerticalAlignment="Center" />
2020-08-22 02:17:40 +01:00
</StackPanel>
2024-11-09 01:37:59 +00:00
<StackPanel HorizontalAlignment="Left"
Orientation="Horizontal">
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding LoadingRomSetsOk}">
2020-08-22 13:32:43 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-checked.svg" />
</Image.Source>
</Image>
2024-11-09 01:37:59 +00:00
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding LoadingRomSetsError}">
2020-08-22 13:32:43 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-error.svg" />
</Image.Source>
</Image>
2024-11-09 01:37:59 +00:00
<Image MaxWidth="24"
MaxHeight="24"
IsVisible="{Binding LoadingRomSetsUnknown}">
2020-08-22 13:32:43 +01:00
<Image.Source>
<svg:SvgImage Source="/Assets/emblem-question.svg" />
</Image.Source>
</Image>
<TextBlock Text="{x:Static resources:Localization.LoadingRomSetsText}"
2024-11-09 01:37:59 +00:00
VerticalAlignment="Center" />
2020-08-22 13:32:43 +01:00
</StackPanel>
2024-11-09 01:37:59 +00:00
<Button Command="{Binding ExitCommand}"
IsVisible="{Binding ExitVisible}"
HorizontalAlignment="Right">
<TextBlock Text="{x:Static resources:Localization.ExitButtonText}" />
2020-08-22 02:17:40 +01:00
</Button>
</StackPanel>
</Window>