RibbonWindow: Disable blur background for Windows due to qwindowkit's bug.

This commit is contained in:
Mentalflow 2024-04-21 05:09:46 +08:00
parent 6e5ad39f4f
commit 02077f837a
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ Window {
property alias title_bar: titleBar
property alias popup: pop
property bool comfirmed_quit: false
property bool blurBehindWindow: true
property bool blurBehindWindow: false
visible: false
color: {
if (blurBehindWindow) {
@ -45,6 +45,7 @@ Window {
}
if(Qt.platform.os === "osx")
{
blurBehindWindow = true
windowAgent.setWindowAttribute("blur-effect", blurBehindWindow ? RibbonTheme.dark_mode ? "dark" : "light" : "none")
PlatformSupport.showSystemTitleBtns(window, true)
}