aboutsummaryrefslogtreecommitdiff
path: root/qml/ChatlistItem.qml
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-11-02 16:50:41 +0100
committerMiquel Lionel <lionel@les-miquelots.net>2021-11-02 20:46:02 +0100
commit5960341553d2d3343ef708d19013595c8000d3db (patch)
tree5bc4b4401786595de73d8ccb1f1d9cba9e1cda28 /qml/ChatlistItem.qml
parent09dbd21fef6c18bb79f5dd1b0c73a02dd9fba92d (diff)
downloadkdeltachat-5960341553d2d3343ef708d19013595c8000d3db.tar.gz
kdeltachat-5960341553d2d3343ef708d19013595c8000d3db.zip
Clearer pin icon for pinned chats.
- We also remove the rectangle behind it. - remove useless comments in videoChatView
Diffstat (limited to 'qml/ChatlistItem.qml')
-rw-r--r--qml/ChatlistItem.qml20
1 files changed, 7 insertions, 13 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
}
}