Fix spacing when sidepane is collapsed

This commit is contained in:
miruka 2019-07-05 16:55:25 -04:00
parent ee4e6470a9
commit f09e1491c4
4 changed files with 7 additions and 5 deletions

View File

@ -4,6 +4,8 @@
var by string and readonly
- [debug mode](https://docs.python.org/3/library/asyncio-dev.html)
- `pyotherside.atexit()`
- way to put sidepane back to auto-sizing (snap)
- better look for arrows when sidepane collapsed
ideas
(^/v) messages unread + messages still sending

View File

@ -13,7 +13,7 @@ MouseArea {
HRowLayout {
width: parent.width
spacing: sidePane.normalSpacing
spacing: sidePane.collapsed ? 0 : sidePane.normalSpacing
HAvatar {
id: roomAvatar

View File

@ -8,7 +8,7 @@ HListView {
property string category: ""
id: roomList
spacing: sidePane.normalSpacing
spacing: sidePane.collapsed ? 0 : sidePane.normalSpacing
model: SortFilterProxyModel {
sourceModel: rooms

View File

@ -16,9 +16,9 @@ HRectangle {
Layout.fillHeight: true
spacing: collapsed ? 0 : normalSpacing * 3
topMargin: normalSpacing
bottomMargin: normalSpacing
Layout.leftMargin: normalSpacing
topMargin: collapsed ? 0 : normalSpacing
bottomMargin: topMargin
Layout.leftMargin: topMargin
Behavior on spacing {
NumberAnimation { duration: HStyle.animationDuration }