aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/ChatlistItem.qml20
-rw-r--r--qml/Message.qml2
2 files changed, 7 insertions, 15 deletions
diff --git a/qml/ChatlistItem.qml b/qml/ChatlistItem.qml
index d087f4b..aa05d42 100644
--- a/qml/ChatlistItem.qml
+++ b/qml/ChatlistItem.qml
@@ -85,6 +85,7 @@ Kirigami.AbstractListItem {
}
+ // Contact request / new messages count badge
Label {
text: root.isContactRequest ? "NEW" : root.freshMsgCnt
visible: root.freshMsgCnt > 0 || root.isContactRequest
@@ -101,20 +102,13 @@ Kirigami.AbstractListItem {
}
- // "Pinned" badge
- Rectangle {
+ // Pinned message badge
+ Label {
visible: root.isPinned
- color: Kirigami.Theme.alternateBackgroundColor
- width: Kirigami.Units.gridUnit
- height: Kirigami.Units.gridUnit
- radius: 0.25 * height
-
- Kirigami.Icon {
- source: "pin"
- height: Kirigami.Units.gridUnit
- width: Kirigami.Units.gridUnit
- }
-
+ text: "📌"
+ font.pixelSize: 20
+ rightPadding: 15
+ bottomPadding: 15
}
}
diff --git a/qml/Message.qml b/qml/Message.qml
index 2798d95..14d68a8 100644
--- a/qml/Message.qml
+++ b/qml/Message.qml
@@ -291,8 +291,6 @@ RowLayout {
hoverEnabled: true
ToolTip.visible: hovered
ToolTip.text: "<u>"+root.message.videochatUrl+"</u>"
- //Layout.leftMargin: 30
- //Layout.rightMargin: 30
onClicked: Qt.openUrlExternally(root.message.videochatUrl)
}
}