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 /Course/Detail/Classic/Content | |
| 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 'Course/Detail/Classic/Content')
| -rw-r--r-- | Course/Detail/Classic/Content/Sidebar/Video-alt.ui.qml | 10 |
1 files changed, 4 insertions, 6 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 |