Aligning the title horizontally

CURA-11781
This commit is contained in:
Saumya Jain 2024-03-28 09:51:06 +01:00
parent dc34fbc047
commit 55d4cd44c4

View file

@ -24,28 +24,33 @@ UM.Dialog
{ {
height: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height height: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height
color: UM.Theme.getColor("main_background") color: UM.Theme.getColor("main_background")
RowLayout ColumnLayout
{ {
UM.Label id: headerColumn
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.leftMargin: UM.Theme.getSize("default_margin").width
anchors.rightMargin: anchors.leftMargin
RowLayout
{ {
id: titleLabel UM.Label
text: manager.isUcp? catalog.i18nc("@action:title Don't translate 'Universal Cura Project'", "Summary - Open Universal Cura Project (UCP)"): catalog.i18nc("@action:title", "Summary - Cura Project") {
font: UM.Theme.getFont("large") id: titleLabel
anchors.left: parent.left text: manager.isUcp? catalog.i18nc("@action:title Don't translate 'Universal Cura Project'", "Summary - Open Universal Cura Project (UCP)"): catalog.i18nc("@action:title", "Summary - Cura Project")
anchors.topMargin: UM.Theme.getSize("default_margin").height font: UM.Theme.getFont("large")
anchors.leftMargin: UM.Theme.getSize("default_margin").height }
} Cura.TertiaryButton
Cura.TertiaryButton {
{ id: learnMoreButton
id: learnMoreButton visible: manager.isUcp
visible: manager.isUcp text: catalog.i18nc("@button", "Learn more")
text: catalog.i18nc("@button", "Learn more") iconSource: UM.Theme.getIcon("LinkExternal")
iconSource: UM.Theme.getIcon("LinkExternal") isIconOnRightSide: true
anchors.left: titleLabel.right onClicked: Qt.openUrlExternally("https://support.ultimaker.com/s/article/000002979")
anchors.topMargin: UM.Theme.getSize("default_margin").height }
anchors.leftMargin: UM.Theme.getSize("default_margin").height
isIconOnRightSide: true
onClicked: Qt.openUrlExternally("https://support.ultimaker.com/s/article/000002979")
} }
} }
} }