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

View File

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

View File

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

View File

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