RibbonWindow: Disable blur background for Windows due to qwindowkit's bug.
This commit is contained in:
parent
6e5ad39f4f
commit
02077f837a
|
@ -16,7 +16,7 @@ Window {
|
||||||
property alias title_bar: titleBar
|
property alias title_bar: titleBar
|
||||||
property alias popup: pop
|
property alias popup: pop
|
||||||
property bool comfirmed_quit: false
|
property bool comfirmed_quit: false
|
||||||
property bool blurBehindWindow: true
|
property bool blurBehindWindow: false
|
||||||
visible: false
|
visible: false
|
||||||
color: {
|
color: {
|
||||||
if (blurBehindWindow) {
|
if (blurBehindWindow) {
|
||||||
|
@ -45,6 +45,7 @@ Window {
|
||||||
}
|
}
|
||||||
if(Qt.platform.os === "osx")
|
if(Qt.platform.os === "osx")
|
||||||
{
|
{
|
||||||
|
blurBehindWindow = true
|
||||||
windowAgent.setWindowAttribute("blur-effect", blurBehindWindow ? RibbonTheme.dark_mode ? "dark" : "light" : "none")
|
windowAgent.setWindowAttribute("blur-effect", blurBehindWindow ? RibbonTheme.dark_mode ? "dark" : "light" : "none")
|
||||||
PlatformSupport.showSystemTitleBtns(window, true)
|
PlatformSupport.showSystemTitleBtns(window, true)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue