Hide image event name/time bubbles when kb-focused

This commit is contained in:
miruka 2021-02-28 18:16:43 -04:00
parent 376364afad
commit 1db8c66759
3 changed files with 5 additions and 4 deletions

View File

@ -1,13 +1,12 @@
# TODO
- custom action
- seen tooltips can't be shown on image hover
- quick settings
- import/export/json edit rules?
- room selector for room rules
- validate json for unknown action/condition
- custom action
- PCN docstrings
- PCN error handling

View File

@ -17,6 +17,8 @@ HColumnLayout {
readonly property var nextModel: eventList.model.get(model.index - 1)
readonly property QtObject currentModel: model
readonly property bool isFocused: model.index === eventList.currentIndex
readonly property bool compact: window.settings.General.compact
readonly property bool checked: model.id in eventList.checked
readonly property bool isOwn: chat.userId === model.sender_id

View File

@ -131,7 +131,7 @@ HMxcImage {
anchors.top: parent.top
text: loader.showSender
textFormat: Text.StyledText
opacity: hover.hovered ? 0 : 1
opacity: hover.hovered || eventDelegate.isFocused ? 0 : 1
visible: opacity > 0
Behavior on opacity { HNumberAnimation {} }
@ -143,7 +143,7 @@ HMxcImage {
text: loader.showDate + loader.showLocalEcho
textFormat: Text.RichText
opacity: hover.hovered ? 0 : 1
opacity: hover.hovered || eventDelegate.isFocused ? 0 : 1
visible: opacity > 0
Behavior on opacity { HNumberAnimation {} }