From 038c73675633c7d5535cde243cf2e89e959f8367 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Thu, 22 Sep 2016 09:01:07 +0200 Subject: [PATCH] Tweak margins of print monitor --- resources/qml/PrintMonitor.qml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index 8d04122aa8..cd2f2a7376 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -20,13 +20,21 @@ Column simpleNames: true } - Label + Item { - text: printerConnected ? connectedPrinter.connectionText : catalog.i18nc("@info:status", "The printer is not connected.") - color: printerConnected && printerAcceptsCommands ? UM.Theme.getColor("setting_control_text") : UM.Theme.getColor("setting_control_disabled_text") - font: UM.Theme.getFont("default") - wrapMode: Text.WordWrap - width: base.width + width: base.width - 2 * UM.Theme.getSize("default_margin").width + height: childrenRect.height + UM.Theme.getSize("default_margin").height + anchors.left: parent.left + anchors.leftMargin: UM.Theme.getSize("default_margin").width + + Label + { + text: printerConnected ? connectedPrinter.connectionText : catalog.i18nc("@info:status", "The printer is not connected.") + color: printerConnected && printerAcceptsCommands ? UM.Theme.getColor("setting_control_text") : UM.Theme.getColor("setting_control_disabled_text") + font: UM.Theme.getFont("default") + wrapMode: Text.WordWrap + width: parent.width + } } Loader @@ -87,6 +95,9 @@ Column { height: UM.Theme.getSize("setting_control").height width: base.width - 2 * UM.Theme.getSize("default_margin").width + anchors.left: parent.left + anchors.leftMargin: UM.Theme.getSize("default_margin").width + Label { width: parent.width * 0.4