Start implementing new message selection system

This commit is contained in:
miruka
2020-03-25 23:06:51 -04:00
parent 710dba09ec
commit 3852357614
12 changed files with 130 additions and 13 deletions

View File

@@ -8,6 +8,7 @@ HMxcImage {
width: fitSize.width
height: fitSize.height
horizontalAlignment: Image.AlignLeft
enabledAnimatedPausing: ! eventList.selectedCount
title: thumbnail ? loader.thumbnailTitle : loader.title
animated: loader.singleMediaInfo.media_mime === "image/gif" ||
@@ -82,8 +83,11 @@ HMxcImage {
TapHandler {
onTapped: if (! image.animated) getOpenUrl(Qt.openUrlExternally)
onDoubleTapped: getOpenUrl(Qt.openUrlExternally)
onTapped:
eventList.selectedCount ?
eventDelegate.toggleChecked() : getOpenUrl(Qt.openUrlExternally)
gesturePolicy: TapHandler.ReleaseWithinBounds
}
HoverHandler {
@@ -123,4 +127,12 @@ HMxcImage {
Behavior on opacity { HNumberAnimation {} }
}
Rectangle {
anchors.fill: parent
visible: eventDelegate.checked
// XXX
color: "blue"
opacity: 0.2
}
}