Switch to traditional blur if the user disabled extra processing
Amends commit 070e8edc52
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
070e8edc52
commit
bd05c66e23
|
@ -662,6 +662,11 @@ bool Utilities::isWin10OrGreater(const int subVer)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool disableExtraProcessingForBlur()
|
||||||
|
{
|
||||||
|
return qEnvironmentVariableIsSet(_flh_global::_flh_acrylic_disableExtraProcess);
|
||||||
|
}
|
||||||
|
|
||||||
static inline bool forceEnableDwmBlur()
|
static inline bool forceEnableDwmBlur()
|
||||||
{
|
{
|
||||||
return qEnvironmentVariableIsSet(_flh_global::_flh_acrylic_forceEnableTraditionalBlur_flag);
|
return qEnvironmentVariableIsSet(_flh_global::_flh_acrylic_forceEnableTraditionalBlur_flag);
|
||||||
|
@ -696,7 +701,7 @@ bool Utilities::isOfficialMSWin10AcrylicBlurAvailable()
|
||||||
if (!isWin10OrGreater()) {
|
if (!isWin10OrGreater()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!forceEnableDwmBlur() && !forceDisableWallpaperBlur()) {
|
if (!forceEnableDwmBlur() && !forceDisableWallpaperBlur() && !disableExtraProcessingForBlur()) {
|
||||||
// We can't enable the official Acrylic blur in wallpaper blur mode.
|
// We can't enable the official Acrylic blur in wallpaper blur mode.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -718,7 +723,7 @@ static inline bool shouldUseOriginalDwmBlur()
|
||||||
|
|
||||||
bool Utilities::shouldUseTraditionalBlur()
|
bool Utilities::shouldUseTraditionalBlur()
|
||||||
{
|
{
|
||||||
if ((forceEnableDwmBlur() || forceDisableWallpaperBlur()) && shouldUseOriginalDwmBlur()) {
|
if ((forceEnableDwmBlur() || forceDisableWallpaperBlur() || disableExtraProcessingForBlur()) && shouldUseOriginalDwmBlur()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue