Merge branch '5.7' into CUR-11720-ucp-correct-ovverrides-ii

This commit is contained in:
Saumya Jain 2024-03-18 12:17:16 +01:00 committed by GitHub
commit 522310b48a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7286 changed files with 7543 additions and 7447 deletions

View file

@ -35,6 +35,19 @@ UM.Dialog
anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.leftMargin: UM.Theme.getSize("default_margin").height
}
Cura.TertiaryButton
{
id: learnMoreButton
visible: manager.isUcp
anchors.right: parent.right
anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.rightMargin: UM.Theme.getSize("default_margin").height
text: catalog.i18nc("@button", "Learn more")
iconSource: UM.Theme.getIcon("LinkExternal")
isIconOnRightSide: true
onClicked: Qt.openUrlExternally("https://support.ultimaker.com/s/article/000002979")
}
}
Rectangle

View file

@ -36,13 +36,23 @@ UM.Dialog
anchors.leftMargin: UM.Theme.getSize("default_margin").width
anchors.rightMargin: anchors.leftMargin
UM.Label
RowLayout
{
id: titleLabel
text: catalog.i18nc("@action:title Don't translate 'Universal Cura Project'", "Summary - Universal Cura Project")
font: UM.Theme.getFont("large")
UM.Label
{
id: titleLabel
text: catalog.i18nc("@action:title Don't translate 'Universal Cura Project'", "Summary - Universal Cura Project")
font: UM.Theme.getFont("large")
}
Cura.TertiaryButton
{
id: learnMoreButton
text: catalog.i18nc("@button", "Learn more")
iconSource: UM.Theme.getIcon("LinkExternal")
isIconOnRightSide: true
onClicked: Qt.openUrlExternally("https://support.ultimaker.com/s/article/000002979")
}
}
UM.Label
{
id: descriptionLabel

View file

@ -33,12 +33,6 @@ def getMetaData():
"mime_type": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml",
"mode": ThreeMFWriter.ThreeMFWriter.OutputMode.BinaryMode
},
{
"extension": "3mf",
"description": i18n_catalog.i18nc("@item:inlistbox", "Universal Cura Project"),
"mime_type": "application/x-ucp",
"mode": ThreeMFWriter.ThreeMFWriter.OutputMode.BinaryMode
}
]
}
metaData["workspace_writer"] = {

View file

@ -120,6 +120,8 @@ UM.Dialog
UM.Label
{
Layout.fillWidth: true
Layout.preferredHeight: height
elide: Text.ElideRight
text: manager.getScriptLabelByKey(modelData.toString())
}

View file

@ -68,6 +68,11 @@ class VersionUpgrade56to57(VersionUpgrade):
if removed in parser["values"]:
del parser["values"][removed]
if "brim_outside_only" in parser["values"]:
parser["values"]["brim_location"] = "outside" if parser["values"][
"brim_outside_only"] == "True" else "everywhere"
del parser["values"]["brim_outside_only"]
result = io.StringIO()
parser.write(result)
return [filename], [result.getvalue()]