Commit eaf5f702 authored by Nicolas Werner's avatar Nicolas Werner

[konheko] Use Label everywhere

parent 37f76add
Pipeline #150 passed with stage
in 25 minutes and 4 seconds
......@@ -154,10 +154,11 @@ Page {
bottom: bubble.bottom
}
Text {
Label {
id: username
text: room.userIdToUserName(model.UserId)
font.pixelSize: Theme.fontSizeSmall
color: room.userColor(model.UserId, "#00000000")
Layout.alignment: model.IsSender ? Qt.AlignRight : Qt.AlignLeft
horizontalAlignment: Text.AlignRight
......@@ -171,7 +172,7 @@ Page {
opacity: 1
}
Text {
Label {
id: ts
visible: showTimestamp
......
......@@ -73,7 +73,7 @@ ColumnLayout {
}
Text {
Label {
id: body
text: model.Body
......
......@@ -13,7 +13,7 @@ RowLayout {
}
ColumnLayout {
Text {
Label {
id: body
text: model.Body
......@@ -22,7 +22,7 @@ RowLayout {
Layout.fillWidth: true
}
Text {
Label {
id: fileSize
text: model.FileSize
......
......@@ -31,7 +31,7 @@ ColumnLayout {
}
Text {
Label {
id: body
text: modelData.Body
......
import QtQuick 2.0
import Sailfish.Silica 1.0
Text {
Label {
id: messageText
text: "<style>a:link { color: " + Theme.highlightColor + ";}</style>" + modelData.FormattedBody
......@@ -10,6 +10,7 @@ Text {
color: Theme.primaryColor
// Link color doesn't work with textFormat Text.RichText...
//linkColor: Theme.highlightColor
font.pixelSize: Theme.fontSizeSmall
onLinkActivated: Qt.openUrlExternally(link)
wrapMode: Text.Wrap
width: Math.min(messageText.implicitWidth, bubble.fullMessageWidth)
......
......@@ -106,7 +106,7 @@ ColumnLayout {
}
Text {
Label {
id: body
text: model.Body
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment