diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2021-11-02 16:50:41 +0100 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2021-11-02 20:46:02 +0100 |
commit | 5960341553d2d3343ef708d19013595c8000d3db (patch) | |
tree | 5bc4b4401786595de73d8ccb1f1d9cba9e1cda28 | |
parent | 09dbd21fef6c18bb79f5dd1b0c73a02dd9fba92d (diff) | |
download | kdeltachat-5960341553d2d3343ef708d19013595c8000d3db.tar.gz kdeltachat-5960341553d2d3343ef708d19013595c8000d3db.zip |
Clearer pin icon for pinned chats.
- We also remove the rectangle behind it.
- remove useless comments in videoChatView
-rw-r--r-- | qml/ChatlistItem.qml | 20 | ||||
-rw-r--r-- | qml/Message.qml | 2 |
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) } } |