From d8bda78a3b8614acee385402dd6339c80ca02d8a Mon Sep 17 00:00:00 2001 From: kateleet Date: Wed, 22 Dec 2021 02:05:03 +0800 Subject: [PATCH] feat(window): new border --- qml/main.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qml/main.qml b/qml/main.qml index b2148c7..6587259 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -49,11 +49,18 @@ Item { // Background Rectangle { id: _background + + property var borderColor: root.compositing ? FishUI.Theme.darkMode ? Qt.rgba(255, 255, 255, 0.3) + : Qt.rgba(0, 0, 0, 0.2) : FishUI.Theme.darkMode ? Qt.rgba(255, 255, 255, 0.15) + : Qt.rgba(0, 0, 0, 0.15) + anchors.fill: parent radius: root.compositing && Settings.style === 0 ? windowRadius : 0 color: FishUI.Theme.darkMode ? "#666666" : "#E6E6E6" opacity: root.compositing ? FishUI.Theme.darkMode ? 0.5 : 0.5 : 0.9 - border.width: 0 + border.width: 1 / FishUI.Units.devicePixelRatio + border.pixelAligned: FishUI.Units.devicePixelRatio > 1 ? false : true + border.color: borderColor Behavior on color { ColorAnimation {