forked from github_mirror/framelesshelper
Disable dynamic switching of Acrylic blur and wallpaper blur
After some testing, it's found that it's not reliable. Maybe we should use another windows message to do this? To be investigated. Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
c9be4858ec
commit
21774f9fbc
|
@ -710,6 +710,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
// TODO: what if the user want to use the wallpaper blur all the time?
|
// TODO: what if the user want to use the wallpaper blur all the time?
|
||||||
// Add an option to let the user choose what he wants.
|
// Add an option to let the user choose what he wants.
|
||||||
if (Utilities::isWin10OrGreater()) {
|
if (Utilities::isWin10OrGreater()) {
|
||||||
|
@ -740,6 +741,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -143,11 +143,13 @@ void FramelessQuickHelper::timerEvent(QTimerEvent *event)
|
||||||
|
|
||||||
void FramelessQuickHelper::setBlurEffectEnabled(const bool enabled, const QColor &gradientColor)
|
void FramelessQuickHelper::setBlurEffectEnabled(const bool enabled, const QColor &gradientColor)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
#ifdef Q_OS_WINDOWS
|
#ifdef Q_OS_WINDOWS
|
||||||
// TODO: let the user choose what he wants.
|
// TODO: let the user choose what he wants.
|
||||||
if (Utilities::isWin10OrGreater()) {
|
if (Utilities::isWin10OrGreater()) {
|
||||||
qputenv(_flh_global::_flh_acrylic_forceEnableOfficialMSWin10AcrylicBlur_flag, "True");
|
qputenv(_flh_global::_flh_acrylic_forceEnableOfficialMSWin10AcrylicBlur_flag, "True");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
Utilities::setBlurEffectEnabled(window(), enabled, gradientColor);
|
Utilities::setBlurEffectEnabled(window(), enabled, gradientColor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,11 +145,13 @@ void QtAcrylicWidget::showEvent(QShowEvent *event)
|
||||||
if (!inited) {
|
if (!inited) {
|
||||||
const QWindow *win = windowHandle();
|
const QWindow *win = windowHandle();
|
||||||
FramelessWindowsManager::addWindow(win);
|
FramelessWindowsManager::addWindow(win);
|
||||||
|
#if 0
|
||||||
#ifdef Q_OS_WINDOWS
|
#ifdef Q_OS_WINDOWS
|
||||||
// TODO: let the user choose what he wants.
|
// TODO: let the user choose what he wants.
|
||||||
if (Utilities::isWin10OrGreater()) {
|
if (Utilities::isWin10OrGreater()) {
|
||||||
qputenv(_flh_global::_flh_acrylic_forceEnableOfficialMSWin10AcrylicBlur_flag, "True");
|
qputenv(_flh_global::_flh_acrylic_forceEnableOfficialMSWin10AcrylicBlur_flag, "True");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
Utilities::setBlurEffectEnabled(win, true);
|
Utilities::setBlurEffectEnabled(win, true);
|
||||||
m_acrylicHelper.install(win);
|
m_acrylicHelper.install(win);
|
||||||
|
|
Loading…
Reference in New Issue