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 | |
| 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
| -rw-r--r-- | Course/Detail/Classic/Content/Sidebar/Video-alt.ui.qml | 10 | ||||
| -rw-r--r-- | Course/Grid/Card.ui.qml | 1 | ||||
| -rw-r--r-- | Shop/Cart/CartTotal.ui.qml | 11 |
3 files changed, 9 insertions, 13 deletions
diff --git a/Course/Detail/Classic/Content/Sidebar/Video-alt.ui.qml b/Course/Detail/Classic/Content/Sidebar/Video-alt.ui.qml index 3e7e756..7d7d368 100644 --- a/Course/Detail/Classic/Content/Sidebar/Video-alt.ui.qml +++ b/Course/Detail/Classic/Content/Sidebar/Video-alt.ui.qml @@ -2,18 +2,16 @@ import QtQuick import QtQuick.Controls import QtQuick.Layouts import QtQuick.Effects -import Qt5Compat.GraphicalEffects Item { width: 350 height: 450 - DropShadow { - color: "#4d000000" + MultiEffect { source: courseVideoCard - verticalOffset: 4 - radius: 12 - samples: 12 anchors.fill: courseVideoCard + shadowEnabled: true + shadowColor: "#4d0000" + shadowVerticalOffset: 4 } Rectangle { id: courseVideoCard diff --git a/Course/Grid/Card.ui.qml b/Course/Grid/Card.ui.qml index a70a05a..0748faf 100644 --- a/Course/Grid/Card.ui.qml +++ b/Course/Grid/Card.ui.qml @@ -10,7 +10,6 @@ Item { anchors.fill: cardItem shadowEnabled: true shadowColor: "#4d0000" - shadowOpacity: .0 shadowVerticalOffset: 4 } Rectangle { 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 |