Add icons to the recommended space actions, fix spacing of the items
(cherry picked from commit 45685af9e9)
This commit is contained in:
@@ -30,7 +30,7 @@ Kirigami.Dialog {
|
|||||||
FormCard.AbstractFormDelegate {
|
FormCard.AbstractFormDelegate {
|
||||||
background: null
|
background: null
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
spacing: Kirigami.Units.largeSpacing * 4
|
spacing: Kirigami.Units.largeSpacing
|
||||||
Avatar {
|
Avatar {
|
||||||
source: SpaceHierarchyCache.recommendedSpaceAvatar.toString().length > 0 ? root.connection.makeMediaUrl(SpaceHierarchyCache.recommendedSpaceAvatar) : 0
|
source: SpaceHierarchyCache.recommendedSpaceAvatar.toString().length > 0 ? root.connection.makeMediaUrl(SpaceHierarchyCache.recommendedSpaceAvatar) : 0
|
||||||
name: SpaceHierarchyCache.recommendedSpaceDisplayName
|
name: SpaceHierarchyCache.recommendedSpaceDisplayName
|
||||||
@@ -51,6 +51,7 @@ Kirigami.Dialog {
|
|||||||
FormCard.FormDelegateSeparator {}
|
FormCard.FormDelegateSeparator {}
|
||||||
FormCard.FormButtonDelegate {
|
FormCard.FormButtonDelegate {
|
||||||
text: i18nc("@action:button", "Join")
|
text: i18nc("@action:button", "Join")
|
||||||
|
icon.name: "list-add-symbolic"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
SpaceHierarchyCache.recommendedSpaceHidden = true;
|
SpaceHierarchyCache.recommendedSpaceHidden = true;
|
||||||
RoomManager.resolveResource(SpaceHierarchyCache.recommendedSpaceId, "join");
|
RoomManager.resolveResource(SpaceHierarchyCache.recommendedSpaceId, "join");
|
||||||
@@ -58,6 +59,7 @@ Kirigami.Dialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
FormCard.FormButtonDelegate {
|
FormCard.FormButtonDelegate {
|
||||||
|
icon.name: "mail-thread-ignored-symbolic"
|
||||||
text: i18nc("@action:button", "Ignore")
|
text: i18nc("@action:button", "Ignore")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
SpaceHierarchyCache.recommendedSpaceHidden = true;
|
SpaceHierarchyCache.recommendedSpaceHidden = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user