Added Icons to SidebarSimple

This commit is contained in:
Aleksei S 2018-11-23 17:35:55 +01:00
parent c4d0207cc1
commit 2e262dd9d2

View file

@ -187,12 +187,11 @@ Item
} }
} }
Label IconWithText
{ {
id: qualityRowTitle id: qualityRowTitle
source: UM.Theme.getIcon("category_layer_height")
text: catalog.i18nc("@label", "Layer Height") text: catalog.i18nc("@label", "Layer Height")
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
} }
// Show titles for the each quality slider ticks // Show titles for the each quality slider ticks
@ -532,17 +531,19 @@ Item
width: Math.round(UM.Theme.getSize("print_setup_widget").width * .45) - UM.Theme.getSize("thick_margin").width width: Math.round(UM.Theme.getSize("print_setup_widget").width * .45) - UM.Theme.getSize("thick_margin").width
Label IconWithText
{ {
id: infillLabel id: infillLabel
text: catalog.i18nc("@label", "Infill") source: UM.Theme.getIcon("category_infill")
font: UM.Theme.getFont("default") text: catalog.i18nc("@label", "Infill") + " (%)"
color: UM.Theme.getColor("text")
anchors.top: parent.top anchors
anchors.topMargin: Math.round(UM.Theme.getSize("thick_margin").height * 1.7) {
anchors.left: parent.left top: parent.top
anchors.leftMargin: UM.Theme.getSize("thick_margin").width topMargin: Math.round(UM.Theme.getSize("thick_margin").height * 1.7)
left: parent.left
leftMargin: UM.Theme.getSize("thick_margin").width
}
} }
} }
@ -855,23 +856,23 @@ Item
// //
// Enable support // Enable support
// //
Label IconWithText
{ {
id: enableSupportLabel id: enableSupportLabel
visible: enableSupportCheckBox.visible visible: enableSupportCheckBox.visible
source: UM.Theme.getIcon("category_support")
text: catalog.i18nc("@label", "Support")
anchors.top: infillCellRight.bottom anchors
anchors.topMargin: Math.round(UM.Theme.getSize("thick_margin").height * 1.5) {
anchors.left: parent.left top: infillCellRight.bottom
anchors.leftMargin: UM.Theme.getSize("thick_margin").width topMargin: Math.round(UM.Theme.getSize("thick_margin").height * 1.5)
anchors.right: infillCellLeft.right left: parent.left
anchors.rightMargin: UM.Theme.getSize("thick_margin").width leftMargin: UM.Theme.getSize("thick_margin").width
anchors.verticalCenter: enableSupportCheckBox.verticalCenter right: infillCellLeft.right
rightMargin: UM.Theme.getSize("thick_margin").width
text: catalog.i18nc("@label", "Generate Support") verticalCenter: enableSupportCheckBox.verticalCenter
font: UM.Theme.getFont("default") }
color: UM.Theme.getColor("text")
elide: Text.ElideRight
} }
CheckBox CheckBox
@ -980,15 +981,12 @@ Item
} }
Label IconWithText
{ {
id: adhesionHelperLabel id: adhesionHelperLabel
visible: adhesionCheckBox.visible visible: adhesionCheckBox.visible
source: UM.Theme.getIcon("category_adhesion")
text: catalog.i18nc("@label", "Build Plate Adhesion") text: catalog.i18nc("@label", "Adhesion")
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
elide: Text.ElideRight
anchors anchors
{ {