mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Nicer padding
This commit is contained in:
parent
f095352a2c
commit
e09af0b101
3 changed files with 9 additions and 6 deletions
|
@ -98,14 +98,13 @@ ApplicationWindow {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
model: invitees
|
model: invitees
|
||||||
spacing: Nheko.paddingMedium
|
|
||||||
|
|
||||||
delegate: ItemDelegate {
|
delegate: ItemDelegate {
|
||||||
id: del
|
id: del
|
||||||
|
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
width: ListView.view.width
|
width: ListView.view.width
|
||||||
height: layout.implicitHeight
|
height: layout.implicitHeight + Nheko.paddingSmall * 2
|
||||||
onClicked: TimelineManager.openGlobalUserProfile(model.mxid)
|
onClicked: TimelineManager.openGlobalUserProfile(model.mxid)
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: del.hovered ? Nheko.colors.dark : inviteDialogRoot.color
|
color: del.hovered ? Nheko.colors.dark : inviteDialogRoot.color
|
||||||
|
@ -115,6 +114,8 @@ ApplicationWindow {
|
||||||
id: layout
|
id: layout
|
||||||
|
|
||||||
spacing: Nheko.paddingMedium
|
spacing: Nheko.paddingMedium
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
x: parent.x + Nheko.paddingSmall
|
||||||
|
|
||||||
Avatar {
|
Avatar {
|
||||||
width: Nheko.avatarSize
|
width: Nheko.avatarSize
|
||||||
|
|
|
@ -54,7 +54,6 @@ ApplicationWindow {
|
||||||
id: readReceiptsList
|
id: readReceiptsList
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
spacing: Nheko.paddingMedium
|
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
model: readReceipts
|
model: readReceipts
|
||||||
|
|
||||||
|
@ -64,7 +63,7 @@ ApplicationWindow {
|
||||||
onClicked: room.openUserProfile(model.mxid)
|
onClicked: room.openUserProfile(model.mxid)
|
||||||
padding: Nheko.paddingMedium
|
padding: Nheko.paddingMedium
|
||||||
width: ListView.view.width
|
width: ListView.view.width
|
||||||
height: receiptLayout.implicitHeight
|
height: receiptLayout.implicitHeight + Nheko.paddingSmall * 2
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
ToolTip.text: model.mxid
|
ToolTip.text: model.mxid
|
||||||
|
@ -76,6 +75,8 @@ ApplicationWindow {
|
||||||
id: receiptLayout
|
id: receiptLayout
|
||||||
|
|
||||||
spacing: Nheko.paddingMedium
|
spacing: Nheko.paddingMedium
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
x: parent.x + Nheko.paddingSmall
|
||||||
|
|
||||||
Avatar {
|
Avatar {
|
||||||
width: Nheko.avatarSize
|
width: Nheko.avatarSize
|
||||||
|
|
|
@ -75,7 +75,6 @@ ApplicationWindow {
|
||||||
id: memberList
|
id: memberList
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
spacing: Nheko.paddingMedium
|
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
model: members
|
model: members
|
||||||
|
|
||||||
|
@ -91,7 +90,7 @@ ApplicationWindow {
|
||||||
onClicked: Rooms.currentRoom.openUserProfile(model.mxid)
|
onClicked: Rooms.currentRoom.openUserProfile(model.mxid)
|
||||||
padding: Nheko.paddingMedium
|
padding: Nheko.paddingMedium
|
||||||
width: ListView.view.width
|
width: ListView.view.width
|
||||||
height: memberLayout.implicitHeight
|
height: memberLayout.implicitHeight + Nheko.paddingSmall * 2
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: del.hovered ? Nheko.colors.dark : roomMembersRoot.color
|
color: del.hovered ? Nheko.colors.dark : roomMembersRoot.color
|
||||||
|
@ -101,6 +100,8 @@ ApplicationWindow {
|
||||||
id: memberLayout
|
id: memberLayout
|
||||||
|
|
||||||
spacing: Nheko.paddingMedium
|
spacing: Nheko.paddingMedium
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
x: parent.x + Nheko.paddingSmall
|
||||||
|
|
||||||
Avatar {
|
Avatar {
|
||||||
id: avatar
|
id: avatar
|
||||||
|
|
Loading…
Reference in a new issue