Improve SidePane auto-sizing and appearance

This commit is contained in:
miruka
2019-05-12 15:57:18 -04:00
parent 97c1dda4ba
commit f9a5902545
12 changed files with 62 additions and 23 deletions

View File

@@ -5,7 +5,7 @@ import "../../Base"
HRectangle {
id: banner
Layout.fillWidth: true
Layout.preferredHeight: 32
Layout.preferredHeight: HStyle.avatar.size
property alias avatar: bannerAvatar
property alias icon: bannerIcon

View File

@@ -38,7 +38,7 @@ HColumnLayout {
topic: roomInfo.topic || ""
Layout.fillWidth: true
Layout.preferredHeight: 32
Layout.preferredHeight: HStyle.avatar.size
}
@@ -82,7 +82,7 @@ HColumnLayout {
property int referenceWidth: roomHeader.buttonsWidth
onReferenceWidthChanged: width = referenceWidth
Layout.minimumWidth: 36
Layout.minimumWidth: HStyle.avatar.size
Layout.maximumWidth: parent.width
}
}

View File

@@ -7,7 +7,7 @@ HRectangle {
id: root
Layout.fillWidth: true
Layout.minimumHeight: 32
Layout.minimumHeight: HStyle.bottomElementsHeight
Layout.preferredHeight: textArea.implicitHeight
// parent.height / 2 causes binding loop?
Layout.maximumHeight: pageStack.height / 2