Skip to content

Commit

Permalink
Added rounded corners to EML video player
Browse files Browse the repository at this point in the history
  • Loading branch information
darklinkpower committed Mar 18, 2024
1 parent 8b98aea commit b3ada90
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion source/Views/DetailsViewGameOverview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,17 @@
</Style>
</TabItem.Style>
<StackPanel Margin="0,16,0,0">
<ContentControl x:Name="ExtraMetadataLoader_VideoLoaderControl" VerticalAlignment="Top"/>
<ContentControl x:Name="ExtraMetadataLoader_VideoLoaderControl" VerticalAlignment="Top">
<ContentControl.OpacityMask>
<VisualBrush>
<VisualBrush.Visual>
<Border Background="Black" CornerRadius="6"
Width="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType=ContentControl}}"
Height="{Binding ActualHeight, RelativeSource={RelativeSource AncestorType=ContentControl}}" />
</VisualBrush.Visual>
</VisualBrush>
</ContentControl.OpacityMask>
</ContentControl>
</StackPanel>
</TabItem>

Expand Down
12 changes: 11 additions & 1 deletion source/Views/GridViewGameOverview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,17 @@
<Viewbox Stretch="Uniform" Visibility="{Binding ElementName=VideoFeed, Path=Visibility}">
<Rectangle Width="16" Height="9" Fill="Transparent" IsHitTestVisible="False" />
</Viewbox>
<ContentControl x:Name="ExtraMetadataLoader_VideoLoaderControl" />
<ContentControl x:Name="ExtraMetadataLoader_VideoLoaderControl">
<ContentControl.OpacityMask>
<VisualBrush>
<VisualBrush.Visual>
<Border Background="Black" CornerRadius="6"
Width="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType=ContentControl}}"
Height="{Binding ActualHeight, RelativeSource={RelativeSource AncestorType=ContentControl}}" />
</VisualBrush.Visual>
</VisualBrush>
</ContentControl.OpacityMask>
</ContentControl>
</Grid>
</StackPanel>
</Expander>
Expand Down

0 comments on commit b3ada90

Please sign in to comment.