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/Dialogs/WarningDialogView.axaml
waffle.lord 63f9b02fc4 update all styles
using dynamic resource dictionary for theme variants
2024-07-07 09:37:37 -04:00

27 lines
1.2 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:helpers="using:SPT.Launcher.Helpers"
xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SPT.Launcher.Views.Dialogs.WarningDialogView"
Background="{DynamicResource BackgroundBrush}"
BorderBrush="IndianRed"
BorderThickness="1"
>
<Grid RowDefinitions="10,AUTO,10,AUTO,10" ColumnDefinitions="10,*,10">
<Label Content="{Binding WarningMessage}" Grid.Row="1" Grid.Column="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="IndianRed"
/>
<Button Content="{Binding ButtonText}" Grid.Row="3" Grid.Column="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=dialogHost:DialogHost}, Path=CloseDialogCommand}"
Classes="alt"
/>
</Grid>
</UserControl>