Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml')
-rw-r--r--resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml16
1 files changed, 10 insertions, 6 deletions
diff --git a/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml b/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml
index 58d96f8028..76d33c9c77 100644
--- a/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml
+++ b/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml
@@ -36,6 +36,8 @@ Cura.ExpandablePopup
headerItem: Item
{
+ id: headerBase
+
// Horizontal list that shows the extruders and their materials
RowLayout
{
@@ -51,13 +53,16 @@ Cura.ExpandablePopup
{
id: extruderItem
- Layout.preferredWidth: Math.round(parent.width / extrudersModel.count)
- Layout.maximumWidth: Math.round(parent.width / extrudersModel.count)
+ Layout.preferredWidth: Math.floor(headerBase.width / extrudersModel.count)
+ Layout.maximumWidth: Math.floor(headerBase.width / extrudersModel.count)
+ Layout.preferredHeight: headerBase.height
+ Layout.maximumHeight: headerBase.height
Layout.fillHeight: true
+ Layout.alignment: Qt.AlignCenter
property var extruderStack: activeMachine ? activeMachine.extruderList[model.index]: null
property bool valueWarning: !Cura.ExtruderManager.getExtruderHasQualityForMaterial(extruderStack)
- property bool valueError: activeMachine ? Cura.ContainerManager.getContainerMetaDataEntry(extruderStack.material.id, "compatible", "") != "True" : false
+ property bool valueError: activeMachine ? Cura.ContainerManager.getContainerMetaDataEntry(extruderStack.material.id, "compatible") != "True" : false
// Extruder icon. Shows extruder index and has the same color as the active material.
Cura.ExtruderIcon
@@ -109,7 +114,7 @@ Cura.ExpandablePopup
}
// Warning icon that indicates if no qualities are available for the variant/material combination for this extruder
- UM.RecolorImage
+ UM.ColorImage
{
id: badge
anchors
@@ -257,11 +262,10 @@ Cura.ExpandablePopup
}
}
+ contentWidth: UM.Theme.getSize("configuration_selector").width
contentItem: Column
{
id: popupItem
- width: UM.Theme.getSize("configuration_selector").width
- height: implicitHeight // Required because ExpandableComponent will try to use this to determine the size of the background of the pop-up.
padding: UM.Theme.getSize("default_margin").height
spacing: UM.Theme.getSize("default_margin").height