chore: object names added for link previews elements (#14869)

This commit is contained in:
Valentina1133 2024-05-22 09:35:25 +07:00 committed by GitHub
parent 92fc9b18f2
commit dd2d64043b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -94,6 +94,7 @@ CalloutCard {
}
StatusBaseText {
id: title
objectName: "linkPreviewTitle"
// One line centered next to the logo
// Two or more lines, or no logo, top aligned
readonly property bool centerText: lineCount == 1 && height === logo.height && logo.visible
@ -115,6 +116,7 @@ CalloutCard {
visible: root.type === Constants.LinkPreviewType.StatusContact
publicKey: root.userData.publicKey
oneRow: true
objectName: "linkPreviewEmojiHash"
}
StatusBaseText {
id: description

View File

@ -185,6 +185,7 @@ CalloutCard {
spacing: 0
StatusBaseText {
id: titleText
objectName: "linkPreviewTitleText"
Layout.fillWidth: true
Layout.fillHeight: true
font.pixelSize: Style.current.additionalTextSize
@ -217,6 +218,7 @@ CalloutCard {
}
StatusBaseText {
id: subtitleText
objectName: "linkPreviewSubtitleText"
Layout.fillWidth: true
Layout.fillHeight: true
font.pixelSize: Style.current.tertiaryTextFontSize

View File

@ -39,6 +39,7 @@ CalloutCard {
elide: Text.ElideRight
maximumLineCount: 1
text: qsTr("Show link previews?")
objectName: "titleText"
}
StatusBaseText {
Layout.fillWidth: true
@ -49,6 +50,7 @@ CalloutCard {
elide: Text.ElideRight
maximumLineCount: 1
text: qsTr("A preview of your link will be shown here before you send it")
objectName: "subtitleText"
}
}
ComboBox {
@ -98,6 +100,7 @@ CalloutCard {
StatusFlatRoundButton {
id: closeButton
objectName: "closeLinkPreviewButton"
Layout.preferredHeight: 38
Layout.preferredWidth: 38
type: StatusFlatRoundButton.Type.Secondary