mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
CURA-5035 Removed all base units
This commit is contained in:
parent
668a92952c
commit
9b556e9c86
11 changed files with 35 additions and 30 deletions
|
@ -57,7 +57,7 @@ Item
|
|||
font: UM.Theme.getFont("large")
|
||||
wrapMode: Text.WordWrap
|
||||
width: parent.width
|
||||
height: UM.Theme.getSize("base_unit") * 2
|
||||
height: UM.Theme.getSize("toolbox_property_label").height
|
||||
}
|
||||
Label
|
||||
{
|
||||
|
@ -99,7 +99,6 @@ Item
|
|||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
spacing: Math.floor(UM.Theme.getSize("narrow_margin").height)
|
||||
// width: UM.Theme.getSize("base_unit").width * 12
|
||||
Label
|
||||
{
|
||||
text:
|
||||
|
|
|
@ -42,8 +42,8 @@ Item
|
|||
color: button.hovered ? UM.Theme.getColor("primary") : UM.Theme.getColor("text")
|
||||
source: UM.Theme.getIcon("arrow_left")
|
||||
}
|
||||
width: UM.Theme.getSize("base_unit").width * 4
|
||||
height: UM.Theme.getSize("base_unit").height * 2
|
||||
width: UM.Theme.getSize("toolbox_back_button").width
|
||||
height: UM.Theme.getSize("toolbox_back_button").height
|
||||
onClicked:
|
||||
{
|
||||
toolbox.viewPage = "overview"
|
||||
|
|
|
@ -58,7 +58,7 @@ Item
|
|||
font: UM.Theme.getFont("large")
|
||||
wrapMode: Text.WordWrap
|
||||
width: parent.width
|
||||
height: UM.Theme.getSize("base_unit") * 2
|
||||
height: UM.Theme.getSize("toolbox_property_label").height
|
||||
}
|
||||
|
||||
Column
|
||||
|
@ -102,7 +102,6 @@ Item
|
|||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
spacing: Math.floor(UM.Theme.getSize("narrow_margin").height)
|
||||
// width: UM.Theme.getSize("base_unit").width * 12
|
||||
Label
|
||||
{
|
||||
text: details.version
|
||||
|
|
|
@ -23,7 +23,7 @@ Item
|
|||
Label
|
||||
{
|
||||
width: parent.width
|
||||
height: UM.Theme.getSize("base_unit").height * 2
|
||||
height: UM.Theme.getSize("toolbox_property_label").height
|
||||
text: model.name
|
||||
wrapMode: Text.WordWrap
|
||||
color: UM.Theme.getColor("text")
|
||||
|
|
|
@ -13,7 +13,7 @@ Column
|
|||
{
|
||||
id: base
|
||||
height: childrenRect.height
|
||||
spacing: UM.Theme.getSize("base_unit").height
|
||||
spacing: UM.Theme.getSize("default_margin").height
|
||||
Label
|
||||
{
|
||||
id: heading
|
||||
|
@ -27,8 +27,8 @@ Column
|
|||
id: grid
|
||||
width: parent.width
|
||||
columns: 2
|
||||
columnSpacing: UM.Theme.getSize("base_unit").width
|
||||
rowSpacing: UM.Theme.getSize("base_unit").height
|
||||
columnSpacing: UM.Theme.getSize("default_margin").height
|
||||
rowSpacing: UM.Theme.getSize("default_margin").width
|
||||
|
||||
Repeater
|
||||
{
|
||||
|
|
|
@ -26,7 +26,7 @@ Column
|
|||
Row
|
||||
{
|
||||
height: childrenRect.height
|
||||
spacing: UM.Theme.getSize("base_unit").width * 2
|
||||
spacing: UM.Theme.getSize("wide_margin").width
|
||||
anchors
|
||||
{
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
|
|
|
@ -54,7 +54,7 @@ Item
|
|||
}
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
height: UM.Theme.getSize("base_unit").width * 4
|
||||
height: UM.Theme.getSize("toolbox_heading_label").height
|
||||
width: parent.width
|
||||
color: UM.Theme.getColor("text")
|
||||
font: UM.Theme.getFont("medium_bold")
|
||||
|
|
|
@ -11,12 +11,12 @@ Item
|
|||
id: footer
|
||||
width: parent.width
|
||||
anchors.bottom: parent.bottom
|
||||
height: visible ? Math.floor(UM.Theme.getSize("base_unit").height * 5.5) : 0
|
||||
height: visible ? Math.floor(UM.Theme.getSize("toolbox_footer").height) : 0
|
||||
Label
|
||||
{
|
||||
visible: toolbox.restartRequired
|
||||
text: "You will need to restart Cura before changes in plugins have effect."
|
||||
height: Math.floor(UM.Theme.getSize("base_unit").height * 2.5)
|
||||
height: Math.floor(UM.Theme.getSize("toolbox_footer_button").height)
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
anchors
|
||||
{
|
||||
|
@ -45,8 +45,8 @@ Item
|
|||
{
|
||||
background: Rectangle
|
||||
{
|
||||
implicitWidth: UM.Theme.getSize("base_unit").width * 8
|
||||
implicitHeight: Math.floor(UM.Theme.getSize("base_unit").height * 2.5)
|
||||
implicitWidth: UM.Theme.getSize("toolbox_footer_button").width
|
||||
implicitHeight: Math.floor(UM.Theme.getSize("toolbox_footer_button").height)
|
||||
color: control.hovered ? UM.Theme.getColor("primary_hover") : UM.Theme.getColor("primary")
|
||||
}
|
||||
label: Text
|
||||
|
|
|
@ -9,7 +9,7 @@ Item
|
|||
{
|
||||
id: header
|
||||
width: parent.width
|
||||
height: UM.Theme.getSize("base_unit").height * 4
|
||||
height: UM.Theme.getSize("toolbox_header").height * 4
|
||||
Row
|
||||
{
|
||||
id: bar
|
||||
|
|
|
@ -11,7 +11,7 @@ Item
|
|||
id: base
|
||||
property bool canUpdate: false
|
||||
property bool isEnabled: true
|
||||
height: UM.Theme.getSize("base_unit").height * 8
|
||||
height: UM.Theme.getSize("toolbox_installed_tile").height
|
||||
anchors
|
||||
{
|
||||
left: parent.left
|
||||
|
@ -41,7 +41,7 @@ Item
|
|||
{
|
||||
text: model.name
|
||||
width: parent.width
|
||||
height: UM.Theme.getSize("base_unit").height * 2
|
||||
height: UM.Theme.getSize("toolbox_property_label").height
|
||||
wrapMode: Text.WordWrap
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
font: UM.Theme.getFont("default_bold")
|
||||
|
@ -51,7 +51,7 @@ Item
|
|||
{
|
||||
text: model.description
|
||||
width: parent.width
|
||||
height: UM.Theme.getSize("base_unit").height * 3
|
||||
height: UM.Theme.getSize("toolbox_property_label").height
|
||||
clip: true
|
||||
wrapMode: Text.WordWrap
|
||||
color: pluginInfo.color
|
||||
|
@ -61,7 +61,6 @@ Item
|
|||
Column
|
||||
{
|
||||
id: authorInfo
|
||||
width: UM.Theme.getSize("base_unit").width * 16
|
||||
height: parent.height
|
||||
anchors
|
||||
{
|
||||
|
@ -84,7 +83,7 @@ Item
|
|||
}
|
||||
}
|
||||
width: parent.width
|
||||
height: UM.Theme.getSize("base_unit").height * 3
|
||||
height: UM.Theme.getSize("toolbox_property_label").height
|
||||
wrapMode: Text.WordWrap
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
|
@ -122,8 +121,8 @@ Item
|
|||
{
|
||||
background: Rectangle
|
||||
{
|
||||
implicitWidth: UM.Theme.getSize("base_unit").width * 8
|
||||
implicitHeight: Math.floor(UM.Theme.getSize("base_unit").width * 2.5)
|
||||
implicitWidth: UM.Theme.getSize("toolbox_action_button").width
|
||||
implicitHeight: UM.Theme.getSize("toolbox_action_button").height
|
||||
color: "transparent"
|
||||
border
|
||||
{
|
||||
|
@ -167,8 +166,8 @@ Item
|
|||
{
|
||||
background: Rectangle
|
||||
{
|
||||
implicitWidth: UM.Theme.getSize("base_unit").width * 8
|
||||
implicitHeight: UM.Theme.getSize("base_unit").width * 2.5
|
||||
implicitWidth: UM.Theme.getSize("toolbox_action_button").width
|
||||
implicitHeight: UM.Theme.getSize("toolbox_action_button").height
|
||||
color: control.hovered ? UM.Theme.getColor("primary_hover") : UM.Theme.getColor("primary")
|
||||
}
|
||||
label: Label
|
||||
|
@ -193,7 +192,7 @@ Item
|
|||
left: updateButton.left
|
||||
right: updateButton.right
|
||||
top: updateButton.bottom
|
||||
topMargin: Math.floor(UM.Theme.getSize("base_unit") / 4)
|
||||
topMargin: Math.floor(UM.Theme.getSize("default_margin") / 4)
|
||||
}
|
||||
value: toolbox.isDownloading ? toolbox.downloadProgress : 0
|
||||
visible: toolbox.isDownloading
|
||||
|
@ -202,7 +201,7 @@ Item
|
|||
background: Rectangle
|
||||
{
|
||||
color: UM.Theme.getColor("lining")
|
||||
implicitHeight: Math.floor(UM.Theme.getSize("base_unit").height / 2)
|
||||
implicitHeight: Math.floor(UM.Theme.getSize("toolbox_progress_bar").height)
|
||||
}
|
||||
progress: Rectangle
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue