mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
CURA-5035 Review changes
This commit is contained in:
parent
7f622eb300
commit
668a92952c
13 changed files with 52 additions and 39 deletions
|
@ -70,7 +70,7 @@ Window
|
|||
{
|
||||
id: footer
|
||||
visible: toolbox.restartRequired
|
||||
height: toolbox.restartRequired ? UM.Theme.getSize("base_unit").height * 5 : 0
|
||||
height: toolbox.restartRequired ? UM.Theme.getSize("toolbox_footer").height : 0
|
||||
}
|
||||
// TODO: Clean this up:
|
||||
Connections
|
||||
|
|
|
@ -22,9 +22,9 @@ Item
|
|||
{
|
||||
left: sidebar.right
|
||||
right: parent.right
|
||||
rightMargin: UM.Theme.getSize("double_margin").width
|
||||
rightMargin: UM.Theme.getSize("wide_margin").width
|
||||
}
|
||||
height: UM.Theme.getSize("base_unit").height * 12
|
||||
height: UM.Theme.getSize("toolbox_detail_header").height
|
||||
Image
|
||||
{
|
||||
id: thumbnail
|
||||
|
@ -36,8 +36,8 @@ Item
|
|||
{
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
leftMargin: UM.Theme.getSize("double_margin").width
|
||||
topMargin: UM.Theme.getSize("double_margin").height
|
||||
leftMargin: UM.Theme.getSize("wide_margin").width
|
||||
topMargin: UM.Theme.getSize("wide_margin").height
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ Item
|
|||
left: thumbnail.right
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
right: parent.right
|
||||
rightMargin: UM.Theme.getSize("double_margin").width
|
||||
rightMargin: UM.Theme.getSize("wide_margin").width
|
||||
bottomMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
text: details.name
|
||||
|
@ -79,7 +79,7 @@ Item
|
|||
left: description.left
|
||||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
spacing: Math.floor(UM.Theme.getSize("default_margin").height / 2)
|
||||
spacing: Math.floor(UM.Theme.getSize("narrow_margin").height)
|
||||
width: childrenRect.width
|
||||
Label
|
||||
{
|
||||
|
@ -98,8 +98,8 @@ Item
|
|||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
spacing: Math.floor(UM.Theme.getSize("default_margin").height/2)
|
||||
width: UM.Theme.getSize("base_unit").width * 12
|
||||
spacing: Math.floor(UM.Theme.getSize("narrow_margin").height)
|
||||
// width: UM.Theme.getSize("base_unit").width * 12
|
||||
Label
|
||||
{
|
||||
text:
|
||||
|
|
|
@ -10,12 +10,12 @@ Item
|
|||
{
|
||||
id: sidebar
|
||||
height: parent.height
|
||||
width: UM.Theme.getSize("base_unit").width * 6
|
||||
width: UM.Theme.getSize("toolbox_back_column").width
|
||||
anchors
|
||||
{
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
topMargin: UM.Theme.getSize("double_margin").height
|
||||
topMargin: UM.Theme.getSize("wide_margin").height
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
rightMargin: UM.Theme.getSize("default_margin").width
|
||||
}
|
||||
|
|
|
@ -19,8 +19,8 @@ Item
|
|||
anchors
|
||||
{
|
||||
right: base.right
|
||||
topMargin: UM.Theme.getSize("double_margin").height
|
||||
bottomMargin: UM.Theme.getSize("double_margin").height
|
||||
topMargin: UM.Theme.getSize("wide_margin").height
|
||||
bottomMargin: UM.Theme.getSize("wide_margin").height
|
||||
top: parent.top
|
||||
}
|
||||
height: childrenRect.height
|
||||
|
|
|
@ -23,9 +23,9 @@ Item
|
|||
{
|
||||
left: sidebar.right
|
||||
right: parent.right
|
||||
rightMargin: UM.Theme.getSize("double_margin").width
|
||||
rightMargin: UM.Theme.getSize("wide_margin").width
|
||||
}
|
||||
height: UM.Theme.getSize("base_unit").height * 12
|
||||
height: UM.Theme.getSize("toolbox_detail_header").height
|
||||
Image
|
||||
{
|
||||
id: thumbnail
|
||||
|
@ -37,8 +37,8 @@ Item
|
|||
{
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
leftMargin: UM.Theme.getSize("double_margin").width
|
||||
topMargin: UM.Theme.getSize("double_margin").height
|
||||
leftMargin: UM.Theme.getSize("wide_margin").width
|
||||
topMargin: UM.Theme.getSize("wide_margin").height
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ Item
|
|||
left: thumbnail.right
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
right: parent.right
|
||||
rightMargin: UM.Theme.getSize("double_margin").width
|
||||
rightMargin: UM.Theme.getSize("wide_margin").width
|
||||
bottomMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
text: details.name
|
||||
|
@ -70,7 +70,7 @@ Item
|
|||
left: title.left
|
||||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
spacing: Math.floor(UM.Theme.getSize("default_margin").height / 2)
|
||||
spacing: Math.floor(UM.Theme.getSize("narrow_margin").height)
|
||||
width: childrenRect.width
|
||||
Label
|
||||
{
|
||||
|
@ -101,8 +101,8 @@ Item
|
|||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
spacing: Math.floor(UM.Theme.getSize("default_margin").height/2)
|
||||
width: UM.Theme.getSize("base_unit").width * 12
|
||||
spacing: Math.floor(UM.Theme.getSize("narrow_margin").height)
|
||||
// width: UM.Theme.getSize("base_unit").width * 12
|
||||
Label
|
||||
{
|
||||
text: details.version
|
||||
|
@ -111,7 +111,11 @@ Item
|
|||
}
|
||||
Label
|
||||
{
|
||||
text: Qt.formatDateTime(details.last_updated, "dd MMM yyyy")
|
||||
text:
|
||||
{
|
||||
var date = new Date(details.last_updated)
|
||||
return date.toLocaleString(Qt.locale())
|
||||
}
|
||||
font: UM.Theme.getFont("very_small")
|
||||
color: UM.Theme.getColor("text")
|
||||
}
|
||||
|
|
|
@ -9,8 +9,8 @@ import UM 1.1 as UM
|
|||
Item
|
||||
{
|
||||
property bool installed: toolbox.isInstalled(model.id)
|
||||
width: base.width - UM.Theme.getSize("double_margin").width
|
||||
height: UM.Theme.getSize("base_unit").height * 8
|
||||
width: base.width - UM.Theme.getSize("wide_margin").width
|
||||
height: UM.Theme.getSize("toolbox_detail_tile").height
|
||||
Column
|
||||
{
|
||||
anchors
|
||||
|
|
|
@ -23,7 +23,7 @@ Item
|
|||
{
|
||||
width: parent.width
|
||||
height: childrenRect.height
|
||||
spacing: Math.floor(UM.Theme.getSize("base_unit").width / 2)
|
||||
spacing: Math.floor(UM.Theme.getSize("narrow_margin").width)
|
||||
Rectangle
|
||||
{
|
||||
id: thumbnail
|
||||
|
@ -44,7 +44,7 @@ Item
|
|||
Column
|
||||
{
|
||||
width: parent.width - thumbnail.width - parent.spacing
|
||||
spacing: Math.floor(UM.Theme.getSize("base_unit").width / 2)
|
||||
spacing: Math.floor(UM.Theme.getSize("narrow_margin").width)
|
||||
Label
|
||||
{
|
||||
id: name
|
||||
|
|
|
@ -18,7 +18,7 @@ ScrollView
|
|||
{
|
||||
width: base.width
|
||||
spacing: UM.Theme.getSize("default_margin").height
|
||||
padding: UM.Theme.getSize("double_margin").height
|
||||
padding: UM.Theme.getSize("wide_margin").height
|
||||
height: childrenRect.height + 2 * padding
|
||||
ToolboxDownloadsShowcase
|
||||
{
|
||||
|
|
|
@ -14,7 +14,7 @@ Column
|
|||
{
|
||||
id: base
|
||||
height: childrenRect.height
|
||||
spacing: UM.Theme.getSize("base_unit").height
|
||||
spacing: UM.Theme.getSize("toolbox_showcase_spacing").width
|
||||
Label
|
||||
{
|
||||
id: heading
|
||||
|
|
|
@ -22,7 +22,7 @@ Item
|
|||
{
|
||||
top: restartButton.top
|
||||
left: parent.left
|
||||
leftMargin: UM.Theme.getSize("double_margin").width
|
||||
leftMargin: UM.Theme.getSize("wide_margin").width
|
||||
right: restartButton.right
|
||||
rightMargin: UM.Theme.getSize("default_margin").width
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ Item
|
|||
top: parent.top
|
||||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
right: parent.right
|
||||
rightMargin: UM.Theme.getSize("double_margin").width
|
||||
rightMargin: UM.Theme.getSize("wide_margin").width
|
||||
}
|
||||
visible: toolbox.restartRequired
|
||||
iconName: "dialog-restart"
|
||||
|
|
|
@ -22,9 +22,9 @@ ScrollView
|
|||
{
|
||||
right: parent.right
|
||||
left: parent.left
|
||||
leftMargin: UM.Theme.getSize("double_margin").width
|
||||
topMargin: UM.Theme.getSize("double_margin").height
|
||||
bottomMargin: UM.Theme.getSize("double_margin").height
|
||||
leftMargin: UM.Theme.getSize("wide_margin").width
|
||||
topMargin: UM.Theme.getSize("wide_margin").height
|
||||
bottomMargin: UM.Theme.getSize("wide_margin").height
|
||||
top: parent.top
|
||||
}
|
||||
height: childrenRect.height + 4 * UM.Theme.getSize("default_margin").height
|
||||
|
|
|
@ -14,8 +14,8 @@ Button
|
|||
background: Rectangle
|
||||
{
|
||||
color: "transparent"
|
||||
implicitWidth: UM.Theme.getSize("base_unit").height * 8
|
||||
implicitHeight: UM.Theme.getSize("base_unit").height * 4
|
||||
implicitWidth: UM.Theme.getSize("toolbox_header_tab").width
|
||||
implicitHeight: UM.Theme.getSize("toolbox_header_tab").height
|
||||
Rectangle
|
||||
{
|
||||
visible: control.active
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue