Make some items' size dependent on parent's. Also make the ActionButton

more themable.

Contributes to CURA-5784.
This commit is contained in:
Diego Prado Gesto 2018-10-18 16:06:21 +02:00
parent 0a07f48375
commit fdfa81b2b8
4 changed files with 14 additions and 11 deletions

View file

@ -30,6 +30,7 @@ Column
id: information
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
renderType: Text.NativeRendering
text: loggedIn ? profile["username"] : catalog.i18nc("@label", "Please log in or create an account to\nenjoy all features of Ultimaker Cura.")
font: loggedIn ? UM.Theme.getFont("large") : UM.Theme.getFont("default")
color: UM.Theme.getColor("text")

View file

@ -21,7 +21,6 @@ Button
{
id: avatar
width: Math.round(0.8 * parent.width)
height: Math.round(0.8 * parent.height)
anchors.verticalCenter: parent.verticalCenter