From 9b3edbb51ca2410cc8b644307efb5d67371cf009 Mon Sep 17 00:00:00 2001 From: Erik Prabowo Kamal Date: Fri, 12 Dec 2025 22:08:13 +0800 Subject: Reimplement Qt5 DropShadow using Qt6 MultiEffect Remaining ones. Shadow opacity is fixed too (it was meant to be opaque, not transparent). See 70eefa50f9a70554d9db7004e48555858dfc008c https://darapsa.org/qeduport.git/commit/?id=70eefa50f9a70554d9db7004e48555858dfc008c --- Shop/Cart/CartTotal.ui.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Shop') diff --git a/Shop/Cart/CartTotal.ui.qml b/Shop/Cart/CartTotal.ui.qml index f7ff2ba..4945c17 100644 --- a/Shop/Cart/CartTotal.ui.qml +++ b/Shop/Cart/CartTotal.ui.qml @@ -1,17 +1,16 @@ import QtQuick import QtQuick.Controls import QtQuick.Layouts -import Qt5Compat.GraphicalEffects +import QtQuick.Effects Item { id: cartTotal - DropShadow { - color: "#4d000000" + MultiEffect { source: cartTotalCard - verticalOffset: 4 - radius: 40 - samples: 81 anchors.fill: cartTotalCard + shadowEnabled: true + shadowColor: "#4d0000" + shadowVerticalOffset: 4 } Rectangle { id: cartTotalCard -- cgit v1.2.3