on xenial help sign in
Fix coloring of sessions list
commit1e1803a04c06a6ef7e502c2aed6cb44218fb24e2 authorJosh Arenson <joshua.arenson@canonical.com> dateMon 19 Dec 2016, 09:48 (10 years ago) parent497f799
1 file changed+16−3
qml/Greeter/SessionsList.qml+16−3
qml/Greeter/SessionsList.qml+16−3
@@ -137,12 +137,24 @@ Item {
137137 headerPositioning: ListView.OverlayHeader
138138 highlightFollowsCurrentItem: false
139139
140+ highlight: Rectangle {
141+ height: sessionsList.currentItem.height
142+ width: sessionsList.currentItem.width
143+ color: theme.palette.normal.selection
144+
145+ visible: y > sessionsList.headerItem.y
146+ + sessionsList.headerItem.height
147+ - sessionsList.anchors.margins
148+
149+ }
150+
140151 delegate: ListItem {
141152 id: delegate
142153 objectName: "sessionDelegate" + index
143154
144− divider.visible: false
155+ property alias currentTitle: layout
145156
157+ divider.visible: false
146158 visible: y > sessionsList.headerItem.y
147159 + sessionsList.headerItem.height
148160 - sessionsList.anchors.margins
@@ -171,15 +183,16 @@ Item {
171183 ListItemLayout {
172184 id: layout
173185
186+ property color itemColor: theme.palette.normal.raisedText
174187 SessionIcon {
175188 id: sessionIcon
176189 source: icon_url
177190 SlotsLayout.position: SlotsLayout.Leading
178− color: theme.palette.normal.raisedSecondaryText
191+ color: parent.itemColor
179192 }
180193
181194 title.text: display
182− title.color: theme.palette.normal.raisedText
195+ title.color: itemColor
183196 }
184197 }
185198 }