mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Profile compare-and-save: Add (more) explanatory text(s).
part of CURA-9347
This commit is contained in:
parent
8f65af61e5
commit
6f651b922a
3 changed files with 45 additions and 2 deletions
|
@ -878,6 +878,29 @@ UM.MainWindow
|
||||||
title: catalog.i18nc("@title:window", "Save Custom Profile")
|
title: catalog.i18nc("@title:window", "Save Custom Profile")
|
||||||
object: catalog.i18nc("@textfield:placeholder", "<New Custom Profile>")
|
object: catalog.i18nc("@textfield:placeholder", "<New Custom Profile>")
|
||||||
explanation: catalog.i18nc("@info", "Custom profile name:")
|
explanation: catalog.i18nc("@info", "Custom profile name:")
|
||||||
|
extraInfo:
|
||||||
|
[
|
||||||
|
UM.ColorImage
|
||||||
|
{
|
||||||
|
width: UM.Theme.getSize("message_type_icon").width
|
||||||
|
height: UM.Theme.getSize("message_type_icon").height
|
||||||
|
source: UM.Theme.getIcon("Information")
|
||||||
|
color: UM.Theme.getColor("text")
|
||||||
|
},
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
text: catalog.i18nc
|
||||||
|
(
|
||||||
|
"@label %i will be replaced with a profile name",
|
||||||
|
"<b>Only user changed settings will be saved in the custom profile.</b><br/>" +
|
||||||
|
"The new custom profile will inherit properties from <b>%1</b>,<br/>" +
|
||||||
|
"for materials that support it.<br/>" +
|
||||||
|
"<a href=\"%2\">Learn more about Cura print profiles</a>"
|
||||||
|
).arg(Cura.MachineManager.activeQualityOrQualityChangesName).arg("https://support.ultimaker.com/s/article/1667337576882")
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
}
|
||||||
|
]
|
||||||
|
okButtonText: catalog.i18nc("@button", "Save new profile")
|
||||||
onAccepted: CuraApplication.getQualityManagementModel().createQualityChanges(newName, true);
|
onAccepted: CuraApplication.getQualityManagementModel().createQualityChanges(newName, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ UM.Dialog
|
||||||
title: dialogTitle
|
title: dialogTitle
|
||||||
backgroundColor: UM.Theme.getColor("main_background")
|
backgroundColor: UM.Theme.getColor("main_background")
|
||||||
minimumWidth: UM.Theme.getSize("small_popup_dialog").width
|
minimumWidth: UM.Theme.getSize("small_popup_dialog").width
|
||||||
minimumHeight: UM.Theme.getSize("small_popup_dialog").height
|
minimumHeight: UM.Theme.getSize("small_popup_dialog").height + extraInfoHolder.height
|
||||||
width: minimumWidth
|
width: minimumWidth
|
||||||
height: minimumHeight
|
height: minimumHeight
|
||||||
|
|
||||||
|
@ -63,8 +63,24 @@ UM.Dialog
|
||||||
onTextChanged: base.textChanged(text)
|
onTextChanged: base.textChanged(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// spacer
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
color: base.backgroundColor
|
||||||
|
height: UM.Theme.getSize("wide_margin").height
|
||||||
|
width: height
|
||||||
|
}
|
||||||
|
|
||||||
Row
|
Row
|
||||||
{
|
{
|
||||||
|
id: extraInfoHolder
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
margins: UM.Theme.getSize("default_margin").height
|
||||||
|
}
|
||||||
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
children: extraInfo
|
children: extraInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,11 @@ Item
|
||||||
PropertyChanges
|
PropertyChanges
|
||||||
{
|
{
|
||||||
target: warning
|
target: warning
|
||||||
text: catalog.i18nc("@info", "Some settings were changed.")
|
text:
|
||||||
|
{
|
||||||
|
var profile_name = Cura.MachineManager.activeQualityOrQualityChangesName;
|
||||||
|
return catalog.i18nc("@info %1 is the name of a profile", "Some setting-values defined in <b>%1</b> were overridden.").arg(profile_name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue