LicenseDialog layout tweaking

CURA-7129
This commit is contained in:
Nino van Hooff 2020-01-21 17:22:33 +01:00
parent b3812a3630
commit 2f3cf3c493

View file

@ -27,6 +27,7 @@ UM.Dialog
ColumnLayout ColumnLayout
{ {
anchors.fill: parent anchors.fill: parent
spacing: UM.Theme.getSize("thick_margin").height
UM.I18nCatalog{id: catalog; name: "cura"} UM.I18nCatalog{id: catalog; name: "cura"}
@ -45,22 +46,24 @@ UM.Dialog
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
height: childrenRect.height height: childrenRect.height
spacing: UM.Theme.getSize("default_margin").width
leftPadding: UM.Theme.getSize("narrow_margin").width
Image Image
{ {
id: icon id: icon
width: 30 * screenScaleFactor width: 30 * screenScaleFactor
height: width height: width
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
source: licenseModel.iconUrl || "../../images/logobot.svg" source: licenseModel.iconUrl || "../../images/logobot.svg"
mipmap: true mipmap: true
} }
Label Label
{ {
id: packageName id: packageName
text: licenseModel.packageName text: licenseModel.packageName
font.bold: true
anchors.verticalCenter: icon.verticalCenter anchors.verticalCenter: icon.verticalCenter
height: contentHeight height: contentHeight
wrapMode: Text.Wrap wrapMode: Text.Wrap