-
Notifications
You must be signed in to change notification settings - Fork 17
/
UserInfoPage.qml
56 lines (47 loc) · 1.36 KB
/
UserInfoPage.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.1
import "backend.js" as Backend
Page {
id: userInfoPage
property string userName: ""
background: Rectangle {
color: backGroundColor
}
header: ToolBar {
background:
Rectangle {
implicitHeight: 50
implicitWidth: 200
color: "transparent"
}
RowLayout {
anchors.fill: parent
Item { Layout.fillWidth: true }
ToolButton {
id: control
font.family: "fontawesome"
text: qsTr("\uf08b")
font.pointSize: 30
rightPadding: 10
contentItem: Text {
text: control.text
font: control.font
opacity: enabled ? 1.0 : 0.3
color: mainTextCOlor
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
onClicked: logoutSession()
}
}
}
Text {
id: welcometext
text: "Welcome, \n" + userName
anchors.centerIn: parent
font.pointSize: 22
color: mainTextCOlor
}
}