Use rounded corners on game images

This commit is contained in:
trawzified
2023-12-27 17:26:00 +01:00
parent 153a07e19e
commit 11fc4593ab

View File

@ -90,8 +90,12 @@
ToolTip="Filter modlists on game">
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding GameMetaData.IconSource}" Stretch="UniformToFill" Height="32" Width="32"/>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Border Width="32" Height="32" BorderThickness="0" CornerRadius="8, 8, 8, 8" VerticalAlignment="Center">
<Border.Background>
<ImageBrush Stretch="Fill" ImageSource="{Binding GameMetaData.IconSource}"/>
</Border.Background>
</Border>
<TextBlock Margin="10, 0, 0, 0" Text="{Binding FormattedName}" VerticalAlignment="Center" />
</StackPanel>
</DataTemplate>