Skip to content

Commit

Permalink
Accidentally removed highlights, they're back
Browse files Browse the repository at this point in the history
Thanks Minnozz for the hint
  • Loading branch information
MartinBriza committed Jul 2, 2024
1 parent a286c38 commit 9a0bdd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/Lith/UI/ChannelMessage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ import QtQuick.Controls
import Lith.Core
import Lith.Style

Item {
Rectangle {
id: root
z: index
property int index
property var messageModel: null

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
Expand Down

0 comments on commit 9a0bdd1

Please sign in to comment.