Hide image event name/time bubbles when kb-focused
This commit is contained in:
parent
376364afad
commit
1db8c66759
|
@ -1,13 +1,12 @@
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
- custom action
|
|
||||||
|
|
||||||
- seen tooltips can't be shown on image hover
|
- seen tooltips can't be shown on image hover
|
||||||
|
|
||||||
- quick settings
|
- quick settings
|
||||||
- import/export/json edit rules?
|
- import/export/json edit rules?
|
||||||
- room selector for room rules
|
- room selector for room rules
|
||||||
- validate json for unknown action/condition
|
- validate json for unknown action/condition
|
||||||
|
- custom action
|
||||||
|
|
||||||
- PCN docstrings
|
- PCN docstrings
|
||||||
- PCN error handling
|
- PCN error handling
|
||||||
|
|
|
@ -17,6 +17,8 @@ HColumnLayout {
|
||||||
readonly property var nextModel: eventList.model.get(model.index - 1)
|
readonly property var nextModel: eventList.model.get(model.index - 1)
|
||||||
readonly property QtObject currentModel: model
|
readonly property QtObject currentModel: model
|
||||||
|
|
||||||
|
readonly property bool isFocused: model.index === eventList.currentIndex
|
||||||
|
|
||||||
readonly property bool compact: window.settings.General.compact
|
readonly property bool compact: window.settings.General.compact
|
||||||
readonly property bool checked: model.id in eventList.checked
|
readonly property bool checked: model.id in eventList.checked
|
||||||
readonly property bool isOwn: chat.userId === model.sender_id
|
readonly property bool isOwn: chat.userId === model.sender_id
|
||||||
|
|
|
@ -131,7 +131,7 @@ HMxcImage {
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
text: loader.showSender
|
text: loader.showSender
|
||||||
textFormat: Text.StyledText
|
textFormat: Text.StyledText
|
||||||
opacity: hover.hovered ? 0 : 1
|
opacity: hover.hovered || eventDelegate.isFocused ? 0 : 1
|
||||||
visible: opacity > 0
|
visible: opacity > 0
|
||||||
|
|
||||||
Behavior on opacity { HNumberAnimation {} }
|
Behavior on opacity { HNumberAnimation {} }
|
||||||
|
@ -143,7 +143,7 @@ HMxcImage {
|
||||||
text: loader.showDate + loader.showLocalEcho
|
text: loader.showDate + loader.showLocalEcho
|
||||||
|
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
opacity: hover.hovered ? 0 : 1
|
opacity: hover.hovered || eventDelegate.isFocused ? 0 : 1
|
||||||
visible: opacity > 0
|
visible: opacity > 0
|
||||||
|
|
||||||
Behavior on opacity { HNumberAnimation {} }
|
Behavior on opacity { HNumberAnimation {} }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user