mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:45:57 +08:00
Added icons
CURA-5941
This commit is contained in:
parent
2e262dd9d2
commit
ec63e6c130
@ -192,13 +192,15 @@ Item
|
|||||||
id: qualityRowTitle
|
id: qualityRowTitle
|
||||||
source: UM.Theme.getIcon("category_layer_height")
|
source: UM.Theme.getIcon("category_layer_height")
|
||||||
text: catalog.i18nc("@label", "Layer Height")
|
text: catalog.i18nc("@label", "Layer Height")
|
||||||
|
anchors.bottom: speedSlider.bottom
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show titles for the each quality slider ticks
|
// Show titles for the each quality slider ticks
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
y: -5;
|
|
||||||
anchors.left: speedSlider.left
|
anchors.left: speedSlider.left
|
||||||
|
anchors.top: speedSlider.bottom
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
model: qualityModel
|
model: qualityModel
|
||||||
@ -206,8 +208,7 @@ Item
|
|||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.top: parent.top
|
anchors.top: parent.bottom
|
||||||
anchors.topMargin: Math.round(UM.Theme.getSize("thick_margin").height / 2)
|
|
||||||
color: (Cura.MachineManager.activeMachine != null && Cura.QualityProfilesDropDownMenuModel.getItem(index).available) ? UM.Theme.getColor("quality_slider_available") : UM.Theme.getColor("quality_slider_unavailable")
|
color: (Cura.MachineManager.activeMachine != null && Cura.QualityProfilesDropDownMenuModel.getItem(index).available) ? UM.Theme.getColor("quality_slider_available") : UM.Theme.getColor("quality_slider_unavailable")
|
||||||
text:
|
text:
|
||||||
{
|
{
|
||||||
@ -258,7 +259,7 @@ Item
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Print speed slider
|
//Print speed slider
|
||||||
Item
|
Rectangle
|
||||||
{
|
{
|
||||||
id: speedSlider
|
id: speedSlider
|
||||||
width: Math.round(base.width * 0.55)
|
width: Math.round(base.width * 0.55)
|
||||||
@ -367,12 +368,12 @@ Item
|
|||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
color: Cura.QualityProfilesDropDownMenuModel.getItem(index).available ? UM.Theme.getColor("quality_slider_available") : UM.Theme.getColor("quality_slider_unavailable")
|
color: Cura.QualityProfilesDropDownMenuModel.getItem(index).available ? UM.Theme.getColor("quality_slider_available") : UM.Theme.getColor("quality_slider_unavailable")
|
||||||
width: 1 * screenScaleFactor
|
implicitWidth: 5 * screenScaleFactor
|
||||||
height: 6 * screenScaleFactor
|
implicitHeight: implicitWidth
|
||||||
y: 0
|
anchors.verticalCenter: qualitySlider.verticalCenter
|
||||||
x: Math.round(qualityModel.qualitySliderStepWidth * index)
|
x: Math.round(qualityModel.qualitySliderStepWidth * index)
|
||||||
|
radius: Math.round(implicitWidth / 2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -453,42 +454,6 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
id: speedLabel
|
|
||||||
anchors.top: speedSlider.bottom
|
|
||||||
|
|
||||||
anchors.left: parent.left
|
|
||||||
|
|
||||||
text: catalog.i18nc("@label", "Print Speed")
|
|
||||||
font: UM.Theme.getFont("default")
|
|
||||||
color: UM.Theme.getColor("text")
|
|
||||||
width: Math.round(UM.Theme.getSize("print_setup_widget").width * 0.35)
|
|
||||||
elide: Text.ElideRight
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
anchors.bottom: speedLabel.bottom
|
|
||||||
anchors.left: speedSlider.left
|
|
||||||
|
|
||||||
text: catalog.i18nc("@label", "Slower")
|
|
||||||
font: UM.Theme.getFont("default")
|
|
||||||
color: (qualityModel.availableTotalTicks > 1) ? UM.Theme.getColor("quality_slider_available") : UM.Theme.getColor("quality_slider_unavailable")
|
|
||||||
horizontalAlignment: Text.AlignLeft
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
anchors.bottom: speedLabel.bottom
|
|
||||||
anchors.right: speedSlider.right
|
|
||||||
|
|
||||||
text: catalog.i18nc("@label", "Faster")
|
|
||||||
font: UM.Theme.getFont("default")
|
|
||||||
color: (qualityModel.availableTotalTicks > 1) ? UM.Theme.getColor("quality_slider_available") : UM.Theme.getColor("quality_slider_unavailable")
|
|
||||||
horizontalAlignment: Text.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
UM.SimpleButton
|
UM.SimpleButton
|
||||||
{
|
{
|
||||||
id: customisedSettings
|
id: customisedSettings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user