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 --- Course/Detail/Classic/Content/Sidebar/Video-alt.ui.qml | 10 ++++------ Course/Grid/Card.ui.qml | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'Course') 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 { -- cgit v1.2.3