on xenial help sign in
Highlighting works
7002f3cJosh Arenson
qml/Greeter/SessionsList.qml+17−3
@@ -30,8 +30,7 @@ Item {
30
30
31 LoginAreaContainer {
31 LoginAreaContainer {
32 height: units.gu(5) * sessionsList.model.count
32 height: units.gu(5) * sessionsList.model.count
33− //width: parent.width
33+ width: parent.width
34− width: units.gu(36)
35
34
36 anchors {
35 anchors {
37 left: parent.left
36 left: parent.left
@@ -66,15 +65,30 @@ Item {
66
65
67 highlight: Rectangle {
66 highlight: Rectangle {
68 color:"transparent"
67 color:"transparent"
69−
70 border {
68 border {
71 color: theme.palette.normal.positionText
69 color: theme.palette.normal.positionText
72 width: units.gu(0.2)
70 width: units.gu(0.2)
73 }
71 }
72+
73+ visible: sessionsList.currentItem.visible
74+ y: sessionsList.currentItem.y
74 }
75 }
75
76
76 delegate: ListItem {
77 delegate: ListItem {
78+ id: delegate
79+
77 divider.visible: false
80 divider.visible: false
81+ visible: y > sessionsList.headerItem.y
82+ + sessionsList.headerItem.height
83+ - sessionsList.anchors.margins
84+ && (y + height) < root.height
85+
86+ onYChanged: console.log("jam")
87+ MouseArea {
88+ anchors.fill: parent
89+ onClicked: sessionsList.currentIndex = index
90+ }
91+
78 ListItemLayout {
92 ListItemLayout {
79 id: layout
93 id: layout
80
94