Rename bottomElementsHeight to baseElementsHeight
This commit is contained in:
parent
d5dd1292ff
commit
d302a5cf5f
1
TODO.md
1
TODO.md
|
@ -1,5 +1,4 @@
|
|||
- Use childrenRect stuff
|
||||
- Rename theme.bottomElementsHeight
|
||||
- Account delegate name color
|
||||
- If avatar is set, name color from average color?
|
||||
- normalSpacing in Theme
|
||||
|
|
|
@ -8,7 +8,7 @@ import "../../Base"
|
|||
HRectangle {
|
||||
id: banner
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: theme.bottomElementsHeight
|
||||
Layout.preferredHeight: theme.baseElementsHeight
|
||||
|
||||
property alias avatar: bannerAvatar
|
||||
property alias icon: bannerIcon
|
||||
|
|
|
@ -45,6 +45,6 @@ HColumnLayout {
|
|||
backgroundColor: theme.sidePane.filterRooms.background
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: theme.bottomElementsHeight
|
||||
Layout.preferredHeight: theme.baseElementsHeight
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ HRectangle {
|
|||
|
||||
id: sendBox
|
||||
Layout.fillWidth: true
|
||||
Layout.minimumHeight: theme.bottomElementsHeight
|
||||
Layout.minimumHeight: theme.baseElementsHeight
|
||||
Layout.preferredHeight: textArea.implicitHeight
|
||||
// parent.height / 2 causes binding loop?
|
||||
Layout.maximumHeight: pageStack.height / 2
|
||||
|
|
|
@ -25,9 +25,9 @@ Page {
|
|||
|
||||
height: window.height <
|
||||
avatarPreferredSize +
|
||||
theme.bottomElementsHeight +
|
||||
theme.baseElementsHeight +
|
||||
currentSpacing * 2 ?
|
||||
0 : theme.bottomElementsHeight
|
||||
0 : theme.baseElementsHeight
|
||||
|
||||
Behavior on height { HNumberAnimation {} }
|
||||
visible: height > 0
|
||||
|
|
|
@ -10,7 +10,7 @@ HRowLayout {
|
|||
property alias roomFilter: filterField.text
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: theme.bottomElementsHeight
|
||||
Layout.preferredHeight: theme.baseElementsHeight
|
||||
|
||||
HUIButton {
|
||||
iconName: "settings"
|
||||
|
|
|
@ -11,6 +11,8 @@ QtObject {
|
|||
property int minimumSupportedWidth: 240
|
||||
property int minimumSupportedHeight: 120
|
||||
|
||||
property int baseElementsHeight: 36
|
||||
|
||||
property QtObject fontSize: QtObject {
|
||||
property int smallest: 6
|
||||
property int smaller: 8
|
||||
|
@ -134,7 +136,7 @@ QtObject {
|
|||
}
|
||||
|
||||
property QtObject avatar: QtObject {
|
||||
property int size: 36
|
||||
property int size: baseElementsHeight
|
||||
property int radius: theme.radius
|
||||
property color letter: "white"
|
||||
|
||||
|
@ -150,6 +152,4 @@ QtObject {
|
|||
property real saturation: 0.32
|
||||
property real lightness: 0.3
|
||||
}
|
||||
|
||||
property int bottomElementsHeight: 36
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user