mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-20 21:02:02 +03:00
53abf5a316
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
80 lines
2.5 KiB
QML
80 lines
2.5 KiB
QML
import QtQuick 2.9
|
|
import QtQuick.Window 2.2
|
|
import QtQuick.Controls 2.2
|
|
import QtQuick.Layouts 1.3
|
|
|
|
MenuItem {
|
|
|
|
id: userLine
|
|
visible: true
|
|
width: 220
|
|
height: 60
|
|
//color: "transparent"
|
|
|
|
Rectangle {
|
|
id: userLineBackground
|
|
anchors.fill: parent
|
|
color: "transparent"
|
|
|
|
RowLayout {
|
|
id: userLineLayout
|
|
spacing: 0
|
|
anchors.fill: parent
|
|
|
|
Button {
|
|
id: currentAccountButton
|
|
Layout.preferredWidth: 220
|
|
Layout.preferredHeight: (userLineBackground.height)
|
|
display: AbstractButton.IconOnly
|
|
flat: true
|
|
|
|
MouseArea {
|
|
id: accountBtnMouseArea
|
|
anchors.fill: parent
|
|
hoverEnabled: true
|
|
onClicked:
|
|
{
|
|
//
|
|
}
|
|
}
|
|
|
|
RowLayout {
|
|
id: accountControlRowLayout
|
|
height: currentAccountButton.height
|
|
width: currentAccountButton.width
|
|
spacing: 0
|
|
Image {
|
|
id: currentAccountAvatar
|
|
width: (userLineBackground.height - 12)
|
|
height: (userLineBackground.height - 12)
|
|
Layout.leftMargin: 6
|
|
verticalAlignment: Qt.AlignCenter
|
|
source: avatar
|
|
Layout.preferredHeight: (userLineBackground.height -12)
|
|
Layout.preferredWidth: (userLineBackground.height -12)
|
|
}
|
|
|
|
Column {
|
|
id: accountLabels
|
|
spacing: 4
|
|
Layout.alignment: Qt.AlignLeft
|
|
Layout.leftMargin: 6
|
|
Label {
|
|
id: currentAccountUser
|
|
text: name
|
|
color: "black"
|
|
font.pointSize: 9
|
|
font.bold: true
|
|
}
|
|
Label {
|
|
id: currentAccountServer
|
|
text: server
|
|
color: "black"
|
|
font.pointSize: 8
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} // Rectangle userLineBackground
|
|
} // MenuItem userLine
|