mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Swap PL indicator location
This commit is contained in:
parent
8924167a72
commit
a6b732caf0
1 changed files with 12 additions and 8 deletions
|
@ -564,14 +564,25 @@ Item {
|
||||||
|
|
||||||
target: room
|
target: room
|
||||||
}
|
}
|
||||||
|
|
||||||
AbstractButton {
|
AbstractButton {
|
||||||
id: userNameButton
|
id: userNameButton
|
||||||
|
|
||||||
|
PowerlevelIndicator {
|
||||||
|
id: powerlevelIndicator
|
||||||
|
anchors.left: parent.left
|
||||||
|
//anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
|
powerlevel: userPowerlevel
|
||||||
|
permissions: room ? room.permissions : null
|
||||||
|
visible: isAdmin || isModerator
|
||||||
|
}
|
||||||
|
|
||||||
ToolTip.delay: Nheko.tooltipDelay
|
ToolTip.delay: Nheko.tooltipDelay
|
||||||
ToolTip.text: userId
|
ToolTip.text: userId
|
||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
|
leftPadding: powerlevelIndicator.visible ? 16 : 0
|
||||||
leftInset: 0
|
leftInset: 0
|
||||||
leftPadding: 0
|
|
||||||
rightInset: 0
|
rightInset: 0
|
||||||
rightPadding: 0
|
rightPadding: 0
|
||||||
|
|
||||||
|
@ -627,13 +638,6 @@ Item {
|
||||||
target: Presence
|
target: Presence
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PowerlevelIndicator {
|
|
||||||
Layout.alignment: Qt.AlignVCenter
|
|
||||||
powerlevel: userPowerlevel
|
|
||||||
permissions: room ? room.permissions : null
|
|
||||||
visible: isAdmin || isModerator
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue