[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:21:16 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=fad12d0

The following commit has been merged in the master branch:
commit fad12d0b1a3dea87dac6ec2681d64bf2ad06db4f
Author: Lasath Fernando <kde at lasath.org>
Date:   Mon Feb 13 19:55:09 2012 +1100

    Make plasmoid render outgoing messages in Plasma::Theme::highlightColor color
    
    Looks okay in Air, don't know about other themes. Will probably make an
    option to allow overriding later.
    
    CCBUG: 293485
---
 .../org.kde.ktp-chatplasmoid/contents/ui/TextDelegate.qml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/plasmoid/org.kde.ktp-chatplasmoid/contents/ui/TextDelegate.qml b/plasmoid/org.kde.ktp-chatplasmoid/contents/ui/TextDelegate.qml
index e6871e4..9fd6e0b 100644
--- a/plasmoid/org.kde.ktp-chatplasmoid/contents/ui/TextDelegate.qml
+++ b/plasmoid/org.kde.ktp-chatplasmoid/contents/ui/TextDelegate.qml
@@ -1,9 +1,22 @@
 import Qt 4.7
 import org.kde.plasma.components 0.1 as PlasmaComponents
 import org.kde.plasma.core 0.1 as PlasmaCore
+import org.kde.telepathy.chat 0.1
 
 Item {
-    property color textColor: theme.textColor
+    property color textColor: "black"
+
+    Component.onCompleted: {
+        if(model.type == MessagesModel.MessageTypeIncoming) {
+            console.log("Type: MessagesModel::MessageTypeIncoming");
+            textColor = theme.textColor;
+        } else if(model.type == MessagesModel.MessageTypeOutgoing) {
+            console.log("Type: MessagesModel::MessageTypeOutgoing");
+            textColor = theme.highlightColor;
+        } else {
+            console.log("Unkown Type: " + model.type);
+        }
+    }
 
     PlasmaComponents.Label {
         id: header

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list