Fix spacing when sidepane is collapsed
This commit is contained in:
parent
ee4e6470a9
commit
f09e1491c4
2
TODO.md
2
TODO.md
|
@ -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
|
||||
|
|
|
@ -13,7 +13,7 @@ MouseArea {
|
|||
|
||||
HRowLayout {
|
||||
width: parent.width
|
||||
spacing: sidePane.normalSpacing
|
||||
spacing: sidePane.collapsed ? 0 : sidePane.normalSpacing
|
||||
|
||||
HAvatar {
|
||||
id: roomAvatar
|
||||
|
|
|
@ -8,7 +8,7 @@ HListView {
|
|||
property string category: ""
|
||||
|
||||
id: roomList
|
||||
spacing: sidePane.normalSpacing
|
||||
spacing: sidePane.collapsed ? 0 : sidePane.normalSpacing
|
||||
|
||||
model: SortFilterProxyModel {
|
||||
sourceModel: rooms
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue
Block a user