summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-11-15 23:14:47 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-11-25 19:05:12 +0100
commitd1af1a86691290c67ad9e2b6ae9440b1254a2c0b (patch)
tree2127c4396d29ada0ed618f275619cb96b05ca380 /resources
parentAdd file uploading (diff)
downloadnheko-d1af1a86691290c67ad9e2b6ae9440b1254a2c0b.tar.xz
Move calls to new input bar
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/MessageInput.qml13
-rw-r--r--resources/qml/NhekoBusyIndicator.qml4
2 files changed, 14 insertions, 3 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml
index a1220599..17e1198d 100644
--- a/resources/qml/MessageInput.qml
+++ b/resources/qml/MessageInput.qml
@@ -17,14 +17,18 @@ Rectangle {
         spacing: 16
 
         ImageButton {
+            visible: TimelineManager.callsSupported
             Layout.alignment: Qt.AlignBottom
             hoverEnabled: true
             width: 22
             height: 22
-            image: ":/icons/icons/ui/place-call.png"
+            image: TimelineManager.isOnCall ? ":/icons/icons/ui/end-call.png" : ":/icons/icons/ui/place-call.png"
+            ToolTip.visible: hovered
+            ToolTip.text: TimelineManager.isOnCall ? qsTr("Hang up") : qsTr("Place a call")
             Layout.topMargin: 8
             Layout.bottomMargin: 8
             Layout.leftMargin: 16
+            onClicked: TimelineManager.timeline.input.callButton()
         }
 
         ImageButton {
@@ -35,7 +39,10 @@ Rectangle {
             image: ":/icons/icons/ui/paper-clip-outline.png"
             Layout.topMargin: 8
             Layout.bottomMargin: 8
+            Layout.leftMargin: TimelineManager.callsSupported ? 0 : 16
             onClicked: TimelineManager.timeline.input.openFileSelection()
+            ToolTip.visible: hovered
+            ToolTip.text: qsTr("Send a file")
 
             Rectangle {
                 anchors.fill: parent
@@ -112,6 +119,8 @@ Rectangle {
             image: ":/icons/icons/ui/smile.png"
             Layout.topMargin: 8
             Layout.bottomMargin: 8
+            ToolTip.visible: hovered
+            ToolTip.text: qsTr("Emoji")
         }
 
         ImageButton {
@@ -123,6 +132,8 @@ Rectangle {
             Layout.topMargin: 8
             Layout.bottomMargin: 8
             Layout.rightMargin: 16
+            ToolTip.visible: hovered
+            ToolTip.text: qsTr("Send")
             onClicked: {
                 TimelineManager.timeline.input.send();
                 textArea.clear();
diff --git a/resources/qml/NhekoBusyIndicator.qml b/resources/qml/NhekoBusyIndicator.qml
index 8889989a..89a40dd5 100644
--- a/resources/qml/NhekoBusyIndicator.qml
+++ b/resources/qml/NhekoBusyIndicator.qml
@@ -6,8 +6,8 @@ BusyIndicator {
     id: control
 
     contentItem: Item {
-        implicitWidth: Math.min(parent.height, parent.width)
-        implicitHeight: implicitWidth
+        implicitWidth: 64
+        implicitHeight: 64
 
         Item {
             id: item