Make selection look better

This commit is contained in:
miruka
2020-03-26 21:01:36 -04:00
parent 2d471b70f5
commit a61f1d5d04
5 changed files with 22 additions and 10 deletions

View File

@@ -229,8 +229,8 @@ HRowLayout {
z: -100
color: eventDelegate.checked &&
! contentLabel.selectedText &&
! mousePointHandler.active?
"lightseagreen" : // XXX
! mousePointHandler.active ?
theme.chat.message.checkedBackground :
isOwn?
theme.chat.message.ownBackground :

View File

@@ -49,7 +49,9 @@ HTile {
Binding on backgroundColor {
value: "blue" // XXX
value: theme.chat.message.checkedBackground
when: eventDelegate.checked
}
Behavior on backgroundColor { HColorAnimation {} }
}

View File

@@ -130,9 +130,13 @@ HMxcImage {
Rectangle {
anchors.fill: parent
visible: eventDelegate.checked
// XXX
color: "blue"
opacity: 0.2
visible: opacity > 0
color: theme.chat.message.checkedBackground
opacity:
eventDelegate.checked ?
theme.chat.message.thumbnailCheckedOverlayOpacity :
0
Behavior on opacity { HNumberAnimation {} }
}
}