forked from github_mirror/framelesshelper
A little simplify.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
cde5ebcf8d
commit
a8f7fdef1d
|
@ -2394,7 +2394,7 @@ bool WinNativeEventFilter::setBlurEffectEnabled(void *handle,
|
||||||
// it will cover the blurred effect, so we need to
|
// it will cover the blurred effect, so we need to
|
||||||
// make the background become totally transparent. Achieve
|
// make the background become totally transparent. Achieve
|
||||||
// this by setting a palette to the window.
|
// this by setting a palette to the window.
|
||||||
widget->setPalette(enabled ? QPalette(QColor(0, 0, 0, 0)) : QPalette());
|
widget->setPalette(enabled ? QPalette(Qt::transparent) : QPalette());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (isWin8OrGreater() && coreData()->m_lpSetWindowCompositionAttribute) {
|
if (isWin8OrGreater() && coreData()->m_lpSetWindowCompositionAttribute) {
|
||||||
|
|
Loading…
Reference in New Issue