Skip to content

Commit

Permalink
Fix noise layer not applying in non library views*
Browse files Browse the repository at this point in the history
  • Loading branch information
darklinkpower committed Sep 12, 2023
1 parent bd9de72 commit 9b43a4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/Views/Library.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@
</Border.Style>
</Border>

<Border Grid.RowSpan="2"
x:Name="ImageBackgroundNoise"
Background="{DynamicResource NoiseBrush}"
Opacity="0.010"/>
<Border x:Name="ImageBackgroundNoise" Grid.RowSpan="2"
Visibility="{Binding ElementName=PART_ImageBackground, Path=Source, Converter={StaticResource NullToVisibilityConverter}}"
Background="{DynamicResource NoiseBrush}"
Opacity="0.010"/>

<Grid Grid.RowSpan="2">
<Grid.Style>
Expand Down
4 changes: 4 additions & 0 deletions source/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
<Grid.Background>
<ImageBrush ImageSource="{ThemeFile 'Images/BackgroundGradient.png'}" Stretch="UniformToFill" popt:Freeze="True"/>
</Grid.Background>

<Border x:Name="ImageBackgroundNoise"
Background="{DynamicResource NoiseBrush}"
Opacity="0.010"/>
<Grid>
<Border Tag="{Binding ElementName=PART_ContentView, Path=DataContext.ActiveView.Tag}">
<Border.Style>
Expand Down

0 comments on commit 9b43a4b

Please sign in to comment.