Skip to content

Commit ab48033

Browse files
committed
Add dropshadow to mainSection
Fix Steam image clipping
1 parent 27b13ac commit ab48033

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CompactGUI/Views/FolderWatcherControl.xaml.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Imports System.Windows.Media.Animation
22

3-
Public Class FolderWatcherControl
3+
Public Class FolderWatcherControl : Inherits UserControl
44
Private currentlyExpandedBorder As Border = Nothing
55

66

CompactGUI/Views/MainWindow.xaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,14 +571,18 @@
571571

572572
<!--Main information section / results of analysis-->
573573
<Grid x:Name="mainSection" VerticalAlignment="Top" Panel.ZIndex="1">
574+
<Grid.Effect>
575+
<DropShadowEffect BlurRadius="15" Opacity="1" ShadowDepth="0" Direction="-90"/>
576+
</Grid.Effect>
574577
<Grid.Background>
575578
<LinearGradientBrush MappingMode="RelativeToBoundingBox" >
576579
<GradientStop Color="#304257" Offset="0"/>
577580
<GradientStop Color="#27374a" Offset="1"/>
578581
</LinearGradientBrush>
579582
</Grid.Background>
580583

581-
<local:ImageControl x:Name="steamBG" Height="{Binding Height, ElementName=mainSection}" Stretch="UniformToFill" Opacity="1" Margin="-75" HorizontalAlignment="Center" VerticalAlignment="Center" ClipToBounds="True" Source="{Binding SteamBGImage}">
584+
<Grid ClipToBounds="True">
585+
<local:ImageControl x:Name="steamBG" Height="{Binding ActualHeight, ElementName=mainSection}" Stretch="UniformToFill" Opacity="1" Margin="-75" HorizontalAlignment="Center" VerticalAlignment="Center" ClipToBounds="True" Source="{Binding SteamBGImage}">
582586

583587
<local:ImageControl.RenderTransform>
584588
<TransformGroup>
@@ -630,6 +634,8 @@
630634

631635

632636
</local:ImageControl>
637+
</Grid>
638+
633639

634640
<!--Title-->
635641
<Label x:Name="label" FontFamily="Segoe UI" FontSize="35" HorizontalAlignment="Center" VerticalAlignment="Top" Foreground="White" Margin="0,100,0,0" RenderOptions.ClearTypeHint="Enabled">

0 commit comments

Comments
 (0)