mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 14:45:55 +08:00
Fix some layout issues
CURA-7418
This commit is contained in:
parent
a7e7ddf4b5
commit
0edb93176a
@ -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
|
||||
{}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user