Improve appearance of room listing

This ports the room list delegates to Kirigami.BasicListItem leading/trailing for a more consistent appearance with other applications, and adjusts how their context menus look and behave
This commit is contained in:
Carson Black
2020-12-02 15:54:45 -05:00
committed by Nicolas Fella
parent a3e1e1d0a4
commit 07f637c854
3 changed files with 39 additions and 70 deletions

View File

@@ -16,17 +16,13 @@ Menu {
property var room
MenuItem {
text: i18n("Favourite")
checkable: true
checked: room.isFavourite
text: room.isFavourite ? i18n("Remove from Favourites") : i18n("Add to Favourites")
onTriggered: room.isFavourite ? room.removeTag("m.favourite") : room.addTag("m.favourite", 1.0)
}
MenuItem {
text: i18n("Deprioritize")
checkable: true
checked: room.isLowPriority
text: room.isLowPriority ? i18n("Reprioritize") : i18n("Deprioritize")
onTriggered: room.isLowPriority ? room.removeTag("m.lowpriority") : room.addTag("m.lowpriority", 1.0)
}