summaryrefslogtreecommitdiff
path: root/imports
diff options
context:
space:
mode:
authorErik Prabowo Kamal <erik@darapsa.org>2025-12-12 18:40:48 +0800
committerErik Prabowo Kamal <erik@darapsa.org>2025-12-12 18:40:48 +0800
commit70eefa50f9a70554d9db7004e48555858dfc008c (patch)
tree4989a20b6676ab297bd5cffa75a1fdee33e53be2 /imports
parente8f2d82e994973a274ec3a72cbb568baffb91ffc (diff)
Reimplement Qt5 DropShadow using Qt6 MultiEffect
https://stackoverflow.com/questions/66145143/how-to-create-dropshadow-effect-in-qml-with-qt6#66162760 Didn't follow the checked answer cause it's still using Qt5Compat. Follow the 1st answer instead. Don't know how to reimplement DropShadow's samples & radius yet. Opacity needs to be separated, don't set it on Qt.rgba, otherwise the resulting colour would be too soft/light/invisible.
Diffstat (limited to 'imports')
-rw-r--r--imports/Eduport/Eduport.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/imports/Eduport/Eduport.qml b/imports/Eduport/Eduport.qml
index d8a3354..df53c10 100644
--- a/imports/Eduport/Eduport.qml
+++ b/imports/Eduport/Eduport.qml
@@ -54,7 +54,8 @@ QtObject {
property real bsBoxShadowOffsetX: 0
property real bsBoxShadowOffsetY: 0
property int bsBoxShadowBlurRadius: 40
- property color bsBoxShadowColor: "#261d3a53"
+ property color bsBoxShadowColor: "#261d3a"
+ property real bsBoxShadowOpacity: .33
readonly property real bsBtnPaddingX: 16
readonly property real bsBtnPaddingY: 8