Space Search

Allow to refine searches to spaces only in the main exlore function.
Show which rooms are spaces in the search page.

Closes #577
This commit is contained in:
James Graham
2024-03-30 19:37:46 +00:00
parent 482d61ee47
commit 64b8cd5bcc
6 changed files with 64 additions and 7 deletions

View File

@@ -21,6 +21,7 @@ Delegates.RoundedItemDelegate {
required property string topic
required property int memberCount
required property bool isJoined
required property bool isSpace
property bool justJoined: false
/**
@@ -56,7 +57,7 @@ Delegates.RoundedItemDelegate {
RowLayout {
Layout.fillWidth: true
Kirigami.Heading {
Layout.fillWidth: true
Layout.fillWidth: !spaceLabel.visible
level: 4
text: root.displayName
font.bold: true
@@ -64,6 +65,13 @@ Delegates.RoundedItemDelegate {
elide: Text.ElideRight
wrapMode: Text.NoWrap
}
QQC2.Label {
id: spaceLabel
Layout.fillWidth: true
visible: root.isSpace
text: i18nc("@info:label A matrix space", "Space")
color: Kirigami.Theme.linkColor
}
QQC2.Label {
visible: root.isJoined || root.justJoined
text: i18n("Joined")