From a4e0629878f052946a57702fac2e5436922f53e4 Mon Sep 17 00:00:00 2001 From: reionwong Date: Tue, 27 Jul 2021 01:41:27 +0800 Subject: [PATCH] Add blur effect to logout window --- shutdown-ui/main.qml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/shutdown-ui/main.qml b/shutdown-ui/main.qml index 084bd8a..285ad2e 100644 --- a/shutdown-ui/main.qml +++ b/shutdown-ui/main.qml @@ -21,9 +21,9 @@ import QtQuick 2.12 import QtQuick.Window 2.3 import QtQuick.Controls 2.5 import QtQuick.Layouts 1.3 +import FishUI 1.0 as FishUI -ApplicationWindow -{ +ApplicationWindow { width: Screen.width height: Screen.height visible: true @@ -39,7 +39,14 @@ ApplicationWindow background: Rectangle { color: "black" - opacity: 0.8 + opacity: 0.7 + } + + FishUI.WindowBlur { + view: root + geometry: Qt.rect(root.x, root.y, root.width, root.height) + windowRadius: 0 + enabled: true } onActiveChanged: {