Commit 00485aff authored by Leander Schulten's avatar Leander Schulten
Browse files

UI: LoginView: Only highlight the currently logged in user

parent 622a2766
......@@ -18,12 +18,8 @@ Item{
highlightMoveDuration: 100
highlightResizeDuration: 100
model:userModel
highlight: Rectangle{
color: "lightblue"
}
highlightFollowsCurrentItem: true
delegate:
SwipeDelegate{
delegate: SwipeDelegate{
swipe.left: Label {
id: deleteLabel
text: qsTr("Delete")
......@@ -55,7 +51,7 @@ Item{
clip:true
width: parent.width
Component.onCompleted: {
background.color = Qt.binding(function(){return UserManagment.currentUser === modelData?"lightblue":"white";});
background.color = Qt.binding(function(){return UserManagment.currentUser === modelData?"lightblue":"transparent";});
}
Behavior on height {
NumberAnimation{
......@@ -110,7 +106,6 @@ Item{
}
}
}
onClicked: listView.currentIndex = index
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment