@@ -30,6 +30,7 @@ StyledItem {
30 property bool locked
30 property bool locked
31 property bool waiting
31 property bool waiting
32 property alias boxVerticalOffset: highlightItem.y
32 property alias boxVerticalOffset: highlightItem.y
33+ property string _realName
34 readonly property int numAboveBelow: 4
35 readonly property int numAboveBelow: 4
35 readonly property int cellHeight: units.gu(5)
36 readonly property int cellHeight: units.gu(5)
@@ -92,6 +93,18 @@ StyledItem {
93 height: Math.max(units.gu(15), promptList.height + units.gu(8))
94 height: Math.max(units.gu(15), promptList.height + units.gu(8))
94 Behavior on height { NumberAnimation { duration: root.moveDuration; easing.type: Easing.InOutQuad; } }
95 Behavior on height { NumberAnimation { duration: root.moveDuration; easing.type: Easing.InOutQuad; } }
98+ // HACK: Work around https://github.com/ubports/unity8/issues/185
99+ text: _realName ? _realName : LightDMService.greeter.authenticationUser
100+ visible: userList.count == 1
104+ topMargin: units.gu(2)
105+ leftMargin: units.gu(2)
97 ListView {
110 ListView {
@@ -143,6 +156,7 @@ StyledItem {
144 FadingLabel {
157 FadingLabel {
145 objectName: "username" + index
158 objectName: "username" + index
159+ visible: userList.count != 1 // HACK Hide username label until someone sorts out the anchoring with the keyboard-dismiss animation, Work around https://github.com/ubports/unity8/issues/185
147 anchors {
161 anchors {
148 left: parent.left
162 left: parent.left
@@ -160,6 +174,8 @@ StyledItem {
160 color: userList.currentIndex !== index ? theme.palette.normal.raised
174 color: userList.currentIndex !== index ? theme.palette.normal.raised
161 : theme.palette.normal.raisedText
175 : theme.palette.normal.raisedText
177+ Component.onCompleted: _realName = realName
163 Behavior on anchors.topMargin { NumberAnimation { duration: root.moveDuration; easing.type: Easing.InOutQuad; } }
179 Behavior on anchors.topMargin { NumberAnimation { duration: root.moveDuration; easing.type: Easing.InOutQuad; } }
165 Rectangle {
181 Rectangle {