@@ -116,49 +116,6 @@ StyledItem {
118 height: root.highlightedHeight
118 height: root.highlightedHeight
120− z: sessionChooser.visible ? userList.z + 1 : z
122− // Use an AbstractButton due to icon limitations with Button
125− objectName: "sessionChooserButton"
127− readonly property alias icon: badge.source
129− visible: LightDMService.sessions.count > 1 &&
130− LightDMService.greeter.locked
132− height: units.gu(2.5)
133− width: units.gu(2.5)
137− rightMargin: units.gu(1)
140− topMargin: units.gu(1)
145− anchors.fill: parent
146− source: LightDMService.sessions.iconUrl(root.currentSession)
150− sessionChooserButtonClicked();
153− // Refresh the icon path if looking at different places at runtime
154− // this is mainly for testing
156− target: LightDMService.sessions
157− onIconSearchDirectoriesChanged: {
158− badge.source = LightDMService.sessions.iconUrl(root.currentSession)
164 ListView {
121 ListView {
@@ -258,6 +215,54 @@ StyledItem {
218+ // Use an AbstractButton due to icon limitations with Button
221+ objectName: "sessionChooserButton"
223+ readonly property alias icon: badge.source
225+ visible: LightDMService.sessions.count > 1 &&
226+ LightDMService.greeter.locked
232+ right: highlightItem.right
233+ rightMargin: units.gu(2)
235+ top: highlightItem.top
236+ topMargin: units.gu(1.5)
241+ anchors.fill: parent
242+ keyColor: "#ffffff" // icon providers give us white icons
243+ color: theme.palette.normal.raisedSecondaryText
244+ source: LightDMService.sessions.iconUrl(root.currentSession)
247+ Component.onCompleted: {
248+ console.log("JOSH-> count: " + LightDMService.sessions.count);
249+ console.log("JOSH-> visible: " + visible)
253+ sessionChooserButtonClicked();
256+ // Refresh the icon path if looking at different places at runtime
257+ // this is mainly for testing
259+ target: LightDMService.sessions
260+ onIconSearchDirectoriesChanged: {
261+ badge.source = LightDMService.sessions.iconUrl(root.currentSession)
261 FadingLabel {
266 FadingLabel {
262 id: infoLabel
267 id: infoLabel
263 objectName: "infoLabel"
268 objectName: "infoLabel"