From ff18abcddd452b4343b222cfda3d4572a9d0250b Mon Sep 17 00:00:00 2001 From: DB p Date: Tue, 4 Mar 2025 12:49:46 +0900 Subject: [PATCH] Change Window type --- Flow.Launcher.Core/Resource/Theme.cs | 4 ++-- Flow.Launcher/MainWindow.xaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Flow.Launcher.Core/Resource/Theme.cs b/Flow.Launcher.Core/Resource/Theme.cs index 39aa2d6f4..e871dd29a 100644 --- a/Flow.Launcher.Core/Resource/Theme.cs +++ b/Flow.Launcher.Core/Resource/Theme.cs @@ -149,12 +149,12 @@ namespace Flow.Launcher.Core.Resource Methods.ExtendFrame(mainWindowSrc.Handle, margins); // Remove OS minimizing/maximizing animation - Methods.SetWindowAttribute(new WindowInteropHelper(mainWindow).Handle, DWMWINDOWATTRIBUTE.DWMWA_TRANSITIONS_FORCEDISABLED, 3); + //Methods.SetWindowAttribute(new WindowInteropHelper(mainWindow).Handle, DWMWINDOWATTRIBUTE.DWMWA_TRANSITIONS_FORCEDISABLED, 3); //Methods.SetWindowAttribute(new WindowInteropHelper(mainWindow).Handle, DWMWINDOWATTRIBUTE.DWMWA_BORDER_COLOR, 0x00FF0000); //Methods.SetWindowAttribute(new WindowInteropHelper(mainWindow).Handle, DWMWINDOWATTRIBUTE.DWMWA_SYSTEMBACKDROP_TYPE, 3); SetBlurForWindow(); - SetCornerForWindow(); + //SetCornerForWindow(); } diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index d99787a8d..c2e1978f9 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -15,8 +15,8 @@ MinHeight="30" d:DataContext="{d:DesignInstance Type=vm:MainViewModel}" AllowDrop="True" - AllowsTransparency="False" - Background="#E12E2E2E" + AllowsTransparency="True" + Background="Transparent" Closing="OnClosing" Deactivated="OnDeactivated" Icon="Images/app.png" @@ -34,7 +34,7 @@ Topmost="True" Visibility="{Binding MainWindowVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" WindowStartupLocation="Manual" - WindowStyle="SingleBorderWindow" + WindowStyle="None" mc:Ignorable="d">