Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamila <hello@camila.codes>2020-09-29 20:22:43 +0300
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>2020-09-30 11:46:01 +0300
commit954544830dd1a1c72684efc26bf1878af38d3c7e (patch)
treeb31e36c6b39fe7391b5d660af05e6259984276ea /src/gui/tray
parent2cb919a6848952998fc5628041074a3b75e64879 (diff)
Add a clickable icon for Talk notifications.
Signed-off-by: Camila <hello@camila.codes>
Diffstat (limited to 'src/gui/tray')
-rw-r--r--src/gui/tray/Window.qml30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml
index ad4cfc0e7..f5d23b4a6 100644
--- a/src/gui/tray/Window.qml
+++ b/src/gui/tray/Window.qml
@@ -536,7 +536,9 @@ Window {
id: activityMouseArea
enabled: (path !== "" || link !== "")
anchors.left: activityItem.left
- anchors.right: ((shareButton.visible) ? shareButton.left : activityItem.right)
+ anchors.right: (shareButton.visible) ? shareButton.left
+ : (replyButton.visible) ? replyButton.left
+ : activityItem.right
height: parent.height
anchors.margins: 2
hoverEnabled: true
@@ -645,6 +647,32 @@ Window {
Accessible.name: qsTr("Share") + " " + displayPath
Accessible.onPressAction: shareButton.clicked()
}
+
+ Button {
+ id: replyButton
+ anchors.right: activityItem.right
+
+ Layout.preferredWidth: (objectType == "chat" || objectType == "call") ? parent.height : 0
+ Layout.preferredHeight: parent.height
+ Layout.alignment: Qt.AlignRight
+ flat: true
+ hoverEnabled: true
+ visible: (objectType == "chat" || objectType == "call") ? true : false
+ display: AbstractButton.IconOnly
+ icon.source: "qrc:///client/theme/reply.svg"
+ icon.color: "transparent"
+ background: Rectangle {
+ color: parent.hovered ? Style.lightHover : "transparent"
+ }
+ ToolTip.visible: hovered
+ ToolTip.delay: 1000
+ ToolTip.text: qsTr("Open Talk")
+ onClicked: Qt.openUrlExternally(link)
+
+ Accessible.role: Accessible.Button
+ Accessible.name: qsTr("Open Talk") + " " + link
+ Accessible.onPressAction: replyButton.clicked()
+ }
}
/*add: Transition {