forked from eayus/sddm-theme-clairvoyance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UserDelegate.qml
50 lines (41 loc) · 797 Bytes
/
UserDelegate.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
import QtQuick 2.0
Item {
width: 250
height: 250
property string name: model.name
property string icon: model.icon
//User's Name
Text {
id: usersName
color: "white"
font {
family: "FiraMono"
pointSize: 20
}
text: name
anchors.horizontalCenter: parent.horizontalCenter
}
//User's Profile Pic
Image {
id: usersPic
width: 128
height: 128
anchors {
top: usersName.bottom
topMargin: 50
horizontalCenter: parent.horizontalCenter
}
source: icon
}
MouseArea {
anchors.fill: parent
onClicked: {
listView.currentIndex = index;
page.state = "login";
loginFrame.name = name
loginFrame.icon = icon
listView.focus = false
loginFrame.focus = true
}
}
}