From df7622b0c930d73ff5bbe0aa640ac7557bad7ce4 Mon Sep 17 00:00:00 2001 From: reionwong Date: Wed, 16 Jun 2021 13:52:47 +0800 Subject: [PATCH] Adapt compositing effect --- qml/main.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index 0d053ef..f3e55f2 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -41,9 +41,9 @@ Item { Rectangle { id: _background anchors.fill: parent - radius: windowRadius + radius: windowHelper.compositing ? windowRadius : 0 color: FishUI.Theme.darkMode ? "#333333" : "#F2F2F2" - opacity: FishUI.Theme.darkMode ? 0.5 : 0.4 + opacity: windowHelper.compositing ? FishUI.Theme.darkMode ? 0.5 : 0.4 : 1 border.width: 0 Behavior on color { @@ -54,6 +54,10 @@ Item { } } + FishUI.WindowHelper { + id: windowHelper + } + FishUI.WindowShadow { view: mainWindow geometry: Qt.rect(root.x, root.y, root.width, root.height)