From 9a0bdd1006ddcd360abc89ce4d6f084516c6b7ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20B=C5=99=C3=ADza?= Date: Tue, 2 Jul 2024 19:16:30 +0200 Subject: [PATCH] Accidentally removed highlights, they're back Thanks Minnozz for the hint --- modules/Lith/UI/ChannelMessage.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/Lith/UI/ChannelMessage.qml b/modules/Lith/UI/ChannelMessage.qml index c6c0fbb..26019f3 100644 --- a/modules/Lith/UI/ChannelMessage.qml +++ b/modules/Lith/UI/ChannelMessage.qml @@ -22,7 +22,7 @@ import QtQuick.Controls import Lith.Core import Lith.Style -Item { +Rectangle { id: root z: index property int index @@ -30,7 +30,8 @@ Item { height: (Lith.settings.terminalLikeChat ? Math.max(dateAndPrefixLabel.height, messageText.height) : messageBubble.height) + (headerLabel.visible ? headerLabel.height : 0) + (previewListView.visible ? previewListView.height : 0) - opacity: messageModel.searchCompare(Lith.search.term) ? 1.0 : 0.3 + opacity: messageModel.searchCompare(Lith.search.term) ? 1.0 : 0.33 + color: messageModel.highlight ? ColorUtils.mixColors(LithPalette.regular.highlight, LithPalette.regular.base, 0.33) : isHighlighted ? ColorUtils.mixColors(LithPalette.regular.text, LithPalette.regular.window, 0.16) : "transparent" property alias header: headerLabel.text readonly property bool isHighlighted: Lith.search.highlightedLine && messageModel && Lith.search.highlightedLine === messageModel