|
|
@ -130,7 +130,7 @@ ApplicationWindow { |
|
|
|
color: palette.text |
|
|
|
color: palette.text |
|
|
|
|
|
|
|
|
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
Layout.maximumWidth: parent.width - (Nheko.paddingSmall * 2) - nameChangeButton.anchors.leftMargin - (nameChangeButton.width * 2) |
|
|
|
Layout.maximumWidth: parent.width - (Nheko.paddingSmall + roomNameButtons.anchors.leftMargin + roomNameButtons.implicitWidth) * 2 |
|
|
|
horizontalAlignment: TextEdit.AlignHCenter |
|
|
|
horizontalAlignment: TextEdit.AlignHCenter |
|
|
|
wrapMode: TextEdit.Wrap |
|
|
|
wrapMode: TextEdit.Wrap |
|
|
|
selectByMouse: true |
|
|
|
selectByMouse: true |
|
|
@ -144,12 +144,16 @@ ApplicationWindow { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ImageButton { |
|
|
|
RowLayout { |
|
|
|
id: nameChangeButton |
|
|
|
id: roomNameButtons |
|
|
|
visible: roomSettings.canChangeName |
|
|
|
|
|
|
|
anchors.leftMargin: Nheko.paddingSmall |
|
|
|
anchors.leftMargin: Nheko.paddingSmall |
|
|
|
anchors.left: roomName.right |
|
|
|
anchors.left: roomName.right |
|
|
|
anchors.verticalCenter: roomName.verticalCenter |
|
|
|
anchors.verticalCenter: roomName.verticalCenter |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ImageButton { |
|
|
|
|
|
|
|
id: nameChangeButton |
|
|
|
|
|
|
|
visible: roomSettings.canChangeName |
|
|
|
hoverEnabled: true |
|
|
|
hoverEnabled: true |
|
|
|
ToolTip.visible: hovered |
|
|
|
ToolTip.visible: hovered |
|
|
|
ToolTip.text: qsTr("Change name of this room") |
|
|
|
ToolTip.text: qsTr("Change name of this room") |
|
|
@ -167,6 +171,18 @@ ApplicationWindow { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EncryptionIndicator { |
|
|
|
|
|
|
|
Layout.preferredHeight: 16 |
|
|
|
|
|
|
|
Layout.preferredWidth: 16 |
|
|
|
|
|
|
|
sourceSize.width: width |
|
|
|
|
|
|
|
sourceSize.height: height |
|
|
|
|
|
|
|
encrypted: true |
|
|
|
|
|
|
|
visible: roomSettings.isEncryptionEnabled && (roomSettings.isRoomNameSet || !roomName.readOnly) |
|
|
|
|
|
|
|
trust: Crypto.Unverified |
|
|
|
|
|
|
|
ToolTip.text: qsTr("Since room state can't be encrypted, make sure no confidential information is stored in the room name!") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
RowLayout { |
|
|
@ -220,9 +236,13 @@ ApplicationWindow { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
|
|
|
|
spacing: Nheko.paddingMedium |
|
|
|
|
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
|
|
|
|
|
|
|
|
ImageButton { |
|
|
|
ImageButton { |
|
|
|
id: topicChangeButton |
|
|
|
id: topicChangeButton |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
|
|
|
|
visible: roomSettings.canChangeTopic |
|
|
|
visible: roomSettings.canChangeTopic |
|
|
|
hoverEnabled: true |
|
|
|
hoverEnabled: true |
|
|
|
ToolTip.visible: hovered |
|
|
|
ToolTip.visible: hovered |
|
|
@ -242,6 +262,18 @@ ApplicationWindow { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EncryptionIndicator { |
|
|
|
|
|
|
|
Layout.preferredHeight: 16 |
|
|
|
|
|
|
|
Layout.preferredWidth: 16 |
|
|
|
|
|
|
|
sourceSize.width: width |
|
|
|
|
|
|
|
sourceSize.height: height |
|
|
|
|
|
|
|
encrypted: true |
|
|
|
|
|
|
|
visible: roomSettings.isEncryptionEnabled && (roomSettings.plainRoomTopic != "" || !roomTopic.readOnly) |
|
|
|
|
|
|
|
trust: Crypto.Unverified |
|
|
|
|
|
|
|
ToolTip.text: qsTr("Since room state can't be encrypted, make sure no confidential information is stored in the room topic!") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Item { |
|
|
|
Item { |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
id: showMorePlaceholder |
|
|
|
id: showMorePlaceholder |
|
|
|