RibbonWindow: Disable blurBehindWindow for Win 10 and below.(#5)

This commit is contained in:
Mentalflow 2024-07-29 19:42:25 +08:00
parent a607bf39ee
commit 1e3333cdfa
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
2 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,7 @@ Window {
property alias titleBar: titleBar
property alias popup: pop
property bool comfirmedQuit: false
property bool blurBehindWindow: true
property bool blurBehindWindow: false
property int windowsTopFix: Qt.platform.os === 'windows' ? 1 : 0 // a trick to fix Qt or QWindowKit's bug
property var viewItems
property var tabBar
@ -63,6 +63,7 @@ Window {
windowAgent.centralize()
raise()
windowAgent.setWindowAttribute("dark-mode", RibbonTheme.isDarkMode)
blurBehindWindow = Qt.platform.os === 'windows' && !RibbonUI.isWin11 ? false : true
if (Qt.platform.os === 'windows')
{
windowAgent.setWindowAttribute("dwm-blur", blurBehindWindow)

View File

@ -17,7 +17,7 @@ Window {
property alias titleBar: titleBar
property alias popup: pop
property bool comfirmedQuit: false
property bool blurBehindWindow: true
property bool blurBehindWindow: false
property int windowsTopFix: Qt.platform.os === 'windows' ? 1 : 0 // a trick to fix Qt or QWindowKit's bug
property var viewItems
property var tabBar
@ -63,6 +63,7 @@ Window {
windowAgent.centralize()
raise()
windowAgent.setWindowAttribute("dark-mode", RibbonTheme.isDarkMode)
blurBehindWindow = Qt.platform.os === 'windows' && !RibbonUI.isWin11 ? false : true
if (Qt.platform.os === 'windows')
{
windowAgent.setWindowAttribute("dwm-blur", blurBehindWindow)