[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [spacebar] app/package/contents/ui: [app] Add "contact is typing" indicator
From:       Martin Klapetek <mklapetek () kde ! org>
Date:       2016-03-17 18:04:47
Message-ID: E1agcHv-0008W1-4D () scm ! kde ! org
[Download RAW message or body]

Git commit 0b06d5ff3a4de2a739b5e16deb8fbb12617347ac by Martin Klapetek.
Committed on 17/03/2016 at 18:04.
Pushed by mklapetek into branch 'master'.

[app] Add "contact is typing" indicator

M  +11   -0    app/package/contents/ui/ConversationPage.qml

http://commits.kde.org/spacebar/0b06d5ff3a4de2a739b5e16deb8fbb12617347ac

diff --git a/app/package/contents/ui/ConversationPage.qml b/app/package/contents/ui/ConversationPage.qml
index 1b0ecc9..6589aad 100644
--- a/app/package/contents/ui/ConversationPage.qml
+++ b/app/package/contents/ui/ConversationPage.qml
@@ -167,6 +167,17 @@ MobileComponents.Page {
     //                 }
             }
 
+            PlasmaComponents.Label {
+                Layout.fillWidth: true
+                // FIXME the i18n seems wrong
+                text: conversation.isContactTyping ? i18n(conversation.title + " is typing...") : ""
+                height: text.length == 0 ? 0 : paintedHeight
+
+                Behavior on height {
+                    NumberAnimation {}
+                }
+            }
+
             RowLayout {
 
                 PlasmaComponents.TextField {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic