Center Manage Profiles button

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-12-06 14:57:54 +01:00
parent 491c501d8c
commit 493f82620e

View File

@ -233,18 +233,19 @@ Popup
right: parent.right right: parent.right
} }
height: textLabel.contentHeight + 2 * UM.Theme.getSize("narrow_margin").height height: textLabel.contentHeight + UM.Theme.getSize("default_margin").height
contentItem: Item contentItem: Item
{ {
width: parent.width width: parent.width
height: childrenRect.height height: parent.height
UM.Label UM.Label
{ {
id: textLabel id: textLabel
text: manageProfilesButton.text text: manageProfilesButton.text
height: contentHeight height: contentHeight
anchors.verticalCenter: parent.verticalCenter
} }
UM.Label UM.Label
{ {
@ -252,6 +253,7 @@ Popup
text: Cura.Actions.manageProfiles.shortcut text: Cura.Actions.manageProfiles.shortcut
color: UM.Theme.getColor("text_lighter") color: UM.Theme.getColor("text_lighter")
height: contentHeight height: contentHeight
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").width anchors.rightMargin: UM.Theme.getSize("default_margin").width
} }
@ -266,7 +268,7 @@ Popup
Item Item
{ {
width: 2 width: 2
height: UM.Theme.getSize("default_radius").width height: UM.Theme.getSize("default_radius").width
} }
} }
} }