From 5960341553d2d3343ef708d19013595c8000d3db Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Tue, 2 Nov 2021 16:50:41 +0100 Subject: Clearer pin icon for pinned chats. - We also remove the rectangle behind it. - remove useless comments in videoChatView --- qml/ChatlistItem.qml | 20 +++++++------------- qml/Message.qml | 2 -- 2 files changed, 7 insertions(+), 15 deletions(-) (limited to 'qml') 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: ""+root.message.videochatUrl+"" - //Layout.leftMargin: 30 - //Layout.rightMargin: 30 onClicked: Qt.openUrlExternally(root.message.videochatUrl) } } -- cgit v1.2.3-70-g09d2