mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
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:
parent
b89c220a4d
commit
5befc0b256
12 changed files with 267 additions and 76 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue