LANCommander/LANCommander.Launcher/Views/Components/GameBannerView.axaml
Pat Hartl b183e4b18c Remove old launcher, rename Avalonia launcher
Also adds ARM builds for Linux + Windows launcher
2026-06-06 05:49:24 -05:00

43 lines
1.8 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="LANCommander.Launcher.Views.Components.GameBannerView">
<Border Height="300" Background="{DynamicResource SystemControlBackgroundChromeMediumLowBrush}">
<Panel>
<!-- Background image (if available) -->
<Image x:Name="BackgroundImage"
Stretch="UniformToFill"
Opacity="0.3" />
<!-- Cover/Banner overlay -->
<Border HorizontalAlignment="Center"
VerticalAlignment="Center"
CornerRadius="8"
ClipToBounds="True"
MaxHeight="280"
BoxShadow="0 4 16 0 #40000000">
<Image x:Name="BannerImage"
Stretch="Uniform"
MaxHeight="280" />
</Border>
<!-- Fallback when no banner -->
<Border x:Name="FallbackBanner"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Background="{DynamicResource SystemAccentColor}"
CornerRadius="8"
Padding="40,20"
IsVisible="False">
<StackPanel>
<TextBlock Text="🎮" FontSize="48" HorizontalAlignment="Center" />
<TextBlock x:Name="FallbackTitle"
FontSize="24"
FontWeight="Bold"
HorizontalAlignment="Center"
Foreground="White" />
</StackPanel>
</Border>
</Panel>
</Border>
</UserControl>