Made the plugin depend more on the theme

CURA-6005
This commit is contained in:
Jaime van Kessel 2019-01-04 11:35:34 +01:00
parent 98153769ff
commit b4911478e3
3 changed files with 5 additions and 7 deletions

View File

@ -50,6 +50,7 @@ Item
Layout.minimumWidth: 100 * screenScaleFactor Layout.minimumWidth: 100 * screenScaleFactor
Layout.maximumWidth: 500 * screenScaleFactor Layout.maximumWidth: 500 * screenScaleFactor
Layout.fillWidth: true Layout.fillWidth: true
font: UM.Theme.getFont("default")
renderType: Text.NativeRendering renderType: Text.NativeRendering
} }
@ -61,6 +62,7 @@ Item
Layout.minimumWidth: 100 * screenScaleFactor Layout.minimumWidth: 100 * screenScaleFactor
Layout.maximumWidth: 500 * screenScaleFactor Layout.maximumWidth: 500 * screenScaleFactor
Layout.fillWidth: true Layout.fillWidth: true
font: UM.Theme.getFont("default")
renderType: Text.NativeRendering renderType: Text.NativeRendering
} }

View File

@ -58,6 +58,6 @@ ColumnLayout
Item Item
{ {
width: parent.width width: parent.width
height: 10 * screenScaleFactor height: UM.Theme.getSize("default_margin").height
} }
} }

View File

@ -17,12 +17,6 @@ RowLayout
property alias label: detailName.text property alias label: detailName.text
property alias value: detailValue.text property alias value: detailValue.text
// Spacing.
Item
{
width: 40 * screenScaleFactor
}
UM.RecolorImage UM.RecolorImage
{ {
id: icon id: icon
@ -40,6 +34,7 @@ RowLayout
Layout.minimumWidth: 50 * screenScaleFactor Layout.minimumWidth: 50 * screenScaleFactor
Layout.maximumWidth: 100 * screenScaleFactor Layout.maximumWidth: 100 * screenScaleFactor
Layout.fillWidth: true Layout.fillWidth: true
font: UM.Theme.getFont("default")
renderType: Text.NativeRendering renderType: Text.NativeRendering
} }
@ -51,6 +46,7 @@ RowLayout
Layout.minimumWidth: 50 * screenScaleFactor Layout.minimumWidth: 50 * screenScaleFactor
Layout.maximumWidth: 100 * screenScaleFactor Layout.maximumWidth: 100 * screenScaleFactor
Layout.fillWidth: true Layout.fillWidth: true
font: UM.Theme.getFont("default")
renderType: Text.NativeRendering renderType: Text.NativeRendering
} }
} }