mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-30 22:15:11 +00:00
[PTRun]Use Mica backdrop to fix crashes with WPFUI (#32118)
* [PTRun]Use Mica backdrop to fix crashes with WPFUI * Update MainWindow.xaml --------- Co-authored-by: Niels Laute <niels.laute@live.nl>
This commit is contained in:
@@ -32,9 +32,9 @@
|
|||||||
|
|
||||||
<Grid x:Name="RootGrid" MouseDown="OnMouseDown">
|
<Grid x:Name="RootGrid" MouseDown="OnMouseDown">
|
||||||
<!-- We set the background here because the Acrylic can be too translucent / background too bright on Light theme -->
|
<!-- We set the background here because the Acrylic can be too translucent / background too bright on Light theme -->
|
||||||
<Grid.Background>
|
<!--<Grid.Background>
|
||||||
<SolidColorBrush Opacity="0.8" Color="{DynamicResource ApplicationBackgroundColor}" />
|
<SolidColorBrush Opacity="0.8" Color="{DynamicResource ApplicationBackgroundColor}" />
|
||||||
</Grid.Background>
|
</Grid.Background>-->
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
|
@@ -63,7 +63,7 @@ namespace PowerLauncher
|
|||||||
|
|
||||||
if (OSVersionHelper.IsWindows11())
|
if (OSVersionHelper.IsWindows11())
|
||||||
{
|
{
|
||||||
WindowBackdropType = Wpf.Ui.Controls.WindowBackdropType.Acrylic;
|
WindowBackdropType = Wpf.Ui.Controls.WindowBackdropType.Mica;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user