mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge b5d372ed4b into 24f6c90f72
This commit is contained in:
commit
bde6f4e1d4
1 changed files with 7 additions and 10 deletions
|
|
@ -706,30 +706,27 @@ namespace Flow.Launcher.Core.Resource
|
|||
|
||||
private void AutoDropShadow(bool useDropShadowEffect)
|
||||
{
|
||||
SetWindowCornerPreference("Default");
|
||||
RemoveDropShadowEffectFromCurrentTheme();
|
||||
if (useDropShadowEffect)
|
||||
{
|
||||
if (BlurEnabled && Win32Helper.IsBackdropSupported())
|
||||
{
|
||||
// For themes with blur enabled, the window border is rendered by the system,
|
||||
// so we set corner preference to round and remove drop shadow effect to avoid rendering issues.
|
||||
SetWindowCornerPreference("Round");
|
||||
RemoveDropShadowEffectFromCurrentTheme();
|
||||
}
|
||||
else
|
||||
{
|
||||
// For themes without blur, we set corner preference to default and add drop shadow effect.
|
||||
SetWindowCornerPreference("Default");
|
||||
AddDropShadowEffectToCurrentTheme();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (BlurEnabled && Win32Helper.IsBackdropSupported())
|
||||
{
|
||||
SetWindowCornerPreference("Default");
|
||||
}
|
||||
else
|
||||
{
|
||||
RemoveDropShadowEffectFromCurrentTheme();
|
||||
}
|
||||
// When drop shadow effect is disabled, we set corner preference to default and remove drop shadow effect.
|
||||
SetWindowCornerPreference("Default");
|
||||
RemoveDropShadowEffectFromCurrentTheme();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue