mirror of
https://github.com/sp-tarkov/launcher.git
synced 2025-02-13 09:10:44 -05:00
57 lines
2.7 KiB
XML
57 lines
2.7 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"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
xmlns:helpers="using:Aki.Launcher.Helpers"
|
|
x:Class="Aki.Launcher.CustomControls.ModInfoCard">
|
|
<Border CornerRadius="5" HorizontalAlignment="Stretch"
|
|
BorderBrush="{StaticResource AKI_Background_Dark}"
|
|
BorderThickness="5"
|
|
>
|
|
<Grid RowDefinitions="10,AUTO,AUTO,AUTO,10" ColumnDefinitions="10,AUTO,*,AUTO,10"
|
|
Background="{StaticResource AKI_Background_Dark}"
|
|
>
|
|
|
|
<StackPanel Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal" Spacing="5"
|
|
>
|
|
<Path Data="{StaticResource Server}" Fill="{StaticResource AKI_Brush_DarkGrayBlue}"
|
|
IsVisible="{Binding IsInServer, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
/>
|
|
<Path Data="{StaticResource Profile}" Fill="{StaticResource AKI_Brush_DarkGrayBlue}"
|
|
IsVisible="{Binding IsInProfile, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
/>
|
|
|
|
<Canvas>
|
|
<Rectangle ToolTip.Tip="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=mod_not_in_server_warning}" Fill="Transparent" Height="20" Width="20"/>
|
|
<Path Data="{StaticResource Alert}" Fill="{StaticResource AKI_Brush_Yellow}"
|
|
Margin="0 2 0 0" ToolTip.Tip="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=mod_not_in_server_warning}"
|
|
>
|
|
<Path.IsVisible>
|
|
<MultiBinding Converter="{x:Static BoolConverters.And}">
|
|
<Binding Path="IsInProfile" RelativeSource="{RelativeSource AncestorType=UserControl}"/>
|
|
<Binding Path="!IsInServer" RelativeSource="{RelativeSource AncestorType=UserControl}"/>
|
|
</MultiBinding>
|
|
</Path.IsVisible>
|
|
</Path>
|
|
</Canvas>
|
|
</StackPanel>
|
|
|
|
<Label Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"
|
|
Content="{Binding ModName, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
/>
|
|
<Label Grid.Row="3" Grid.Column="1" FontSize="12" Foreground="DimGray"
|
|
Content="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=author}"
|
|
/>
|
|
<Label Grid.Row="3" Grid.Column="2" FontSize="12" HorizontalAlignment="Left"
|
|
Content="{Binding Author, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
/>
|
|
<Label Grid.Row="3" Grid.Column="3" FontSize="12"
|
|
Content="{Binding Version, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
/>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|