Merge branch 'master' of github.com:Ultimaker/Cura

This commit is contained in:
Diego Prado Gesto 2018-07-04 14:32:05 +02:00
commit 3b406b5467
5 changed files with 7 additions and 25 deletions

View File

@ -9,17 +9,8 @@ import UM 1.1 as UM
Item
{
id: page
property var details: base.selection || dummy_details
property var details: base.selection || {}
anchors.fill: parent
property var dummy_details: new Object({
name: "",
description: "",
email: "",
website: "",
icon_url: ""
})
ToolboxBackColumn
{
id: sidebar

View File

@ -9,21 +9,9 @@ import UM 1.1 as UM
Item
{
id: page
property var details: base.selection || dummy_details
property var details: base.selection
anchors.fill: parent
width: parent.width
property var dummy_details: new Object({
name: '',
version: '',
last_updated: '',
author_email: '',
author_name: '',
website: '',
icon_url: '',
download_count: ''
})
ToolboxBackColumn
{
id: sidebar
@ -86,6 +74,7 @@ Item
}
spacing: Math.floor(UM.Theme.getSize("narrow_margin").height)
width: childrenRect.width
height: childrenRect.height
Label
{
text: catalog.i18nc("@label", "Version") + ":"
@ -122,6 +111,7 @@ Item
topMargin: UM.Theme.getSize("default_margin").height
}
spacing: Math.floor(UM.Theme.getSize("narrow_margin").height)
height: childrenRect.height
Label
{
text: details.version || catalog.i18nc("@label", "Unknown")

View File

@ -25,7 +25,7 @@ Column
{
id: grid
property var model: toolbox.viewCategory == "material" ? toolbox.authorsModel : toolbox.packagesModel
width: parent.width
width: parent.width - 2 * parent.padding
columns: 2
columnSpacing: UM.Theme.getSize("default_margin").height
rowSpacing: UM.Theme.getSize("default_margin").width

View File

@ -25,6 +25,7 @@ Item
right: restartButton.right
rightMargin: UM.Theme.getSize("default_margin").width
}
color: UM.Theme.getColor("text")
}
Button
{

View File

@ -448,7 +448,7 @@
"toolbox_footer_button": [8.0, 2.5],
"toolbox_showcase_spacing": [1.0, 1.0],
"toolbox_header_tab": [8.0, 4.0],
"toolbox_detail_header": [1.0, 12.0],
"toolbox_detail_header": [1.0, 14.0],
"toolbox_detail_tile": [1.0, 8.0],
"toolbox_back_column": [6.0, 1.0],
"toolbox_back_button": [4.0, 2.0],