Files
romrepomgr/RomRepoMgr/Views/SplashWindow.axaml

166 lines
7.1 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">
2025-07-08 18:14:37 +01:00
<TextBlock Text="{Binding LoadingText, Mode=OneWay}"
2024-11-09 01:37:59 +00:00
FontWeight="Bold"
HorizontalAlignment="Center"
VerticalAlignment="Top" />
<StackPanel HorizontalAlignment="Left"
Orientation="Horizontal">
<Image MaxWidth="24"
MaxHeight="24"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding LoadingSettingsOk, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding LoadingSettingsError, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding LoadingSettingsUnknown, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding CheckingUnArOk, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding CheckingUnArError, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding CheckingUnArUnknown, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding LoadingDatabaseOk, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding LoadingDatabaseError, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding LoadingDatabaseUnknown, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding MigratingDatabaseOk, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding MigratingDatabaseError, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding MigratingDatabaseUnknown, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding LoadingRomSetsOk, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding LoadingRomSetsError, Mode=OneWay}">
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"
2025-07-08 18:14:37 +01:00
IsVisible="{Binding LoadingRomSetsUnknown, Mode=OneWay}">
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>