mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
linkMessage: new design
GitLab: #1325 Change-Id: Id9b4e1430575fbf53f0657e94c9a27c5b35e4a93
This commit is contained in:
parent
a4b758611c
commit
e74be0934e
1 changed files with 7 additions and 4 deletions
|
@ -33,7 +33,7 @@ SBSMessageBase {
|
|||
property string colorUrl: UtilsAdapter.luma(bubble.color) ? JamiTheme.chatviewLinkColorLight : JamiTheme.chatviewLinkColorDark
|
||||
property string colorText: UtilsAdapter.luma(bubble.color) ? JamiTheme.chatviewTextColorLight : JamiTheme.chatviewTextColorDark
|
||||
|
||||
bigMsg: textEditId.lineCount > 1
|
||||
bigMsg: (textEditId.lineCount > 1) || extraContent.active
|
||||
|
||||
Connections {
|
||||
target: bubble
|
||||
|
@ -142,7 +142,7 @@ SBSMessageBase {
|
|||
|
||||
anchors.right: isOutgoing ? parent.right : undefined
|
||||
property real minSize: 192
|
||||
property real maxSize: 320
|
||||
property real maxSize: 400
|
||||
active: LinkPreviewInfo.url !== undefined
|
||||
sourceComponent: ColumnLayout {
|
||||
id: previewContent
|
||||
|
@ -200,7 +200,7 @@ SBSMessageBase {
|
|||
Layout.preferredWidth: img.width - 2 * hPadding
|
||||
Layout.leftMargin: hPadding
|
||||
Layout.rightMargin: hPadding
|
||||
spacing: 6
|
||||
spacing: 4
|
||||
Label {
|
||||
width: parent.width
|
||||
font.pointSize: 10
|
||||
|
@ -211,10 +211,11 @@ SBSMessageBase {
|
|||
color: root.colorText
|
||||
visible: LinkPreviewInfo.title.length > 0
|
||||
text: LinkPreviewInfo.title
|
||||
lineHeight: 1.3
|
||||
}
|
||||
Label {
|
||||
width: parent.width
|
||||
font.pointSize: 11
|
||||
font.pointSize: 10
|
||||
font.hintingPreference: Font.PreferNoHinting
|
||||
wrapMode: Label.WrapAtWordBoundaryOrAnywhere
|
||||
renderType: Text.NativeRendering
|
||||
|
@ -223,6 +224,7 @@ SBSMessageBase {
|
|||
font.underline: root.hoveredLink
|
||||
text: LinkPreviewInfo.description
|
||||
color: root.colorUrl
|
||||
lineHeight: 1.3
|
||||
}
|
||||
Label {
|
||||
width: parent.width
|
||||
|
@ -233,6 +235,7 @@ SBSMessageBase {
|
|||
textFormat: TextEdit.RichText
|
||||
color: root.colorText
|
||||
text: LinkPreviewInfo.domain
|
||||
lineHeight: 1.3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue