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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user