RibbonWindow: Disable blurBehindWindow for Win 10 and below.(#5)
This commit is contained in:
parent
a607bf39ee
commit
1e3333cdfa
|
@ -17,7 +17,7 @@ Window {
|
||||||
property alias titleBar: titleBar
|
property alias titleBar: titleBar
|
||||||
property alias popup: pop
|
property alias popup: pop
|
||||||
property bool comfirmedQuit: false
|
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 int windowsTopFix: Qt.platform.os === 'windows' ? 1 : 0 // a trick to fix Qt or QWindowKit's bug
|
||||||
property var viewItems
|
property var viewItems
|
||||||
property var tabBar
|
property var tabBar
|
||||||
|
@ -63,6 +63,7 @@ Window {
|
||||||
windowAgent.centralize()
|
windowAgent.centralize()
|
||||||
raise()
|
raise()
|
||||||
windowAgent.setWindowAttribute("dark-mode", RibbonTheme.isDarkMode)
|
windowAgent.setWindowAttribute("dark-mode", RibbonTheme.isDarkMode)
|
||||||
|
blurBehindWindow = Qt.platform.os === 'windows' && !RibbonUI.isWin11 ? false : true
|
||||||
if (Qt.platform.os === 'windows')
|
if (Qt.platform.os === 'windows')
|
||||||
{
|
{
|
||||||
windowAgent.setWindowAttribute("dwm-blur", blurBehindWindow)
|
windowAgent.setWindowAttribute("dwm-blur", blurBehindWindow)
|
||||||
|
|
|
@ -17,7 +17,7 @@ Window {
|
||||||
property alias titleBar: titleBar
|
property alias titleBar: titleBar
|
||||||
property alias popup: pop
|
property alias popup: pop
|
||||||
property bool comfirmedQuit: false
|
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 int windowsTopFix: Qt.platform.os === 'windows' ? 1 : 0 // a trick to fix Qt or QWindowKit's bug
|
||||||
property var viewItems
|
property var viewItems
|
||||||
property var tabBar
|
property var tabBar
|
||||||
|
@ -63,6 +63,7 @@ Window {
|
||||||
windowAgent.centralize()
|
windowAgent.centralize()
|
||||||
raise()
|
raise()
|
||||||
windowAgent.setWindowAttribute("dark-mode", RibbonTheme.isDarkMode)
|
windowAgent.setWindowAttribute("dark-mode", RibbonTheme.isDarkMode)
|
||||||
|
blurBehindWindow = Qt.platform.os === 'windows' && !RibbonUI.isWin11 ? false : true
|
||||||
if (Qt.platform.os === 'windows')
|
if (Qt.platform.os === 'windows')
|
||||||
{
|
{
|
||||||
windowAgent.setWindowAttribute("dwm-blur", blurBehindWindow)
|
windowAgent.setWindowAttribute("dwm-blur", blurBehindWindow)
|
||||||
|
|
Loading…
Reference in New Issue