Get rid of Neochat.Effect

This commit is contained in:
Tobias Fella
2020-12-11 22:37:53 +01:00
parent cbad7fbf51
commit 3c5ee404c3
14 changed files with 14 additions and 452 deletions

View File

@@ -17,7 +17,6 @@ import NeoChat.Setting 1.0
import NeoChat.Component 1.0
import NeoChat.Dialog 1.0
import NeoChat.Menu.Timeline 1.0
import NeoChat.Effect 1.0
Control {
id: root

View File

@@ -17,7 +17,6 @@ import NeoChat.Setting 1.0
import NeoChat.Component 1.0
import NeoChat.Dialog 1.0
import NeoChat.Menu.Timeline 1.0
import NeoChat.Effect 1.0
RowLayout {
property bool openOnFinished: false

View File

@@ -15,7 +15,6 @@ import NeoChat.Setting 1.0
import NeoChat.Component 1.0
import NeoChat.Dialog 1.0
import NeoChat.Menu.Timeline 1.0
import NeoChat.Effect 1.0
Image {
readonly property bool isAnimated: contentType === "image/gif"
@@ -85,15 +84,23 @@ Image {
}
}
RippleEffect {
anchors.fill: parent
MouseArea {
id: messageMouseArea
onPrimaryClicked: fullScreenImage.createObject(parent, {"filename": eventId, "localPath": currentRoom.urlToDownload(eventId)}).showFullScreen()
anchors.fill: parent
onSecondaryClicked: {
var contextMenu = imageDelegateContextMenu.createObject(root, {'room': currentRoom});
acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: {
if(mouse.button === Qt.LeftButton) {
fullScreenImage.createObject(parent, {"filename": eventId, "localPath": currentRoom.urlToDownload(eventId)}).showFullScreen()
} else {
openContextMenu()
}
}
function openContextMenu() {
var contextMenu = imageDelegateContextMenu.createObject(root, {'room': currentRoom, 'author': author});
contextMenu.viewSource.connect(function() {
messageSourceSheet.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
})

View File

@@ -11,7 +11,6 @@ import org.kde.kirigami 2.13 as Kirigami
import NeoChat.Component 1.0
import NeoChat.Dialog 1.0
import NeoChat.Effect 1.0
import NeoChat.Setting 1.0
RowLayout {

View File

@@ -17,7 +17,6 @@ import org.kde.neochat 1.0
import NeoChat.Component 1.0
import NeoChat.Dialog 1.0
import NeoChat.Menu.Timeline 1.0
import NeoChat.Effect 1.0
Video {
id: vid