From 800b6a16268c0374a3d431d621976d380a93a729 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Fri, 2 Apr 2021 15:17:40 -0400 Subject: [PATCH] Get blur overlay working Progress! --- resources/qml/MobileMessageContextPopup.qml | 6 +++--- resources/qml/TimelineView.qml | 11 +++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/resources/qml/MobileMessageContextPopup.qml b/resources/qml/MobileMessageContextPopup.qml index fa603d52..e517914e 100644 --- a/resources/qml/MobileMessageContextPopup.qml +++ b/resources/qml/MobileMessageContextPopup.qml @@ -13,11 +13,11 @@ Item { function show(attachment, messageModel) { attached = attachment model = messageModel - state = "shown" + popupRoot.state = "shown" } function hide() { - state = "hidden" + popupRoot.state = "hidden" attached = undefined model = undefined } @@ -246,7 +246,7 @@ Item { FastBlur { id: overlay anchors.fill: parent - source: timelineRoot + source: timelineLayout radius: 50 z: popupBottomBar.z - 1 visible: false diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index ad3f9518..adbe2661 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -227,7 +227,7 @@ Item { } Item { - Layout.fillHeight: true + Layout.fillHeight: tru } } @@ -272,5 +272,12 @@ Item { target: room } + MobileMessageContextPopup { + id: mobileContextPopup + + visible: false + anchors.fill: parent + } + } -} +