Commit 971ff390 authored by Leander Schulten's avatar Leander Schulten

UI: LoginView: Fix wrong background color(#55) and use same "current...

UI: LoginView: Fix wrong background color(#55) and use same "current selection" color as in any other component.
parent 596bcd7a
Pipeline #192352 passed with stage
in 4 minutes and 54 seconds
......@@ -51,7 +51,7 @@ Item{
clip:true
width: parent.width
Component.onCompleted: {
background.color = Qt.binding(function(){return UserManagment.currentUser === modelData?"lightblue":"transparent";});
background.color = Qt.binding(function(){ return UserManagment.currentUser === modelData ? Qt.rgba(0,0,1,.7) : "transparent"; });
}
Behavior on height {
NumberAnimation{
......
import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtQuick.Controls.Material 2.3
import QtQuick.Controls.Material 2.12
Item{
ListView{
......@@ -15,7 +15,7 @@ Item{
delegate: ItemDelegate{
width: listView.width
Component.onCompleted: {
background.color = Qt.binding(function(){return (spotify.currentUser? spotify.currentUser.id === modelData.id : false)?"lightblue":"white";});
background.color = Qt.binding(function(){return (spotify.currentUser? spotify.currentUser.id === modelData.id : false) ? Qt.rgba(0,0,1,.7) : Material.background;});
}
text: (modelData.userName?modelData.userName:"")+" ("+modelData.email+")"
Button{
......
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