|
@@ -2,18 +2,16 @@
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
|
|
import QtQuick 2.2
|
|
import QtQuick 2.2
|
|
-import QtQuick.Controls 1.1
|
|
|
|
-import QtQuick.Controls.Styles 1.1
|
|
|
|
import QtQuick.Layouts 1.1
|
|
import QtQuick.Layouts 1.1
|
|
|
|
|
|
-import UM 1.2 as UM
|
|
|
|
|
|
+import UM 1.5 as UM
|
|
import Cura 1.0 as Cura
|
|
import Cura 1.0 as Cura
|
|
|
|
|
|
Item
|
|
Item
|
|
{
|
|
{
|
|
property string label: ""
|
|
property string label: ""
|
|
property string value: ""
|
|
property string value: ""
|
|
- height: childrenRect.height;
|
|
|
|
|
|
+ height: childrenRect.height
|
|
|
|
|
|
property var connectedPrinter: Cura.MachineManager.printerOutputDevices.length >= 1 ? Cura.MachineManager.printerOutputDevices[0] : null
|
|
property var connectedPrinter: Cura.MachineManager.printerOutputDevices.length >= 1 ? Cura.MachineManager.printerOutputDevices[0] : null
|
|
|
|
|
|
@@ -24,22 +22,20 @@ Item
|
|
anchors.left: parent.left
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
|
|
|
|
|
- Label
|
|
|
|
|
|
+ UM.Label
|
|
{
|
|
{
|
|
width: Math.floor(parent.width * 0.4)
|
|
width: Math.floor(parent.width * 0.4)
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
text: label
|
|
text: label
|
|
color: connectedPrinter != null && connectedPrinter.acceptsCommands ? UM.Theme.getColor("setting_control_text") : UM.Theme.getColor("setting_control_disabled_text")
|
|
color: connectedPrinter != null && connectedPrinter.acceptsCommands ? UM.Theme.getColor("setting_control_text") : UM.Theme.getColor("setting_control_disabled_text")
|
|
- font: UM.Theme.getFont("default")
|
|
|
|
elide: Text.ElideRight
|
|
elide: Text.ElideRight
|
|
}
|
|
}
|
|
- Label
|
|
|
|
|
|
+ UM.Label
|
|
{
|
|
{
|
|
width: Math.floor(parent.width * 0.6)
|
|
width: Math.floor(parent.width * 0.6)
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
text: value
|
|
text: value
|
|
color: connectedPrinter != null && connectedPrinter.acceptsCommands ? UM.Theme.getColor("setting_control_text") : UM.Theme.getColor("setting_control_disabled_text")
|
|
color: connectedPrinter != null && connectedPrinter.acceptsCommands ? UM.Theme.getColor("setting_control_text") : UM.Theme.getColor("setting_control_disabled_text")
|
|
- font: UM.Theme.getFont("default")
|
|
|
|
elide: Text.ElideRight
|
|
elide: Text.ElideRight
|
|
}
|
|
}
|
|
}
|
|
}
|