Skip to content

Commit

Permalink
Formatting (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
niels9001 authored Nov 22, 2023
1 parent 9bcd1ca commit e7b1625
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Wpf.Ui/Appearance/WindowBackgroundManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ bool forceBackground
{
backdrop = WindowBackdropType.None;
}
else
{
_ = WindowBackdrop.RemoveBackground(window);
}

// This was required to update the background when moving from a HC theme to light/dark theme. However, this breaks theme proper light/dark theme changing on Windows 10.
// else
// {
// _ = WindowBackdrop.RemoveBackground(window);
// }
_ = WindowBackdrop.ApplyBackdrop(window, backdrop);
if (applicationTheme is ApplicationTheme.Dark)
{
Expand Down

0 comments on commit e7b1625

Please sign in to comment.