Change text aesthetic

This commit is contained in:
Angela Mazzurco 2017-06-06 16:37:10 +02:00
parent f3c37886b4
commit aaeb29a146

View File

@ -115,8 +115,8 @@ Item
{ {
// text: (lastMessageData.recv_time)? Date.fromLocaleDateString(locale, lastMessageData.recv_time, "ddd yyyy-MM-dd hh:mm:ss"): "sad" // text: (lastMessageData.recv_time)? Date.fromLocaleDateString(locale, lastMessageData.recv_time, "ddd yyyy-MM-dd hh:mm:ss"): "sad"
text: setTime() text: setTime()
font.italic: true
anchors.right: parent.right anchors.right: parent.right
color: "darkslategrey"
} }
@ -135,23 +135,18 @@ Item
{ {
id: lastMessageSender id: lastMessageSender
font.italic: true font.italic: true
color: "dodgerblue" color: "royalblue"
text: (!lastMessageData.incoming && lastMessageData.msg)? "You: " : "" text: (!lastMessageData.incoming && lastMessageData.msg)? "You: " : ""
// width: 50
// maximumLineCount: 1
// elide:Text.ElideRight
// wrapMode: Text.WordWrap
} }
Text Text
{ {
id: lastMessageMsg id: lastMessageMsg
anchors.left: lastMessageSender.right anchors.left: lastMessageSender.right
text: (lastMessageData.msg) ? lastMessageData.msg : "" text: (lastMessageData.msg) ? lastMessageData.msg : ""
font.italic: true
rightPadding: 5 rightPadding: 5
elide: Text.ElideRight elide: Text.ElideRight
color: "darkslategrey"
width: chatInfoRow.width - 30 width: chatInfoRow.width - 30
} }