Fix some layout issues

CURA-7418
This commit is contained in:
Jaime van Kessel 2020-06-15 14:09:01 +02:00
parent a7e7ddf4b5
commit 0edb93176a
No known key found for this signature in database
GPG key ID: 3710727397403C91
4 changed files with 12 additions and 4 deletions

View file

@ -131,7 +131,7 @@ Item
opacity: opened ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 100 } }
padding: UM.Theme.getSize("wide_margin").height
padding: 0
contentItem: AccountDetails
{}

View file

@ -10,7 +10,7 @@ import Cura 1.1 as Cura
Column
{
spacing: UM.Theme.getSize("default_margin").width
padding: UM.Theme.getSize("default_margin").width
Image
{
id: machinesImage

View file

@ -11,7 +11,6 @@ Row // Sync state icon + message
id: syncRow
width: childrenRect.width
height: childrenRect.height
anchors.horizontalCenter: parent.horizontalCenter
spacing: UM.Theme.getSize("narrow_margin").height
states: [
@ -49,7 +48,6 @@ Row // Sync state icon + message
id: palette
}
UM.RecolorImage
{
id: icon
@ -91,6 +89,7 @@ Row // Sync state icon + message
color: UM.Theme.getColor("text")
font: UM.Theme.getFont("medium")
renderType: Text.NativeRendering
width: contentWidth + UM.Theme.getSize("default_margin").height
height: contentHeight
verticalAlignment: Text.AlignVCenter
visible: !Cura.API.account.manualSyncEnabled
@ -105,6 +104,7 @@ Row // Sync state icon + message
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
height: contentHeight
width: contentWidth + UM.Theme.getSize("default_margin").height
visible: Cura.API.account.manualSyncEnabled
MouseArea

View file

@ -10,11 +10,17 @@ import Cura 1.1 as Cura
Column
{
spacing: UM.Theme.getSize("narrow_margin").height
topPadding: UM.Theme.getSize("default_margin").height
bottomPadding: UM.Theme.getSize("default_margin").height
width: childrenRect.width
Item
{
id: accountInfo
width: childrenRect.width
height: childrenRect.height
anchors.left: parent.left
anchors.leftMargin: UM.Theme.getSize("default_margin").width
AvatarImage
{
id: avatar
@ -30,6 +36,8 @@ Column
anchors.left: avatar.right
anchors.leftMargin: UM.Theme.getSize("default_margin").width
spacing: UM.Theme.getSize("narrow_margin").height
width: childrenRect.width
height: childrenRect.height
Label
{
id: username