HSpacer component for layouts
This commit is contained in:
parent
d0089df051
commit
f714c85d75
2
TODO.md
2
TODO.md
|
@ -3,6 +3,7 @@
|
|||
- Don't bake in size properties for components
|
||||
|
||||
- Bug fixes
|
||||
- The damn remember account dialog
|
||||
- 100% CPU usage when hitting top edge to trigger messages loading
|
||||
- Sending `![A picture](https://picsum.photos/256/256)` → not clickable?
|
||||
- Icons aren't reloaded
|
||||
|
@ -20,7 +21,6 @@
|
|||
- Add room
|
||||
- Leave room
|
||||
- Forget room warning popup
|
||||
- Spacer component
|
||||
- Prevent using the SendBox if no permission (power levels)
|
||||
- Spinner when loading past room events, images or clicking buttons
|
||||
- Better theming/styling system
|
||||
|
|
|
@ -33,11 +33,11 @@ HScalingBox {
|
|||
}
|
||||
}
|
||||
|
||||
Item { Layout.fillHeight: true }
|
||||
HSpacer {}
|
||||
|
||||
HColumnLayout { id: interfaceBody }
|
||||
|
||||
Item { Layout.fillHeight: true }
|
||||
HSpacer {}
|
||||
|
||||
HRowLayout {
|
||||
Repeater {
|
||||
|
|
7
harmonyqml/components/Base/HSpacer.qml
Normal file
7
harmonyqml/components/Base/HSpacer.qml
Normal file
|
@ -0,0 +1,7 @@
|
|||
import QtQuick 2.7
|
||||
import QtQuick.Layouts 1.4
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
}
|
|
@ -41,7 +41,7 @@ HGlassRectangle {
|
|||
Layout.rightMargin: Layout.leftMargin
|
||||
}
|
||||
|
||||
Item { Layout.fillWidth: true }
|
||||
HSpacer {}
|
||||
|
||||
HRowLayout {
|
||||
id: bannerButtons
|
||||
|
|
|
@ -44,6 +44,6 @@ HGlassRectangle {
|
|||
row.width - row.totalSpacing - avatar.width - roomName.width
|
||||
}
|
||||
|
||||
Item { Layout.fillWidth: true }
|
||||
HSpacer {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,6 +39,6 @@ Item {
|
|||
Layout.maximumWidth: rememberBox.width - Layout.margins * 2
|
||||
}
|
||||
|
||||
Item { Layout.fillHeight: true }
|
||||
HSpacer {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,6 +68,6 @@ MouseArea {
|
|||
}
|
||||
}
|
||||
|
||||
Item { Layout.fillWidth: true }
|
||||
HSpacer {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user