0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-13 09:50:43 -05:00
launcher/project/SPT.Launcher/Views/MainWindow.axaml

71 lines
2.4 KiB
Plaintext
Raw Normal View History

2023-03-03 19:25:33 +00:00
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2024-05-21 20:15:19 +01:00
xmlns:vm="using:SPT.Launcher.ViewModels"
2023-03-03 19:25:33 +00:00
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2024-05-21 20:15:19 +01:00
xmlns:cc="using:SPT.Launcher.CustomControls"
2023-03-03 19:25:33 +00:00
xmlns:rxui="using:Avalonia.ReactiveUI"
2024-05-21 20:15:19 +01:00
xmlns:cvt="using:SPT.Launcher.Converters"
2024-07-06 11:48:16 -04:00
xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
2023-03-03 19:25:33 +00:00
mc:Ignorable="d" d:DesignWidth="750" d:DesignHeight="450"
2024-05-21 20:15:19 +01:00
x:Class="SPT.Launcher.Views.MainWindow"
2024-05-30 11:55:41 -04:00
Icon="/Assets/spt-logo.ico"
2024-05-21 20:15:19 +01:00
Title="SPT.Launcher"
2024-07-07 21:02:53 -04:00
MinHeight="450" MinWidth="760"
Height="450" Width="760"
2023-03-03 19:25:33 +00:00
WindowStartupLocation="CenterScreen"
ExtendClientAreaToDecorationsHint="True"
ExtendClientAreaChromeHints="NoChrome"
ExtendClientAreaTitleBarHeightHint="-1"
2024-07-07 21:02:53 -04:00
Background="{DynamicResource AltBackgroundBrush}">
2023-03-03 19:25:33 +00:00
<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}"
/>
2023-03-03 19:25:33 +00:00
<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="Gray"
2023-03-03 19:25:33 +00:00
>
2024-07-07 21:02:53 -04:00
<rxui:RoutedViewHost Router="{Binding Router}" />
2023-03-03 19:25:33 +00:00
</dialogHost:DialogHost>
<Label Content="{Binding VersionInfo.Tag}" Grid.Row="1"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Background="{DynamicResource AccentBrush}"
Foreground="DarkSlateGray"
2023-03-03 19:25:33 +00:00
FontWeight="SemiBold"
CornerRadius="0 0 5 5"
Margin="10 0"
IsVisible="{Binding VersionInfo.HasTag}"
/>
</Grid>
</Window>