diff options
| author | Erik Prabowo Kamal <erik@darapsa.org> | 2025-12-12 22:08:13 +0800 |
|---|---|---|
| committer | Erik Prabowo Kamal <erik@darapsa.org> | 2025-12-12 22:08:13 +0800 |
| commit | 9b3edbb51ca2410cc8b644307efb5d67371cf009 (patch) | |
| tree | 4b051a75e2c5fe8d039dc24149026106fa81e09f /Shop/Cart/CartTotal.ui.qml | |
| parent | 7a58e966e9501020f046c8b686f81d66ae6f3210 (diff) | |
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
Diffstat (limited to 'Shop/Cart/CartTotal.ui.qml')
| -rw-r--r-- | Shop/Cart/CartTotal.ui.qml | 11 |
1 files changed, 5 insertions, 6 deletions
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 |