Change message bubble colors for light ambiences, fixes #239

This commit is contained in:
Sebastian Wolf 2020-12-30 13:49:57 +01:00
parent 33878bb480
commit 7dfe7ddc3e
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A
2 changed files with 2 additions and 2 deletions

View file

@ -262,7 +262,7 @@ ListItem {
height: messageTextColumn.height + precalculatedValues.paddingMediumDouble height: messageTextColumn.height + precalculatedValues.paddingMediumDouble
width: precalculatedValues.backgroundWidth width: precalculatedValues.backgroundWidth
property bool isUnread: index > chatModel.getLastReadMessageIndex() property bool isUnread: index > chatModel.getLastReadMessageIndex()
color: isUnread ? Theme.secondaryHighlightColor : Theme.secondaryColor color: Theme.colorScheme === Theme.LightOnDark ? (isUnread ? Theme.secondaryHighlightColor : Theme.secondaryColor) : (isUnread ? Theme.backgroundGlowColor : Theme.overlayBackgroundColor)
radius: parent.width / 50 radius: parent.width / 50
opacity: isUnread ? 0.5 : 0.2 opacity: isUnread ? 0.5 : 0.2
visible: appSettings.showStickersAsImages || myMessage.content['@type'] !== "messageSticker" visible: appSettings.showStickersAsImages || myMessage.content['@type'] !== "messageSticker"

View file

@ -33,7 +33,7 @@ Item {
anchors.centerIn: parent anchors.centerIn: parent
height: messageText.height + Theme.paddingMedium * 2 height: messageText.height + Theme.paddingMedium * 2
width: Math.min(messageText.implicitWidth, messageText.contentWidth) + Theme.paddingMedium * 2 width: Math.min(messageText.implicitWidth, messageText.contentWidth) + Theme.paddingMedium * 2
color: Theme.rgba(Theme.secondaryColor, 0.1) color: Theme.colorScheme === Theme.LightOnDark ? Theme.rgba(Theme.secondaryColor, 0.1) : Theme.rgba(Theme.overlayBackgroundColor, 0.1)
radius: parent.width / 50 radius: parent.width / 50
} }
Text { Text {