|
|
@ -43,28 +43,28 @@ Item { |
|
|
|
|
|
|
|
|
|
|
|
anchors.fill: parent |
|
|
|
anchors.fill: parent |
|
|
|
visible: mouseArea.containsMouse |
|
|
|
visible: mouseArea.containsMouse |
|
|
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
Rectangle { |
|
|
|
id: container |
|
|
|
id: container |
|
|
|
|
|
|
|
|
|
|
|
width: parent.width |
|
|
|
width: parent.width |
|
|
|
implicitHeight: imgcaption.implicitHeight |
|
|
|
implicitHeight: imgcaption.implicitHeight |
|
|
|
anchors.bottom: overlay.bottom |
|
|
|
anchors.bottom: overlay.bottom |
|
|
|
color: "black" |
|
|
|
color: colors.window |
|
|
|
opacity: 0.75 |
|
|
|
opacity: 0.75 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Text { |
|
|
|
Text { |
|
|
|
id: imgcaption |
|
|
|
id: imgcaption |
|
|
|
|
|
|
|
|
|
|
|
anchors.fill: parent |
|
|
|
anchors.fill: container |
|
|
|
elide: Text.ElideMiddle |
|
|
|
elide: Text.ElideMiddle |
|
|
|
horizontalAlignment: Text.AlignHCenter |
|
|
|
horizontalAlignment: Text.AlignHCenter |
|
|
|
verticalAlignment: Text.AlignVCenter |
|
|
|
verticalAlignment: Text.AlignVCenter |
|
|
|
// See this MSC: https://github.com/matrix-org/matrix-doc/pull/2530 |
|
|
|
// See this MSC: https://github.com/matrix-org/matrix-doc/pull/2530 |
|
|
|
text: model.data.filename ? model.data.filename : model.data.body |
|
|
|
text: model.data.filename ? model.data.filename : model.data.body |
|
|
|
color: "white" |
|
|
|
color: colors.text |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|