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

@ -19,6 +19,7 @@ Button
property var textHoverColor: UM.Theme.getColor("button_text_hover")
property var textDisabledColor: textColor
property var textFont: UM.Theme.getFont("action_button")
property var cornerRadius: 2 * screenScaleFactor
contentItem: Row
{
@ -32,6 +33,7 @@ Button
sourceSize.height: height
color: button.hovered ? button.textHoverColor : button.textColor
visible: button.iconSource != ""
anchors.verticalCenter: parent.verticalCenter
}
Label
@ -42,12 +44,14 @@ Button
font: button.textFont
visible: button.text != ""
renderType: Text.NativeRendering
anchors.verticalCenter: parent.verticalCenter
}
}
background: Rectangle
{
color: button.enabled ? (button.hovered ? button.hoverColor : button.color) : button.disabledColor
radius: cornerRadius
}
MouseArea