Improve the Advanced Room settings page more
I added a separator, made it so the "Copy Room ID to clipboard" button is always shown, and made it more obvious that "Upgrade Room" prompts you first.
This commit is contained in:
@@ -28,7 +28,6 @@ FormCard.FormCardPage {
|
|||||||
description: root.room.id
|
description: root.room.id
|
||||||
|
|
||||||
contentItem.children: QQC2.Button {
|
contentItem.children: QQC2.Button {
|
||||||
visible: roomIdDelegate.hovered
|
|
||||||
text: i18nc("@action:button", "Copy room ID to clipboard")
|
text: i18nc("@action:button", "Copy room ID to clipboard")
|
||||||
icon.name: "edit-copy"
|
icon.name: "edit-copy"
|
||||||
display: QQC2.AbstractButton.IconOnly
|
display: QQC2.AbstractButton.IconOnly
|
||||||
@@ -42,14 +41,19 @@ FormCard.FormCardPage {
|
|||||||
QQC2.ToolTip.visible: hovered
|
QQC2.ToolTip.visible: hovered
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
FormCard.FormDelegateSeparator {
|
||||||
|
above: roomIdDelegate
|
||||||
|
below: roomVersionDelegate
|
||||||
|
}
|
||||||
FormCard.FormTextDelegate {
|
FormCard.FormTextDelegate {
|
||||||
|
id: roomVersionDelegate
|
||||||
text: i18nc("@info:label", "Room Version")
|
text: i18nc("@info:label", "Room Version")
|
||||||
description: root.room.version
|
description: root.room.version
|
||||||
|
|
||||||
contentItem.children: QQC2.Button {
|
contentItem.children: QQC2.Button {
|
||||||
visible: root.room.canSwitchVersions()
|
visible: root.room.canSwitchVersions()
|
||||||
enabled: root.room.version < root.room.maxRoomVersion
|
enabled: root.room.version < root.room.maxRoomVersion
|
||||||
text: i18nc("@action:button", "Upgrade Room")
|
text: i18nc("@action:button", "Upgrade Room…")
|
||||||
icon.name: "arrow-up-double"
|
icon.name: "arrow-up-double"
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|||||||
Reference in New Issue
Block a user