Improve MembersView when RoomPane collapsed
This commit is contained in:
parent
44e5de02f8
commit
b4df752f8a
|
@ -17,6 +17,7 @@ HButton {
|
|||
readonly property alias additionalInfo: additionalInfo
|
||||
readonly property alias rightInfo: rightInfo
|
||||
readonly property alias subtitle: subtitle
|
||||
readonly property Item loadedImage: imageLoader.item
|
||||
|
||||
property alias contextMenu: contextMenuLoader.sourceComponent
|
||||
|
||||
|
@ -28,6 +29,7 @@ HButton {
|
|||
opacity: tile.contentOpacity
|
||||
|
||||
HLoader {
|
||||
id: imageLoader
|
||||
sourceComponent: image
|
||||
}
|
||||
|
||||
|
|
|
@ -38,4 +38,11 @@ HTileDelegate {
|
|||
|
||||
Behavior on title.color { HColorAnimation {} }
|
||||
Behavior on contentOpacity { HNumberAnimation {} }
|
||||
Behavior on spacing { HNumberAnimation {} }
|
||||
|
||||
Binding on spacing {
|
||||
value: (roomPane.minimumSize - loadedImage.width) / 2
|
||||
when: loadedImage &&
|
||||
roomPane.width < loadedImage.width + theme.spacing * 2
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,11 @@ HDrawer {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
readonly property alias buttonRepeater: buttonRepeater
|
||||
readonly property alias swipeView: swipeView
|
||||
|
||||
|
||||
HColumnLayout {
|
||||
anchors.fill: parent
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user