Remove hover effect on timeline events

This commit is contained in:
Carl Schwan
2023-07-17 10:42:15 +02:00
parent 6b55e502a0
commit 0847839abc

View File

@@ -519,17 +519,13 @@ ColumnLayout {
visible: cardBackground && !Config.compactLayout visible: cardBackground && !Config.compactLayout
anchors.fill: parent anchors.fill: parent
Kirigami.Theme.colorSet: Kirigami.Theme.View Kirigami.Theme.colorSet: Kirigami.Theme.View
color: { color: if (root.author.isLocalUser) {
if (mainContainer.hovered) {
return Kirigami.ColorUtils.tintWithAlpha(Kirigami.Theme.backgroundColor, Kirigami.Theme.textColor, 0.10)
} else if (root.author.isLocalUser) {
return Kirigami.ColorUtils.tintWithAlpha(Kirigami.Theme.backgroundColor, Kirigami.Theme.highlightColor, 0.15) return Kirigami.ColorUtils.tintWithAlpha(Kirigami.Theme.backgroundColor, Kirigami.Theme.highlightColor, 0.15)
} else if (root.showHighlight) { } else if (root.showHighlight) {
return Kirigami.Theme.positiveBackgroundColor return Kirigami.Theme.positiveBackgroundColor
} else { } else {
return Kirigami.Theme.backgroundColor return Kirigami.Theme.backgroundColor
} }
}
radius: Kirigami.Units.smallSpacing radius: Kirigami.Units.smallSpacing
shadow { shadow {
size: Kirigami.Units.smallSpacing size: Kirigami.Units.smallSpacing