chore: object names added for link previews elements (#14869)
This commit is contained in:
parent
92fc9b18f2
commit
dd2d64043b
|
@ -94,6 +94,7 @@ CalloutCard {
|
||||||
}
|
}
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
id: title
|
id: title
|
||||||
|
objectName: "linkPreviewTitle"
|
||||||
// One line centered next to the logo
|
// One line centered next to the logo
|
||||||
// Two or more lines, or no logo, top aligned
|
// Two or more lines, or no logo, top aligned
|
||||||
readonly property bool centerText: lineCount == 1 && height === logo.height && logo.visible
|
readonly property bool centerText: lineCount == 1 && height === logo.height && logo.visible
|
||||||
|
@ -115,6 +116,7 @@ CalloutCard {
|
||||||
visible: root.type === Constants.LinkPreviewType.StatusContact
|
visible: root.type === Constants.LinkPreviewType.StatusContact
|
||||||
publicKey: root.userData.publicKey
|
publicKey: root.userData.publicKey
|
||||||
oneRow: true
|
oneRow: true
|
||||||
|
objectName: "linkPreviewEmojiHash"
|
||||||
}
|
}
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
id: description
|
id: description
|
||||||
|
|
|
@ -185,6 +185,7 @@ CalloutCard {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
id: titleText
|
id: titleText
|
||||||
|
objectName: "linkPreviewTitleText"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
font.pixelSize: Style.current.additionalTextSize
|
font.pixelSize: Style.current.additionalTextSize
|
||||||
|
@ -217,6 +218,7 @@ CalloutCard {
|
||||||
}
|
}
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
id: subtitleText
|
id: subtitleText
|
||||||
|
objectName: "linkPreviewSubtitleText"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
font.pixelSize: Style.current.tertiaryTextFontSize
|
font.pixelSize: Style.current.tertiaryTextFontSize
|
||||||
|
|
|
@ -39,6 +39,7 @@ CalloutCard {
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
text: qsTr("Show link previews?")
|
text: qsTr("Show link previews?")
|
||||||
|
objectName: "titleText"
|
||||||
}
|
}
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -49,6 +50,7 @@ CalloutCard {
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
text: qsTr("A preview of your link will be shown here before you send it")
|
text: qsTr("A preview of your link will be shown here before you send it")
|
||||||
|
objectName: "subtitleText"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ComboBox {
|
ComboBox {
|
||||||
|
@ -98,6 +100,7 @@ CalloutCard {
|
||||||
|
|
||||||
StatusFlatRoundButton {
|
StatusFlatRoundButton {
|
||||||
id: closeButton
|
id: closeButton
|
||||||
|
objectName: "closeLinkPreviewButton"
|
||||||
Layout.preferredHeight: 38
|
Layout.preferredHeight: 38
|
||||||
Layout.preferredWidth: 38
|
Layout.preferredWidth: 38
|
||||||
type: StatusFlatRoundButton.Type.Secondary
|
type: StatusFlatRoundButton.Type.Secondary
|
||||||
|
|
Loading…
Reference in New Issue