Skip to content

Commit

Permalink
Keep reference to created brush
Browse files Browse the repository at this point in the history
Fixes #149
  • Loading branch information
Morten Nielsen committed Jan 26, 2024
1 parent 5f47da9 commit 46f75d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<Authors>Morten Nielsen - https://xaml.dev</Authors>
<Company>Morten Nielsen - https://xaml.dev</Company>
<PackageIcon>logo.png</PackageIcon>
<Version>2.3.3</Version>
<PackageValidationBaselineVersion>2.3.2</PackageValidationBaselineVersion>
<Version>2.3.4</Version>
<PackageValidationBaselineVersion>2.3.3</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup Condition="'$(PackageId)'!=''">
Expand Down
2 changes: 1 addition & 1 deletion src/WinUIEx/TransparentTintBackdrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Windows.UI.Color TintColor
/// <inheritdoc />
protected override Windows.UI.Composition.CompositionBrush CreateBrush(Windows.UI.Composition.Compositor compositor)
{
return WindowManager.Compositor.CreateColorBrush(TintColor);
return brush = WindowManager.Compositor.CreateColorBrush(TintColor);
}

/// <inheritdoc />
Expand Down
2 changes: 1 addition & 1 deletion src/WinUIEx/WinUIEx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<PackageId>WinUIEx</PackageId>
<Product>WinUI Extensions</Product>
<PackageReleaseNotes>
- Ensure WebAuthenticator URL is fully encoded to avoid issues with certain OAuth servers (#144)
- Can't change TransparentTintBackdrop.TintColor at runtime (#149)
</PackageReleaseNotes>
</PropertyGroup>

Expand Down

0 comments on commit 46f75d9

Please sign in to comment.