mirror of
https://github.com/sp-tarkov/launcher.git
synced 2025-02-13 09:30:45 -05:00
72 lines
2.5 KiB
XML
72 lines
2.5 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:Aki.Launcher.ViewModels"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:cc="using:Aki.Launcher.CustomControls"
|
|
xmlns:rxui="using:Avalonia.ReactiveUI"
|
|
xmlns:helpers="using:Aki.Launcher.Helpers"
|
|
xmlns:cvt="using:Aki.Launcher.Converters"
|
|
xmlns:dialogHost="clr-namespace:DialogHost;assembly=DialogHost.Avalonia"
|
|
mc:Ignorable="d" d:DesignWidth="750" d:DesignHeight="450"
|
|
x:Class="Aki.Launcher.Views.MainWindow"
|
|
Icon="/Assets/icon.ico"
|
|
Title="Aki.Launcher"
|
|
Height="450" Width="750"
|
|
WindowStartupLocation="CenterScreen"
|
|
ExtendClientAreaToDecorationsHint="True"
|
|
ExtendClientAreaChromeHints="NoChrome"
|
|
ExtendClientAreaTitleBarHeightHint="-1"
|
|
Background="{StaticResource AKI_Background_Light}">
|
|
|
|
<Window.Resources>
|
|
<cvt:ImageSourceConverter x:Key="imageSourceCvt"/>
|
|
</Window.Resources>
|
|
|
|
<Window.Styles>
|
|
<StyleInclude Source="/Assets/Styles.axaml"/>
|
|
</Window.Styles>
|
|
|
|
<Design.DataContext>
|
|
<vm:MainWindowViewModel/>
|
|
</Design.DataContext>
|
|
|
|
<Grid RowDefinitions="AUTO,AUTO,*">
|
|
|
|
<cc:TitleBar Title="SPT Launcher"
|
|
XButtonCommand="{Binding CloseCommand}"
|
|
MinButtonCommand="{Binding MinimizeCommand}"
|
|
SettingsButtonCommand="{Binding GoToSettingsCommand}"
|
|
Classes.versiontag="{Binding VersionInfo.HasTag}"
|
|
/>
|
|
|
|
<Image Source="{Binding Background.Path, Converter={StaticResource imageSourceCvt}}"
|
|
Stretch="Fill" RenderOptions.BitmapInterpolationMode="HighQuality"
|
|
Grid.Row="1" Grid.RowSpan="2"
|
|
/>
|
|
|
|
|
|
<dialogHost:DialogHost Identifier="mainHost" Grid.Row="1" Grid.RowSpan="2"
|
|
CornerRadius="5"
|
|
DialogMargin="0"
|
|
OverlayBackground="{StaticResource AKI_Background_Light}"
|
|
>
|
|
<rxui:RoutedViewHost Router="{Binding Router}"
|
|
/>
|
|
</dialogHost:DialogHost>
|
|
|
|
<Label Content="{Binding VersionInfo.Tag}" Grid.Row="1"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
Background="{StaticResource AKI_Brush_Yellow}"
|
|
Foreground="{StaticResource AKI_Brush_DarkGrayBlue}"
|
|
FontWeight="SemiBold"
|
|
CornerRadius="0 0 5 5"
|
|
Margin="10 0"
|
|
IsVisible="{Binding VersionInfo.HasTag}"
|
|
/>
|
|
|
|
</Grid>
|
|
|
|
</Window>
|