Restyle the dropdown of the accounts, with information about the user

and available operations that can be done when the user is logged in or
not.

Contributes to CURA-5784.
This commit is contained in:
Diego Prado Gesto 2018-10-10 16:34:55 +02:00
parent b89c220a4d
commit 5befc0b256
12 changed files with 267 additions and 76 deletions

View file

@ -10,6 +10,8 @@ Item
id: avatar
property var source
property var fallbackSource: UM.Theme.getImage("avatar_default")
property var outlineColor: UM.Theme.getColor("account_widget_ouline_active")
Image
{
@ -41,4 +43,14 @@ Item
cached: true
invert: false
}
UM.RecolorImage
{
id: profileImageOutline
source: UM.Theme.getIcon("circle_outline")
sourceSize: Qt.size(parent.width, parent.height)
width: parent.width
height: parent.height
color: avatar.outlineColor
}
}