Browse Source

Tweak margins of print monitor

fieldOfView 8 years ago
parent
commit
038c736756
1 changed files with 17 additions and 6 deletions
  1. 17 6
      resources/qml/PrintMonitor.qml

+ 17 - 6
resources/qml/PrintMonitor.qml

@@ -20,13 +20,21 @@ Column
         simpleNames: true
         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
     Loader
@@ -87,6 +95,9 @@ Column
         {
         {
             height: UM.Theme.getSize("setting_control").height
             height: UM.Theme.getSize("setting_control").height
             width: base.width - 2 * UM.Theme.getSize("default_margin").width
             width: base.width - 2 * UM.Theme.getSize("default_margin").width
+            anchors.left: parent.left
+            anchors.leftMargin: UM.Theme.getSize("default_margin").width
+
             Label
             Label
             {
             {
                 width: parent.width * 0.4
                 width: parent.width * 0.4