mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 14:55:43 +02:00
fix: Files messages hard to see
Files message color now adapt to bubble color Change-Id: I2841b5c50a687bad702813fe1bf7ed1fc079a92b Gitlab: #764
This commit is contained in:
parent
38748efbc2
commit
19011c10bd
1 changed files with 15 additions and 6 deletions
|
@ -134,6 +134,9 @@ Loader {
|
|||
Layout.leftMargin: 12
|
||||
Layout.preferredWidth: 24
|
||||
Layout.preferredHeight: 24
|
||||
color: UtilsAdapter.luma(bubble.color)
|
||||
? JamiTheme.chatviewTextColorLight
|
||||
: JamiTheme.chatviewTextColorDark
|
||||
}
|
||||
}
|
||||
Component {
|
||||
|
@ -176,6 +179,7 @@ Loader {
|
|||
spacing: 6
|
||||
TextEdit {
|
||||
id: transferName
|
||||
|
||||
width: Math.min(implicitWidth, maxMsgWidth)
|
||||
topPadding: 10
|
||||
text: CurrentConversation.isSwarm ?
|
||||
|
@ -186,9 +190,9 @@ Loader {
|
|||
font.pointSize: 11
|
||||
renderType: Text.NativeRendering
|
||||
readOnly: true
|
||||
color: isOutgoing ?
|
||||
JamiTheme.messageOutTxtColor :
|
||||
JamiTheme.messageInTxtColor
|
||||
color: UtilsAdapter.luma(bubble.color)
|
||||
? JamiTheme.chatviewTextColorLight
|
||||
: JamiTheme.chatviewTextColorDark
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: canOpen ?
|
||||
|
@ -204,6 +208,7 @@ Loader {
|
|||
}
|
||||
Label {
|
||||
id: transferInfo
|
||||
|
||||
width: Math.min(implicitWidth, maxMsgWidth)
|
||||
bottomPadding: 10
|
||||
text: {
|
||||
|
@ -221,14 +226,15 @@ Loader {
|
|||
wrapMode: Label.WrapAtWordBoundaryOrAnywhere
|
||||
font.pointSize: 10
|
||||
renderType: Text.NativeRendering
|
||||
color: Qt.lighter((isOutgoing ?
|
||||
JamiTheme.messageOutTxtColor :
|
||||
JamiTheme.messageInTxtColor), 1.5)
|
||||
color: UtilsAdapter.luma(bubble.color)
|
||||
? JamiTheme.chatviewTextColorLight
|
||||
: JamiTheme.chatviewTextColorDark
|
||||
}
|
||||
}
|
||||
}
|
||||
,ProgressBar {
|
||||
id: progressBar
|
||||
|
||||
visible: Status === Interaction.Status.TRANSFER_ONGOING
|
||||
height: visible * implicitHeight
|
||||
value: transferStats.progress / transferStats.totalSize
|
||||
|
@ -259,6 +265,7 @@ Loader {
|
|||
innerContent.children: [
|
||||
Loader {
|
||||
id: localMediaCompLoader
|
||||
|
||||
anchors.right: isOutgoing ? parent.right : undefined
|
||||
asynchronous: true
|
||||
width: sourceComponent.width
|
||||
|
@ -272,6 +279,7 @@ Loader {
|
|||
}
|
||||
Component {
|
||||
id: avComp
|
||||
|
||||
Loader {
|
||||
Component.onCompleted: {
|
||||
var qml = WITH_WEBENGINE ?
|
||||
|
@ -285,6 +293,7 @@ Loader {
|
|||
id: animatedImageComp
|
||||
AnimatedImage {
|
||||
id: animatedImg
|
||||
|
||||
anchors.right: isOutgoing ? parent.right : undefined
|
||||
property real minSize: 192
|
||||
property real maxSize: 256
|
||||
|
|
Loading…
Add table
Reference in a new issue