CURA-5137 Make some adjustments in the UI.

This commit is contained in:
Diego Prado Gesto 2018-04-04 10:51:19 +02:00
parent 0e01e9a6a9
commit 2bf6615b53
5 changed files with 36 additions and 50 deletions

View file

@ -11,30 +11,23 @@ import UM 1.1 as UM
// TODO: Switch to QtQuick.Controls 2.x and remove QtQuick.Controls.Styles
Rectangle
Column
{
id: base
width: parent.width
height: childrenRect.height + UM.Theme.getSize("double_margin").height * 8
color: "transparent"
height: childrenRect.height
spacing: UM.Theme.getSize("base_unit").height
Label
{
id: heading
text: "Community Plugins"
width: parent.width
height: UM.Theme.getSize("base_unit").width * 4
verticalAlignment: Text.AlignVCenter
color: UM.Theme.getColor("text_medium")
font: UM.Theme.getFont("medium")
}
GridLayout
{
id: grid
width: base.width
anchors
{
top: heading.bottom
}
width: parent.width
columns: 3
columnSpacing: UM.Theme.getSize("base_unit").width
rowSpacing: UM.Theme.getSize("base_unit").height
@ -42,7 +35,10 @@ Rectangle
Repeater
{
model: manager.packagesModel
delegate: ToolboxGridTile {}
delegate: ToolboxGridTile
{
Layout.preferredWidth: (grid.width - (grid.columns - 1) * grid.columnSpacing) / grid.columns
}
}
}
}