on xenial help sign in
Fix badge highlight
cc623b5Josh Arenson
qml/Greeter/LoginList.qml+16−3
@@ -241,8 +241,8 @@ StyledItem {
241 visible: LightDMService.sessions.count > 1 &&
241 visible: LightDMService.sessions.count > 1 &&
242 !LightDMService.users.data(userList.currentIndex, LightDMService.userRoles.LoggedInRole)
242 !LightDMService.users.data(userList.currentIndex, LightDMService.userRoles.LoggedInRole)
243
243
244− height: units.gu(3)
244+ height: units.gu(3.4)
245− width: units.gu(3)
245+ width: units.gu(3.4)
246
246
247 anchors {
247 anchors {
248 right: highlightItem.right
248 right: highlightItem.right
@@ -252,11 +252,24 @@ StyledItem {
252 topMargin: units.gu(1.5)
252 topMargin: units.gu(1.5)
253 }
253 }
254
254
255+ Rectangle {
256+ id: badgeHighlight
257+
258+ anchors.fill: parent
259+ visible: parent.activeFocus
260+ color: "transparent"
261+ border.color: theme.palette.normal.focus
262+ border.width: units.dp(1)
263+ radius: 3
264+
265+ }
266+
255 Icon {
267 Icon {
256 id: badge
268 id: badge
257 anchors.fill: parent
269 anchors.fill: parent
270+ anchors.margins: units.dp(3)
258 keyColor: "#ffffff" // icon providers give us white icons
271 keyColor: "#ffffff" // icon providers give us white icons
259− color: parent.activeFocus ? theme.palette.normal.selection : theme.palette.normal.raisedSecondaryText
272+ color: theme.palette.normal.raisedSecondaryText
260 source: LightDMService.sessions.iconUrl(root.currentSession)
273 source: LightDMService.sessions.iconUrl(root.currentSession)
261 }
274 }
262
275