mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 12:39:06 +08:00
Merge branch '4.0' of github.com:Ultimaker/Cura
This commit is contained in:
commit
575f323ea1
@ -39,8 +39,8 @@ Column
|
|||||||
id: byLineType
|
id: byLineType
|
||||||
|
|
||||||
property var printDuration: PrintInformation.currentPrintTime
|
property var printDuration: PrintInformation.currentPrintTime
|
||||||
property var columnWidthMultipliers: [ 0.4, 0.3, 0.3 ]
|
property var columnWidthMultipliers: [ 0.45, 0.3, 0.25 ]
|
||||||
property var columnHorizontalAligns: [ TextInput.AlignLeft, TextInput.AlignHCenter, TextInput.AlignHCenter ]
|
property var columnHorizontalAligns: [ Text.AlignLeft, Text.AlignHCenter, Text.AlignRight ]
|
||||||
|
|
||||||
function getMaterialTable()
|
function getMaterialTable()
|
||||||
{
|
{
|
||||||
@ -81,6 +81,7 @@ Column
|
|||||||
width: Math.round(byLineType.width * byLineType.columnWidthMultipliers[index])
|
width: Math.round(byLineType.width * byLineType.columnWidthMultipliers[index])
|
||||||
height: contentHeight
|
height: contentHeight
|
||||||
horizontalAlignment: byLineType.columnHorizontalAligns[index]
|
horizontalAlignment: byLineType.columnHorizontalAligns[index]
|
||||||
|
color: UM.Theme.getColor("text")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
text: modelData
|
text: modelData
|
||||||
@ -124,8 +125,8 @@ Column
|
|||||||
property var printMaterialWeights: PrintInformation.materialWeights
|
property var printMaterialWeights: PrintInformation.materialWeights
|
||||||
property var printMaterialCosts: PrintInformation.materialCosts
|
property var printMaterialCosts: PrintInformation.materialCosts
|
||||||
property var printMaterialNames: PrintInformation.materialNames
|
property var printMaterialNames: PrintInformation.materialNames
|
||||||
property var columnWidthMultipliers: [ 0.4, 0.2, 0.2, 0.2 ]
|
property var columnWidthMultipliers: [ 0.46, 0.18, 0.18, 0.18 ]
|
||||||
property var columnHorizontalAligns: [ TextInput.AlignLeft, TextInput.AlignHCenter, TextInput.AlignHCenter, TextInput.AlignHCenter ]
|
property var columnHorizontalAligns: [ Text.AlignLeft, Text.AlignHCenter, Text.AlignHCenter, Text.AlignRight ]
|
||||||
|
|
||||||
function getMaterialTable()
|
function getMaterialTable()
|
||||||
{
|
{
|
||||||
@ -183,7 +184,8 @@ Column
|
|||||||
{
|
{
|
||||||
width: Math.round(byMaterialType.width * byMaterialType.columnWidthMultipliers[index])
|
width: Math.round(byMaterialType.width * byMaterialType.columnWidthMultipliers[index])
|
||||||
height: contentHeight
|
height: contentHeight
|
||||||
horizontalAlignment: byLineType.columnHorizontalAligns[index]
|
horizontalAlignment: byMaterialType.columnHorizontalAligns[index]
|
||||||
|
color: UM.Theme.getColor("text")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
text: modelData
|
text: modelData
|
||||||
|
@ -52,7 +52,7 @@ Button
|
|||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
left: parent.left
|
left: parent.left
|
||||||
leftMargin: UM.Theme.getSize("wide_margin").width
|
leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
right: parent.right
|
right: parent.right
|
||||||
rightMargin: UM.Theme.getSize("wide_margin").width
|
rightMargin: UM.Theme.getSize("wide_margin").width
|
||||||
}
|
}
|
||||||
@ -63,10 +63,10 @@ Button
|
|||||||
{
|
{
|
||||||
id: repeater
|
id: repeater
|
||||||
model: configuration.extruderConfigurations
|
model: configuration.extruderConfigurations
|
||||||
|
width: parent.width
|
||||||
delegate: PrintCoreConfiguration
|
delegate: PrintCoreConfiguration
|
||||||
{
|
{
|
||||||
width: Math.round(parent.width / 2)
|
width: Math.round(parent.width / configuration.extruderConfigurations.length)
|
||||||
printCoreConfiguration: modelData
|
printCoreConfiguration: modelData
|
||||||
visible: configurationItem.isValidMaterial
|
visible: configurationItem.isValidMaterial
|
||||||
}
|
}
|
||||||
|
@ -7,17 +7,17 @@ import QtQuick.Controls 2.0
|
|||||||
import UM 1.2 as UM
|
import UM 1.2 as UM
|
||||||
import Cura 1.0 as Cura
|
import Cura 1.0 as Cura
|
||||||
|
|
||||||
Row
|
Item
|
||||||
{
|
{
|
||||||
id: extruderInfo
|
id: extruderInfo
|
||||||
property var printCoreConfiguration
|
property var printCoreConfiguration
|
||||||
|
|
||||||
height: information.height
|
height: information.height
|
||||||
spacing: UM.Theme.getSize("default_margin").width
|
|
||||||
|
|
||||||
//Extruder icon.
|
//Extruder icon.
|
||||||
Cura.ExtruderIcon
|
Cura.ExtruderIcon
|
||||||
{
|
{
|
||||||
|
id: icon
|
||||||
materialColor: printCoreConfiguration.material.color
|
materialColor: printCoreConfiguration.material.color
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
extruderEnabled: printCoreConfiguration.material.brand !== "" && printCoreConfiguration.hotendID !== ""
|
extruderEnabled: printCoreConfiguration.material.brand !== "" && printCoreConfiguration.hotendID !== ""
|
||||||
@ -26,6 +26,13 @@ Row
|
|||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
id: information
|
id: information
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
left: icon.right
|
||||||
|
right: parent.right
|
||||||
|
margins: UM.Theme.getSize("default_margin").width
|
||||||
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: printCoreConfiguration.material.brand ? printCoreConfiguration.material.brand : " " //Use space so that the height is still correct.
|
text: printCoreConfiguration.material.brand ? printCoreConfiguration.material.brand : " " //Use space so that the height is still correct.
|
||||||
@ -33,6 +40,7 @@ Row
|
|||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: UM.Theme.getColor("text_inactive")
|
color: UM.Theme.getColor("text_inactive")
|
||||||
|
width: parent.width
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@ -41,6 +49,7 @@ Row
|
|||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("medium")
|
font: UM.Theme.getFont("medium")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
|
width: parent.width
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@ -49,6 +58,7 @@ Row
|
|||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: UM.Theme.getColor("text_inactive")
|
color: UM.Theme.getColor("text_inactive")
|
||||||
|
width: parent.width
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ Menu
|
|||||||
MenuItem
|
MenuItem
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@action:inmenu", "Set as Active Extruder")
|
text: catalog.i18nc("@action:inmenu", "Set as Active Extruder")
|
||||||
onTriggered: Cura.MachineManager.setExtruderIndex(model.index)
|
onTriggered: Cura.ExtruderManager.setActiveExtruderIndex(model.index)
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuItem
|
MenuItem
|
||||||
|
@ -563,6 +563,7 @@
|
|||||||
"message_close": [1, 1],
|
"message_close": [1, 1],
|
||||||
"message_radius": [0.25, 0.25],
|
"message_radius": [0.25, 0.25],
|
||||||
"message_action_button": [0, 2.0],
|
"message_action_button": [0, 2.0],
|
||||||
|
"message_image": [15.0, 5.0],
|
||||||
|
|
||||||
"infill_button_margin": [0.5, 0.5],
|
"infill_button_margin": [0.5, 0.5],
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user