Skip to content

Commit 4e5584b

Browse files
committed
Enable acrylic effect on first launch if running on Windows 11
1 parent dda008f commit 4e5584b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Flow.Launcher/MainWindow.xaml.cs

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ private async void OnLoaded(object sender, RoutedEventArgs _)
9898
{
9999
_settings.FirstLaunch = false;
100100
App.API.SaveAppAllSettings();
101+
/* Set Backdrop Type to Acrylic for Windows 11 when First Launch. Default is None. */
102+
if (OperatingSystem.IsWindowsVersionAtLeast(10, 0, 22000))
103+
_settings.BackdropType = BackdropTypes.Acrylic;
101104
var WelcomeWindow = new WelcomeWindow();
102105
WelcomeWindow.Show();
103106
}

0 commit comments

Comments
 (0)