summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-10-09 22:29:53 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-09 22:29:53 +0200
commitf47f66f748cb2e40d498fccd7496c98ba6af1e8d (patch)
treed39b207eb9c2bba202e499adb0d470307c791fc5 /resources
parentRemove old TimelineRow (diff)
downloadnheko-f47f66f748cb2e40d498fccd7496c98ba6af1e8d.tar.xz
Add threads display and prettier highlight to bubbles style
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/TimelineBubbleMessageStyle.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/qml/TimelineBubbleMessageStyle.qml b/resources/qml/TimelineBubbleMessageStyle.qml
index 7635fba9..d1a80976 100644
--- a/resources/qml/TimelineBubbleMessageStyle.qml
+++ b/resources/qml/TimelineBubbleMessageStyle.qml
@@ -82,7 +82,9 @@ TimelineEvent {
         }, 
         Rectangle {
             anchors.fill: gridContainer
-            color: (Settings.messageHoverHighlight && messageHover.hovered) ? palette.alternateBase : "transparent"
+            property color threadColor: TimelineManager.userColor(wrapper.threadId, palette.base)
+            property color threadBackgroundColor: wrapper.threadId ? Qt.tint(palette.base, Qt.hsla(threadColor.hslHue, 0.7, threadColor.hslLightness, 0.1)) : "transparent"
+            color: (Settings.messageHoverHighlight && messageHover.hovered) ? palette.alternateBase : threadBackgroundColor
 
             // this looks better without margins
             TapHandler {
@@ -281,7 +283,7 @@ TimelineEvent {
 
                 padding: wrapper.isStateEvent ? 0 : 4
                 background: Rectangle {
-                    color: !wrapper.isStateEvent ? Qt.tint(palette.base, Qt.hsla(messageBubble.userColor.hslHue, 0.5, messageBubble.userColor.hslLightness, 0.2)) : "transparent"
+                    color: !wrapper.isStateEvent ? Qt.tint(palette.base, Qt.hsla(messageBubble.userColor.hslHue, wrapper.hovered ? 0.8 : 0.5, messageBubble.userColor.hslLightness, 0.2)) : "transparent"
                     radius: 4
                     border.color: Nheko.theme.red
                     border.width: wrapper.notificationlevel == MtxEvent.Highlight ? 1 : 0